Skip to content

Commit

Permalink
[Feature] Support clickhouse jdbc datasource(StarRocks#40894)
Browse files Browse the repository at this point in the history
  • Loading branch information
DataScientistSamChan committed Mar 24, 2024
1 parent eba8a9a commit ba55aeb
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,13 @@ public static void getResultFromBoxedArray(int type, int numRows, Object boxedRe
break;
}
case TYPE_DATE:{
getStringDateResult(numRows, (Date[]) boxedResult, columnAddr);
if (boxedResult instanceof Date[]) {
getStringDateResult(numRows, (Date[]) boxedResult, columnAddr);
} else if(boxedResult instanceof String[]){
getStringBoxedResult(numRows, (String[]) boxedResult, columnAddr);
}else {
throw new UnsupportedOperationException("unsupported type:" + boxedResult);
}
break;
}
default:
Expand Down

0 comments on commit ba55aeb

Please sign in to comment.