dongxiaoman opened a new issue #7524:
URL: https://github.com/apache/pinot/issues/7524
Got an `java.lang.UnsupportedOperationException` error on
`ForwardIndexReader::readDictIds`, when I query distinct multi-value column
based on a filter of another distinct volume.
The query is something like below:
```
select account_key from point_transaction
where
external_id = 'some_id_xxx'
group by account_key
```
where both `account_key` and `external_id` are a multi-value column.
The exception call stack is like below:
```
ERROR [BaseCombineOperator] [pqw-3] Caught exception while executing
operator of index: 376 (query:
QueryContext{_tableName='point_transaction_OFFLINE',
_selectExpressions=[distinct(account_key)], _aliasList=[null],
_filter=((metadata_fields_values = 'ch_0Ig6M7xe9GF9c1YNN4GNQ0wo' OR external_id
= 'ch_0Ig6M7xe9GF9c1YNN4GNQ0wo') AND created_at <= '1633453199'),
_groupByExpressions=null, _havingFilter=null, _orderByExpressions=null,
_limit=200, _offset=0, _queryOptions={responseFormat=sql, groupByMode=sql,
timeoutMs=9893}, _debugOptions=null,
_brokerRequest=BrokerRequest(querySource:QuerySource(tableName:point_transaction_OFFLINE),
pinotQuery:PinotQuery(dataSource:DataSource(tableName:point_transaction_OFFLINE),
selectList:[Expression(type:FUNCTION, functionCall:Function(operator:distinct,
operands:[Expression(type:IDENTIFIER,
identifier:Identifier(name:account_key))]))],
filterExpression:Expression(type:FUNCTION, functionCall:Function(operator:AND,
operands:[Expression(type:FUNCTION
, functionCall:Function(operator:OR, operands:[Expression(type:FUNCTION,
functionCall:Function(operator:EQUALS, operands:[Expression(type:IDENTIFIER,
identifier:Identifier(name:metadata_fields_values)), Expression(type:LITERAL,
literal:<Literal stringValue:ch_0Ig6M7xe9GF9c1YNN4GNQ0wo>)])),
Expression(type:FUNCTION, functionCall:Function(operator:EQUALS,
operands:[Expression(type:IDENTIFIER, identifier:Identifier(name:external_id)),
Expression(type:LITERAL, literal:<Literal
stringValue:ch_0Ig6M7xe9GF9c1YNN4GNQ0wo>)]))])), Expression(type:FUNCTION,
functionCall:Function(operator:LESS_THAN_OR_EQUAL,
operands:[Expression(type:IDENTIFIER, identifier:Identifier(name:created_at)),
Expression(type:LITERAL, literal:<Literal stringValue:1633453199>)]))])),
orderByList:[], limit:200, queryOptions:{responseFormat=sql, groupByMode=sql,
timeoutMs=9893}))})
java.lang.UnsupportedOperationException: null
at
org.apache.pinot.segment.spi.index.reader.ForwardIndexReader.readDictIds(ForwardIndexReader.java:84)
~[pinot-all-0.9.0-2021-09-09-b53464461-SNAPSHOT-jar-with-dependencies.jar:0.9.0-2021-09-09-b53464461-SNAPSHOT-b53464461cbdd36655ef7e9b7cf13f42975aa059]
at
org.apache.pinot.core.common.DataFetcher$ColumnValueReader.readDictIds(DataFetcher.java:278)
~[pinot-all-0.9.0-2021-09-09-b53464461-SNAPSHOT-jar-with-dependencies.jar:0.9.0-2021-09-09-b53464461-SNAPSHOT-b53464461cbdd36655ef7e9b7cf13f42975aa059]
at
org.apache.pinot.core.common.DataFetcher.fetchDictIds(DataFetcher.java:88)
~[pinot-all-0.9.0-2021-09-09-b53464461-SNAPSHOT-jar-with-dependencies.jar:0.9.0-2021-09-09-b53464461-SNAPSHOT-b53464461cbdd36655ef7e9b7cf13f42975aa059]
at
org.apache.pinot.core.common.DataBlockCache.getDictIdsForSVColumn(DataBlockCache.java:99)
~[pinot-all-0.9.0-2021-09-09-b53464461-SNAPSHOT-jar-with-dependencies.jar:0.9.0-2021-09-09-b53464461-SNAPSHOT-b53464461cbdd36655ef7e9b7cf13f42975aa059]
at
org.apache.pinot.core.operator.docvalsets.ProjectionBlockValSet.getDictionaryIdsSV(ProjectionBlockValSet.java:69)
~[pinot-all-0.9.0-2021-09-09-b53464461-SNAPSHOT-jar-with-dependencies.jar:0.9.0-2021-09-09-b53464461-SNAPSHOT-b53464461cbdd36655ef7e9b7cf13f42975aa059]
at
org.apache.pinot.core.query.distinct.dictionary.DictionaryBasedSingleColumnDistinctOnlyExecutor.process(DictionaryBasedSingleColumnDistinctOnlyExecutor.java:42)
~[pinot-all-0.9.0-2021-09-09-b53464461-SNAPSHOT-jar-with-dependencies.jar:0.9.0-2021-09-09-b53464461-SNAPSHOT-b53464461cbdd36655ef7e9b7cf13f42975aa059]
at
org.apache.pinot.core.operator.query.DistinctOperator.getNextBlock(DistinctOperator.java:61)
~[pinot-all-0.9.0-2021-09-09-b53464461-SNAPSHOT-jar-with-dependencies.jar:0.9.0-2021-09-09-b53464461-SNAPSHOT-b53464461cbdd36655ef7e9b7cf13f42975aa059]
at
org.apache.pinot.core.operator.query.DistinctOperator.getNextBlock(DistinctOperator.java:38)
~[pinot-all-0.9.0-2021-09-09-b53464461-SNAPSHOT-jar-with-dependencies.jar:0.9.0-2021-09-09-b53464461-SNAPSHOT-b53464461cbdd36655ef7e9b7cf13f42975aa059]
at
org.apache.pinot.core.operator.BaseOperator.nextBlock(BaseOperator.java:49)
~[pinot-all-0.9.0-2021-09-09-b53464461-SNAPSHOT-jar-with-dependencies.jar:0.9.0-2021-09-09-b53464461-SNAPSHOT-b53464461cbdd36655ef7e9b7cf13f42975aa059]
at
org.apache.pinot.core.operator.combine.BaseCombineOperator.processSegments(BaseCombineOperator.java:150)
```
--
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]