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


##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/index/json/JsonIndexType.java:
##########
@@ -85,6 +84,22 @@ public void validate(FieldIndexConfigs indexConfigs, 
FieldSpec fieldSpec, TableC
       DataType storedType = fieldSpec.getDataType().getStoredType();
       Preconditions.checkState(storedType == DataType.STRING || storedType == 
DataType.MAP,
           "Cannot create JSON index on column: %s of stored type other than 
STRING or MAP", column);
+      Preconditions.checkState(fieldSpec.isSingleValueField(), "Cannot create 
JSON index on multi-value column: %s",
+          column);

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