cxzl25 commented on code in PR #1898:
URL: https://github.com/apache/orc/pull/1898#discussion_r1574287229
##########
java/bench/core/src/java/org/apache/orc/bench/core/convert/avro/AvroReader.java:
##########
@@ -201,7 +202,11 @@ public void convert(ColumnVector cv, int row, Object
value) {
cv.isNull[row] = true;
} else {
DecimalColumnVector tc = (DecimalColumnVector) cv;
- tc.vector[row].set(HiveDecimal.create(Math.round((double) value *
multiplier)));
+ if (value instanceof ByteBuffer) {
+ tc.vector[row].set(getHiveDecimalFromByteBuffer((ByteBuffer) value,
scale));
+ } else {
+ tc.vector[row].set(HiveDecimal.create(Math.round((double) value *
multiplier)));
Review Comment:
```bash
java -jar core/target/orc-benchmarks-core-*-uber.jar generate data -format
json -data taxi
```
Read taxi data, format parquet, type double.
--
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]