[ 
https://issues.apache.org/jira/browse/CALCITE-1235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15283925#comment-15283925
 ] 

Julian Hyde commented on CALCITE-1235:
--------------------------------------

It's a bit surprising to see a rule depend on {{EnumerableLimit}}, because it 
is a physical operator. I know there is no logical "pure" limit, only Sort, 
which may contain a limit. I suspect you could still find the right plan if you 
operated on a logical sort, pushing down the limit only if the sort key is 
empty.

I saw that you have a predicate that always returns true. You can use 
{{Predicates.<CassandraSort>alwaysTrue()}}.

> Push down LIMIT in unfiltered Cassandra queries
> -----------------------------------------------
>
>                 Key: CALCITE-1235
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1235
>             Project: Calcite
>          Issue Type: Improvement
>          Components: cassandra
>    Affects Versions: 1.7.0
>            Reporter: Michael Mior
>            Assignee: Michael Mior
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to