DongLiang-0 commented on code in PR #19990:
URL: https://github.com/apache/doris/pull/19990#discussion_r1232130553
##########
be/src/vec/exec/jni_connector.h:
##########
@@ -197,6 +216,17 @@ class JniConnector {
*/
Status get_nex_block(Block* block, size_t* read_rows, bool* eof);
+ /**
+ * Call java side function JniScanner.getTableSchema.
+ *
+ * The schema information are stored as a string.
+ * Use # between column names and column types.
+ *
+ * like: col_name1,col_name2,col_name3#col_type1,col_type2.col_type3
Review Comment:
In the support of complex types, I have rebuild this piece. Like array, map
types are nested.
##########
fe/be-java-extensions/java-common/src/main/java/org/apache/doris/common/jni/JniScanner.java:
##########
@@ -61,6 +65,11 @@ public VectorTable getTable() {
return vectorTable;
}
+ public String getTableSchema() throws IOException {
Review Comment:
TableSchema is required. The complex types of avro include map, array, etc.,
which need to be nested.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]