xtrntr
12/08/2021, 7:06 AMLIMIT way beyond that; any way to remove this? currently using the latest-jdk11 image for pinot on kubernetes
unfortunately, i can’t seem to use IN_SUBQUERY to represent the userid set, so on the client side i break my pinot queries into
1. fetch userids query (using a GROUP BY + HAVING query). sometimes i may get more than a million user ids
2. do final queryMayank
Mayank
IN_SUBQUERY?xtrntr
12/09/2021, 2:38 AMSELECT userid, COUNT(*) ... GROUP BY userid HAVING COUNT(userid) >= 8xtrntr
12/09/2021, 2:38 AMIN_SUBQUERY. am i wrong?Mayank
xtrntr
12/09/2021, 2:52 AMpinotdb.exceptions.DatabaseError: {'errorCode': 200,
'message': 'QueryExecutionError:\n'
'java.lang.UnsupportedOperationException: Operation not supported '
'for DISTINCT aggregation function\n'
'\tat '
'org.apache.pinot.core.query.aggregation.function.DistinctAggregationFunction.createAggregationResultHolder(DistinctAggregationFunction.java:104)\n'
'\tat '
'org.apache.pinot.core.query.aggregation.DefaultAggregationExecutor.<init>(DefaultAggregationExecutor.java:37)\n'
'\tat '
'org.apache.pinot.core.operator.query.AggregationOperator.getNextBlock(AggregationOperator.java:61)\n'
'\tat '
'org.apache.pinot.core.operator.query.AggregationOperator.getNextBlock(AggregationOperator.java:35)'}
{'errorCode': 200,
'message': 'QueryExecutionError:\n'
'java.lang.UnsupportedOperationException: Operation not supported '
'for DISTINCT aggregation function\n'
'\tat '
'org.apache.pinot.core.query.aggregation.function.DistinctAggregationFunction.createAggregationResultHolder(DistinctAggregationFunction.java:104)\n'
'\tat '
'org.apache.pinot.core.query.aggregation.DefaultAggregationExecutor.<init>(DefaultAggregationExecutor.java:37)\n'
'\tat '
'org.apache.pinot.core.operator.query.AggregationOperator.getNextBlock(AggregationOperator.java:61)\n'
'\tat '
'org.apache.pinot.core.operator.query.AggregationOperator.getNextBlock(AggregationOperator.java:35)'}xtrntr
12/09/2021, 11:16 PMxtrntr
12/10/2021, 3:54 AMMayank
Mayank
xtrntr
12/10/2021, 3:56 AMGROUP BY + HAVING, there's no workaround i'm aware of but to fetch the userids on the client side then use it as ID_SET in the second queryxtrntr
12/10/2021, 3:58 AMMayank
Mayank
pinot.server.query.executor.num.group.limitsMayank
Jackie
12/10/2021, 7:37 PMJackie
12/10/2021, 7:37 PMpinot.server.query.executor.num.groups.limitJackie
12/10/2021, 7:38 PMnum.groups.limit instead of num.group.limitsMayank
ID_SET question in the thread?Jackie
12/11/2021, 12:11 AMID_SET problem, as the filter is applied to aggregation resultxtrntr
01/06/2022, 10:14 AMpinot.server.query.executor.groupby.trim.thresholdxtrntr
01/06/2022, 10:15 AMpinot.server.query.executor.num.group.limits is 100kMayank
xtrntr
01/07/2022, 3:07 AMxtrntr
01/07/2022, 3:08 AMpinot.server.query.executor.groupby.trim.threshold beyond the 1M limit to cater for this use case?