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

Shahar Frank commented on BEAM-6324:
------------------------------------

Basically the current implementation looks like it can support only queries 
that end with WHERE.
So that leaves all of these according to the select query definition in CQL 
(http://cassandra.apache.org/doc/latest/cql/dml.html#select):
[ GROUP BY group_by_clause ]
[ ORDER BY ordering_clause ]
[ PER PARTITION LIMIT (integer | bind_marker) ]
[ LIMIT (integer | bind_marker) ]
[ ALLOW FILTERING ]

Adding each of these to the query will probably break the code resulting in a 
bad query being sent to Cassandra.

Do you think of any way to verify the KS and table name without parsing though?

> CassandraIO.Read - Add the ability to provide a filter to the query
> -------------------------------------------------------------------
>
>                 Key: BEAM-6324
>                 URL: https://issues.apache.org/jira/browse/BEAM-6324
>             Project: Beam
>          Issue Type: Improvement
>          Components: io-java-cassandra
>            Reporter: Shahar Frank
>            Assignee: Shahar Frank
>            Priority: Major
>              Labels: performance, pull-request-available, triaged
>             Fix For: Not applicable
>
>          Time Spent: 12h 50m
>  Remaining Estimate: 0h
>
> CassandraIO.Read doesn't support using WHERE to filter the input at the 
> source (In Cassandra) which might provide great performance boost.
> Already implemented by:
> https://github.com/apache/beam/pull/7340



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to