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

control-center doesn't quote stream names in websocket queries, "Error parsing query: line 1:19: Syntax error at line 1:19" #10412

Open
chadmiller-saq opened this issue Aug 22, 2024 · 1 comment

Comments

@chadmiller-saq
Copy link

Describe the bug
The Control-Center displays a Flow of data through tables and streams, and upon clicking on any item, it displays a side panel that aims to show the contents, but the query to /ws/query does a simple "select * from %s emit changes", and that fails if the table or stream needs to be quoted.

To Reproduce

  • Create a stream with a hyphen in the name. "create stream `foo-bar` as select 'hi' as t from other;"
  • Visit the control-center, ksqlDB, and your cluster, and "data-flow".
  • Click on your new stream in the graph.
  • See a failure, {"error":"Error parsing query: line 1:19: Syntax error at line 1:19"}
  • See the developer console to see the query text, {"ksql":"select * from foo-bar EMIT CHANGES;","streamsProperties":{"auto.offset.reset":"earliest"}}, which has an invalid ksql query.

Sorry if this is the wrong project. Please reassign. The code organization is bewildering to outsiders, and nothing is called "control center" or close to it.

@chadmiller-saq
Copy link
Author

Screenshot 2024-08-22 at 10 38 57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant