`SELECT *` `FROM game_hands_data` `where JSON_MAT...
# troubleshooting
a
SELECT *
FROM game_hands_data
where JSON_MATCH(winnerDetail, '"$.winnerDetails.winnerUserName"=''user12121''' )
I am trying to run this query but it doesnt seem to run as an alteranative to json_scalar_extract
g
shouldn't it be:
Copy code
where JSON_MATCH(winnerDetail, '"$.winnerDetails.winnerUserName"="user12121"' )
(I changed
''
with
"
around
user12121
)
do you receive an error or an incorrect value?
a
Error Code: 200 QueryExecutionError: org.apache.pinot.spi.exception.BadQueryRequestException: Invalid json match filter: "$.winnerUserName" = "user12121" at org.apache.pinot.segment.local.segment.index.readers.json.ImmutableJsonIndexReader.getMatchingDocIds(ImmutableJsonIndexReader.java:104) at org.apache.pinot.core.operator.filter.JsonMatchFilterOperator.getTrues(JsonMatchFilterOperator.java:52) at org.apache.pinot.core.operator.filter.AndFilterOperator.getTrues(AndFilterOperator.java:56) at org.apache.pinot.core.operator.filter.BaseFilterOperator.getNextBlock(BaseFilterOperator.java:87)
still notmatching the query
I was able to solve it using json_extract_index