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 ba55aeb commit 8d2c86d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.sql.Time;
import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
Expand Down Expand Up @@ -117,6 +118,7 @@ public void open() throws Exception {
BigDecimal.class,
java.sql.Date.class,
Timestamp.class,
LocalDate.class,
LocalDateTime.class,
Time.class,
String.class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,9 @@ public static void getResultFromBoxedArray(int type, int numRows, Object boxedRe
if (boxedResult instanceof Date[]) {
getStringDateResult(numRows, (Date[]) boxedResult, columnAddr);
} else if(boxedResult instanceof String[]){
for(String i: boxedResult){
log.info("boxedResult element :" + i);
}
getStringBoxedResult(numRows, (String[]) boxedResult, columnAddr);
}else {
throw new UnsupportedOperationException("unsupported type:" + boxedResult);
Expand Down

0 comments on commit 8d2c86d

Please sign in to comment.