[
https://issues.apache.org/jira/browse/BEAM-6940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16805861#comment-16805861
]
Shahar Frank commented on BEAM-6940:
------------------------------------
I think the best thing to do for the long run is port of create an abstraction
layer on top of
[QueryBuilder|https://github.com/datastax/java-driver/blob/4.x/query-builder/src/main/java/com/datastax/oss/driver/api/querybuilder/QueryBuilder.java]
Otherwise we will need to parse the query string which would probably be very
error prone.
Can we maybe do that now with only the currently supported CQL features
implemented?
WDYT?
> Validate that namespace and table are part of the query in CassandraIO
> ----------------------------------------------------------------------
>
> Key: BEAM-6940
> URL: https://issues.apache.org/jira/browse/BEAM-6940
> Project: Beam
> Issue Type: Improvement
> Components: io-java-cassandra
> Reporter: Ismaël Mejía
> Priority: Minor
>
> If the user sets a different namespace or table than the ones provided in
> `withQuery`. CassandraIO may throw an exception, or get invalid size
> estimation (so invalid splitting).
> To fix this, if the query is set (not null) we should validate that the
> namespace and table should be part of the query expression.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)