[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:
zy-kkk
2023-11-13 14:28:15 +08:00
committed by GitHub
parent 5a7c0ec9dc
commit 2f32a721ee
7 changed files with 985 additions and 2514 deletions

View File

@ -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);
}