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]: Ignore comments in CQL in enhanced console #535

Open
millerjp opened this issue Nov 3, 2024 · 0 comments
Open

[bug]: Ignore comments in CQL in enhanced console #535

millerjp opened this issue Nov 3, 2024 · 0 comments
Assignees
Labels
Bug Something isn't working cql console

Comments

@millerjp
Copy link
Contributor

millerjp commented Nov 3, 2024

It is common to add comments to CQL which can get picked up when pasting in CQL. We need to ignore these.

Eg

-- Product inventory table
CREATE TABLE products (
    product_id uuid,
    name text,
    price decimal,
    stock int,
    last_updated timestamp,
    PRIMARY KEY (product_id)
);
-- This is a single-line comment

SELECT * FROM cycling.route; -- End of line comment

// This is also a single-line comment

SELECT * FROM cycling.route; // End of line comment

And handle multi line comments

/*
This is the first line of a comment that spans multiple lines
*/
SELECT * FROM cycling.route;
@millerjp millerjp added Bug Something isn't working cql console labels Nov 3, 2024
@millerjp millerjp added this to the v0.9.1-release milestone Nov 3, 2024
@millerjp millerjp changed the title [bug]: Ignore comments in CQL [bug]: Ignore comments in CQL in enhanced console Nov 3, 2024
millerjp added a commit that referenced this issue Nov 5, 2024
Improved support for podman #501 and #535, cql comments are ignored #535
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working cql console
Projects
None yet
Development

No branches or pull requests

2 participants