walterddr commented on code in PR #8874:
URL: https://github.com/apache/pinot/pull/8874#discussion_r895029753


##########
pinot-core/src/main/java/org/apache/pinot/core/common/datatable/DataTableUtils.java:
##########
@@ -71,10 +71,12 @@ public static int computeColumnOffsets(DataSchema 
dataSchema, int[] columnOffset
         case LONG:
           rowSizeInBytes += 8;
           break;
-        // TODO: fix float size (should be 4).
-        // For backward compatible, DON'T CHANGE.
         case FLOAT:
-          rowSizeInBytes += 8;
+          if (dataTableVersion >= 4) {

Review Comment:
   yeah it should be able to handle this since the dataTableVersion is provided 
by the initial 4 bytes of the byte buffer. it will adjust the float type size 
accordingly.



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