[
https://issues.apache.org/jira/browse/SOLR-8593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15753387#comment-15753387
]
Julian Hyde edited comment on SOLR-8593 at 12/16/16 4:21 AM:
-------------------------------------------------------------
Would it be correct to say that you have a physical operator which is a
combination of Aggregate and TopN? This physical operator would have a sorted
list of grouping fields and also a parameter N (which affects the cost
estimate). Maybe it's a sub-class of Aggregate with some extra fields. It could
be created by a planner rule that matches a Sort (with limit) on top of an
Aggregate and also looks at estimated cardinality of the fields in order to
sort them.
was (Author: julianhyde):
Would it be correct to say that you have a physical operator which is a
combination of Aggregate and TopN? This physical operator would have a sorted
list of grouping fields and also a parameter N (which affects the cost
estimate). Maybe it's a sub-class of Aggregate with some extra fields.
> Integrate Apache Calcite into the SQLHandler
> --------------------------------------------
>
> Key: SOLR-8593
> URL: https://issues.apache.org/jira/browse/SOLR-8593
> Project: Solr
> Issue Type: Improvement
> Reporter: Joel Bernstein
> Assignee: Joel Bernstein
> Attachments: SOLR-8593.patch, SOLR-8593.patch
>
>
> The Presto SQL Parser was perfect for phase one of the SQLHandler. It was
> nicely split off from the larger Presto project and it did everything that
> was needed for the initial implementation.
> Phase two of the SQL work though will require an optimizer. Here is where
> Apache Calcite comes into play. It has a battle tested cost based optimizer
> and has been integrated into Apache Drill and Hive.
> This work can begin in trunk following the 6.0 release. The final query plans
> will continue to be translated to Streaming API objects (TupleStreams), so
> continued work on the JDBC driver should plug in nicely with the Calcite work.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]