[refactor](jni) unified jni framework for jdbc catalog (#26317)
This commit overhauls the JDBC connector logic within our project, transitioning from the previous mechanism of fetching data through JNI calls for individual ResultSet items to a more efficient and unified approach using the VectorTable data structure.
This commit is contained in:
@ -43,11 +43,13 @@ public class JdbcClickHouseClient extends JdbcClient {
|
||||
String ckType = fieldSchema.getDataTypeName();
|
||||
|
||||
if (ckType.startsWith("LowCardinality")) {
|
||||
fieldSchema.setAllowNull(true);
|
||||
ckType = ckType.substring(15, ckType.length() - 1);
|
||||
if (ckType.startsWith("Nullable")) {
|
||||
ckType = ckType.substring(9, ckType.length() - 1);
|
||||
}
|
||||
} else if (ckType.startsWith("Nullable")) {
|
||||
fieldSchema.setAllowNull(true);
|
||||
ckType = ckType.substring(9, ckType.length() - 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user