You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Method org.apache.drill.exec.util.DecimalUtility.adjustScaleMultiply(long input, int factor) can return the value bigger than long max value.
For example by comparison two decimal18 values 9223372036854775807 and 0.001. To adjust first value scale this method should return 9223372036854775807 * 1000 - bigger than long max value.
Class DecimalUtility.java will be a part of org.apache.arrow after renaming described in [DRILL-4455 Depend on Apache Arrow for Vector and Memory| https://issues.apache.org/jira/browse/DRILL-4455]
Vitalii Diravka:
[~lfz_carlos] This is adjustScaleMultiply(long input, int factor) method. I have already mentioned where it is in drill.
In apache arrow this is org/apache/arrow/vector/util/DecimalUtility.java class.
Ji Liu / @tianchen92: @wesm I checked the code and found that the problem still exists. BTW, Drill have removed these methods in DRILL-6421, I would like to provide a PR to remove these unused methods, what do you think?
Method org.apache.drill.exec.util.DecimalUtility.adjustScaleMultiply(long input, int factor) can return the value bigger than long max value.
For example by comparison two decimal18 values 9223372036854775807 and 0.001. To adjust first value scale this method should return 9223372036854775807 * 1000 - bigger than long max value.
Class DecimalUtility.java will be a part of org.apache.arrow after renaming described in [DRILL-4455 Depend on Apache Arrow for Vector and Memory| https://issues.apache.org/jira/browse/DRILL-4455]
Environment: Apache Drill, Apache Arrow
Reporter: Vitalii Diravka
Assignee: Ji Liu / @tianchen92
Related issues:
PRs and other links:
Note: This issue was originally created as ARROW-61. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: