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/11/08 13:13:26 UTC

[GitHub] [pinot] Jackie-Jiang commented on a diff in pull request #9642: Fix AvroRecordExtractor issue with Avro's Fixed data type

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


##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/recordtransformer/DataTypeTransformer.java:
##########
@@ -92,6 +92,13 @@ public GenericRow transform(GenericRow record) {
           // Single-value column
           source = PinotDataType.getSingleValueType(value.getClass());
         }
+
+        if (source == PinotDataType.BYTES && dest == PinotDataType.STRING && value instanceof byte[]) {

Review Comment:
   This will introduce more severe backward compatibility issue, where the bytes values are expected to be converted using hex encoding. Let's not try to handle this



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