You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by ja...@apache.org on 2022/06/06 20:32:19 UTC
[pinot] branch master updated: Handle BYTES Multi-value columns in indices (#8649)
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 <kh...@gmail.com>
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: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org