jbonofre commented on code in PR #693:
URL: https://github.com/apache/arrow-java/pull/693#discussion_r2021088958
##########
vector/src/main/java/org/apache/arrow/vector/DecimalVector.java:
##########
@@ -564,8 +564,7 @@ private class TransferImpl implements TransferPair {
DecimalVector to;
public TransferImpl(String ref, BufferAllocator allocator) {
- to =
- new DecimalVector(ref, allocator, DecimalVector.this.precision,
DecimalVector.this.scale);
+ to = new DecimalVector(ref, DecimalVector.this.field.getFieldType(),
allocator);
Review Comment:
Same here. AFAIR, `field` and `getFieldType()` can be `null` (even if it
should not happen, nothing prevent that in the code).
--
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]