Samuel Papin
03/23/2026, 5:18 PMWHERE json_extract_scalar(some_column, "$.some_field", 'String', 'null') = some_other_string_col
But I am not sure why. Is that a pinot limitation? the error messages are not descriptive
Caught exception while doing operator: class org.apache.pinot.core.operator.query.SelectionOnlyOperator on segment some_segment: For input string: "null"Mayank
Raghvendra Yadav
03/23/2026, 5:39 PMSamuel Papin
03/23/2026, 5:54 PMMayank
Mayank
Samuel Papin
03/23/2026, 6:06 PMSamuel Papin
03/23/2026, 6:10 PMRaghvendra Yadav
03/23/2026, 6:41 PMSamuel Papin
03/23/2026, 7:13 PMCaught exception while processing query: QueryContext{_tableName='[TABLE]_OFFLINE', _subquery=null, _selectExpressions=[$segmentName], _distinct=true, _aliasList=[null],
_filter=(eventMetaTypeId = '[ID]' AND eventTypeInnerId = '[ID]' AND (minus(indexedString0,jsonextractscalar(properties,'$.[PROPERTY]','String','null')) != '0'), _groupByExpressions=null, _havingFilter=null, _orderByExpressions=null,
_limit=1000000, _offset=0, _queryOptions={timeoutMs=59987}, _expressionOverrideHints={}, _explain=NONE} [SERVER_NAME] 0 [INTERNAL_HOST] [HASH] 2026-03-19 20:22:28.000
and then we have
2026-03-23 16:06:19.700 ddb11638-1376-4e5d-b3bd-c45ca78b0f59 iad03 server Caused by: java.lang.NumberFormatException: For input string: "some_string" [server_url] 2026-03-19 20:19:14.000
where "some_string" is the value in the jsonextractscalar I think. I am not sure if the minus is forcing it to be interpreted as a number?Raghvendra Yadav
03/23/2026, 7:34 PMSamuel Papin
03/23/2026, 7:36 PMSamuel Papin
03/23/2026, 7:36 PMRaghvendra Yadav
03/23/2026, 7:37 PMSamuel Papin
03/23/2026, 7:37 PMSamuel Papin
03/23/2026, 7:40 PMequals(
json_extract_scalar(
properties,
'$.string_property',
'String',
'null'
), otherStringColumn
) = true
is failing with the same error.Raghvendra Yadav
03/23/2026, 8:47 PMRaghvendra Yadav
03/23/2026, 8:52 PMMayank
Samuel Papin
05/23/2026, 5:01 PMequals(
json_extract_scalar(
properties,
'$.string_property',
'String',
'null'
), otherStringColumn
) = true
Is now working as intended 🤷.
What do you think about updating the minus rewrite to the equals(A,B) = true format? I don't think it would lose performance, would it?Raghvendra Yadav
05/26/2026, 4:35 PMSamuel Papin
05/26/2026, 7:00 PMRaghvendra Yadav
07/06/2026, 12:42 AM