This is an automated email from the ASF dual-hosted git repository.

jackie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new babfde1eb1 Handle BYTES Multi-value columns in indices (#8649)
babfde1eb1 is described below

commit babfde1eb175898156a1e7896c4ea2e890d815a5
Author: Kartik Khare <[email protected]>
AuthorDate: Tue Jun 7 02:02:13 2022 +0530

    Handle BYTES Multi-value columns in indices (#8649)
---
 .../segment/local/segment/creator/impl/SegmentDictionaryCreator.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/creator/impl/SegmentDictionaryCreator.java
 
b/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/creator/impl/SegmentDictionaryCreator.java
index 634bb50cb9..1dff12e765 100644
--- 
a/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/creator/impl/SegmentDictionaryCreator.java
+++ 
b/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/creator/impl/SegmentDictionaryCreator.java
@@ -345,6 +345,11 @@ public class SegmentDictionaryCreator implements Closeable 
{
           indexes[i] = _stringValueToIndexMap.getInt(multiValues[i]);
         }
         break;
+      case BYTES:
+        for (int i = 0; i < multiValues.length; i++) {
+          indexes[i] = _bytesValueToIndexMap.get(new ByteArray((byte[]) 
multiValues[i]));
+        }
+        break;
       default:
         throw new UnsupportedOperationException("Unsupported data type : " + 
_storedType);
     }


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

Reply via email to