caicancai commented on code in PR #4092:
URL: https://github.com/apache/calcite/pull/4092#discussion_r1892146784
##########
arrow/src/test/java/org/apache/calcite/adapter/arrow/ArrowData.java:
##########
@@ -237,35 +239,38 @@ public void writeArrowDataType(File file) throws
IOException {
vectorSchemaRoot.setRowCount(numRows);
for (Field field : vectorSchemaRoot.getSchema().getFields()) {
FieldVector vector = vectorSchemaRoot.getVector(field.getName());
- switch (vector.getMinorType()) {
- case TINYINT:
+ switch (field.getName()) {
Review Comment:
Sorry for taking so long to reply.
This is because I set two fields for decimal type, one with scale 2 and one
with scale 3. Since there are two decimal types, it is no longer appropriate to
distinguish based on data type.
I chose the field name to distinguish
--
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]