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

YCQL DDL commands (create table/create type) failing when using "user" or "when" #2661

Closed
verzlo opened this issue Oct 21, 2019 · 0 comments
Closed
Assignees
Labels
area/docdb YugabyteDB core features community/request Issues created by external users priority/medium Medium priority issue

Comments

@verzlo
Copy link

verzlo commented Oct 21, 2019

applying our Cassandra keyspace DDL - I found 2 cases where you seem to have "reserved word" which is not "reserved" for Cassandra and I can not use them in the table or column name: 2 words which I found which do not work are "user" and "when" (we used user in both column name and table name and also use when in multiple col names).

@yugabyte-ci yugabyte-ci added the community/request Issues created by external users label Oct 21, 2019
@ddorian ddorian added the area/docdb YugabyteDB core features label Oct 21, 2019
@kmuthukk kmuthukk added the priority/medium Medium priority issue label Oct 21, 2019
nocaway added a commit that referenced this issue Oct 22, 2019
Summary:
Move USER and WHEN from reserved_keyword list to unreserved_keyword list.
Additionally, to avoid parsing error, the syntax rules for the following unused features are also removed.
- USER function (Postgres allows "SELECT USER;" where USER is a function, but CQL doesn't have this feature).
- MAPPING USER (Another Postgres feature that is not supported in CQL).
- CASE expression which uses WHEN keyword.

Test Plan: Jenkins CQL tests

Reviewers: mihnea

Reviewed By: mihnea

Subscribers: yql

Differential Revision: https://phabricator.dev.yugabyte.com/D7427
@nocaway nocaway closed this as completed Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docdb YugabyteDB core features community/request Issues created by external users priority/medium Medium priority issue
Projects
None yet
Development

No branches or pull requests

6 participants