caicancai commented on code in PR #4052:
URL: https://github.com/apache/calcite/pull/4052#discussion_r1849623242
##########
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()) {
+ case "tinyIntField":
Review Comment:
Required, the scale of decimalfield and decimalfiled2 are different, one is
2, the other is 3, the main purpose is to capture the accuracy of whether it is
effective
--
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]