gianm opened a new pull request, #15626:
URL: https://github.com/apache/druid/pull/15626

   Adds two new rules:
   
   1) ReverseLookupRule, which eliminates calls to LOOKUP by doing
      reverse lookups.
   
   2) AggregatePullUpLookupRule, which pulls up calls to LOOKUP above
      GROUP BY, when the lookup is injective.
   
   Adds configs `sqlReverseLookup` and `sqlPullUpLookup` to control whether 
these rules fire. Both are enabled by default.
   
   To minimize the chance of performance problems due to many keys mapping to 
the same value, ReverseLookupRule refrains from reversing a lookup if there are 
more keys than `inSubQueryThreshold`. The rationale for using this setting is 
that reversal works by generating an IN, and the `inSubQueryThreshold` 
describes the largest IN the user wants the planner to create.


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

Reply via email to