RajaVinoth96 commented on code in PR #19501:
URL: https://github.com/apache/pinot/pull/19501#discussion_r4271690367


##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/readers/PinotSegmentRecordReader.java:
##########
@@ -275,8 +322,13 @@ public void getRecord(int docId, GenericRow buffer) {
     for (Map.Entry<String, PinotSegmentColumnReader> entry : 
_columnReaderMap.entrySet()) {
       String column = entry.getKey();
       PinotSegmentColumnReader columnReader = entry.getValue();
+      boolean isPrimaryKey = _primaryKeyColumns.contains(column);
       if (!columnReader.isNull(docId)) {
-        buffer.putValue(column, columnReader.getValue(docId));
+        Object value = columnReader.getValue(docId);
+        if (isPrimaryKey && value instanceof byte[]) {
+          value = new ByteArray((byte[]) value);

Review Comment:
   fixed



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