You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/10/26 03:18:28 UTC

[GitHub] [pinot] Jackie-Jiang commented on a diff in pull request #9661: bugfix: Add missing BIG_DECIMAL support for GenericRow serde

Jackie-Jiang commented on code in PR #9661:
URL: https://github.com/apache/pinot/pull/9661#discussion_r1005172676


##########
pinot-core/src/main/java/org/apache/pinot/core/segment/processing/genericrow/GenericRowSerializer.java:
##########
@@ -42,8 +44,8 @@ public class GenericRowSerializer {
   private final String[] _fieldNames;
   private final boolean[] _isSingleValueFields;
   private final DataType[] _storedTypes;
-  // Cache the encoded string bytes
-  private final Object[] _stringBytes;
+  // Cache the encoded objects as bytes
+  private final Object[] _objectBytes;

Review Comment:
   Can we directly define it as `byte[][]`?



##########
pinot-core/src/main/java/org/apache/pinot/core/segment/processing/genericrow/GenericRowDeserializer.java:
##########
@@ -99,6 +100,15 @@ public void deserialize(long offset, GenericRow buffer) {
             buffer.putValue(fieldName, bytes);
             break;
           }
+          case BIG_DECIMAL: {

Review Comment:
   (minor) Put it after `DOUBLE` (same order as data type definition) for easier tracking. Same for other places



-- 
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: commits-unsubscribe@pinot.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org