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

ASF GitHub Bot logged work on BEAM-6324:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 25/Jan/19 14:34
            Start Date: 25/Jan/19 14:34
    Worklog Time Spent: 10m 
      Work Description: srfrnk commented on issue #7340: [BEAM-6324] - 
Cassandra reader with query implemented
URL: https://github.com/apache/beam/pull/7340#issuecomment-457591407
 
 
   @timrobertson100 Thanks. Will make the required fixes + take a look at 
adding a test. Hopefully next week.
   @echauchot Thanks. I am aware that Cassandra hold many constraints over what 
you can and cannot do in a query (and specifically in the Where clause) - 
however when using a String Where clause I don't think any such tests can be 
done very safely. I suppose any incorrect Where cluase would come back as an 
error and shown to the user. I will need to test that though to confirm.
   
   In general this is just a workaround to be able to use Cassandra with a 
reasonable amount of  performance. The real solution has to use the 
QueryBuilder. Alas since Clause (and other classes by Datastax) is not 
Serializable this is impossible to do. I have tried to [PR for a change to 
allow this but it was 
rejected](https://github.com/datastax/java-driver/pull/1163). Currently I'm 
using [my own forked repo of the datastax java-driver 
](https://github.com/srfrnk/java-driver) which has the compiled JAR pushed so I 
can use it from other projects directly. Until such version is introduces I 
don't think better code can be done in here. WDYT?
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 190023)
    Time Spent: 1h 40m  (was: 1.5h)

> 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
>    Affects Versions: 2.9.0
>            Reporter: Shahar Frank
>            Assignee: Shahar Frank
>            Priority: Major
>              Labels: performance, pull-request-available
>          Time Spent: 1h 40m
>  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