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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to