apache / apache/beam

Validate that namespace and table are part of the query in CassandraIO

Open
#19,377 0 comments 0 reactions 0 assignees View on GitHub
cassandra improvement io java P3
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

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.

 

Imported from Jira [BEAM-6940](https://issues.apache.org/jira/browse/BEAM-6940). Original Jira may contain additional context.
Reported by: iemejia.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.