yashmayya opened a new pull request, #13283: URL: https://github.com/apache/pinot/pull/13283
- Currently, raw JSON values (non dictionary encoded) can't be queried directly via predicates like `=`, `!=`, `IN`, `NOT IN` and JSON columns are typically queried using the `JSON_MATCH` filter predicate that uses the JSON index. - Attempting to do so results in errors like: ``` QueryExecutionError: org.apache.pinot.spi.exception.BadQueryRequestException: java.lang.IllegalStateException: Unsupported data type: JSON at org.apache.pinot.core.operator.filter.predicate.PredicateEvaluatorProvider.getPredicateEvaluator(PredicateEvaluatorProvider.java:94) at org.apache.pinot.core.operator.filter.predicate.PredicateEvaluatorProvider.getPredicateEvaluator(PredicateEvaluatorProvider.java:100) at org.apache.pinot.core.plan.FilterPlanNode.constructPhysicalOperator(FilterPlanNode.java:310) at org.apache.pinot.core.plan.FilterPlanNode.run(FilterPlanNode.java:93) ... Caused by: java.lang.IllegalStateException: Unsupported data type: JSON at org.apache.pinot.core.operator.filter.predicate.EqualsPredicateEvaluatorFactory.newRawValueBasedEvaluator(EqualsPredicateEvaluatorFactory.java:87) at org.apache.pinot.core.operator.filter.predicate.PredicateEvaluatorProvider.getPredicateEvaluator(PredicateEvaluatorProvider.java:76) ... 24 more ``` - However, for certain simple JSON values, it could be useful to allow direct comparison using predicates like `=`, `!=`, `IN`, `NOT IN` via direct string matching like is done for `STRING` columns since the stored type for JSON columns is also `STRING`. -- 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-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org