Jackie-Jiang opened a new pull request #6043:
URL: https://github.com/apache/incubator-pinot/pull/6043


   ## Description
   Add `IN_PARTITIONED_SUBQUERY` transform function to support `IDSET` 
aggregation function as the subquery on the server side. Because the subquery 
is solved on the server side, in order to make it work, the subquery must hit 
the same table as the main query, and the table must be partitioned at server 
level (all the segments for a partition is served by a single server).
   
   E.g. The following 2 queries can be combined into one query:
   SELECT ID_SET(col) FROM table WHERE date = 20200901
   SELECT DISTINCT_COUNT(col), date FROM table WHERE IN_ID_SET(col, 
'<serializedIdSet>') = 1 GROUP BY date
   ->
   SELECT DISTINCT_COUNT(col), date FROM table WHERE 
IN_PARTITIONED_SUBQUERY(col, 'SELECT ID_SET(col) FROM table WHERE date = 
20200901') = 1 GROUP BY date


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to