You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2020/11/06 20:24:55 UTC

[GitHub] [iceberg] aokolnychyi commented on a change in pull request #1736: [Parquet] Fix vectorized reads for negative decimals

aokolnychyi commented on a change in pull request #1736:
URL: https://github.com/apache/iceberg/pull/1736#discussion_r518987239



##########
File path: api/src/test/java/org/apache/iceberg/util/RandomUtil.java
##########
@@ -155,15 +160,15 @@ public static Object generateDictionaryEncodablePrimitive(Type.PrimitiveType pri
         return true; // doesn't really matter for booleans since they are not dictionary encoded
       case INTEGER:
       case DATE:
-        return value;
+        return  negate(value) ? -1 * value : value;

Review comment:
       nit: extra space




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org