Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: CassandraIO creates bad query with ValueProvider query string #31622

Closed
1 of 16 tasks
georgecma opened this issue Jun 17, 2024 · 1 comment · Fixed by #31623
Closed
1 of 16 tasks

[Bug]: CassandraIO creates bad query with ValueProvider query string #31622

georgecma opened this issue Jun 17, 2024 · 1 comment · Fixed by #31623
Assignees

Comments

@georgecma
Copy link
Contributor

georgecma commented Jun 17, 2024

What happened?

Check my PR for tests that check for this condition failing.

Steps to reproduce:

  1. Create a ValueProvider that provides a String query into CassandraIO.read.withQuery(new someQueryValueProvider()); The ValueProvider can simply passthrough a query e.g. "SELECT * FROM KEYSPACE.TABLE";
  2. Run CassandraIO Read
  3. Note that CassandraIO fails.

The exact reason it fails is because CassandraIO read naively appends "AND" to all spec.query() values. In the reproduced steps, "SELECT * FROM KEYSPACE.TABLE" will change to "SELECT * FROM KEYSPACE.TABLE AND ..." which is invalid CQL syntax.

Issue Priority

Priority: 2 (default / most bugs should be filed as P2)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam YAML
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant