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

In CREATE MATERIALIZED VIEW statements MATERIALIZED is not recognized as a keyword #752

Open
sean-rose opened this issue Nov 17, 2023 · 0 comments

Comments

@sean-rose
Copy link

Describe the bug
In CREATE MATERIALIZED VIEW statements MATERIALIZED is not recognized as a keyword.

To Reproduce

import sqlparse
parsed = sqlparse.parse('create materialized view x.y.z as select 1 as id')[0]
print(parsed.tokens[2].is_keyword)  # This should be True
print(parsed.tokens[2].normalized)  # This should be "MATERIALIZED" (uppercased)

Expected behavior
In CREATE MATERIALIZED VIEW statements MATERIALIZED should be recognized as a keyword, and thus should also be automatically uppercased in the normalized property.

Versions (please complete the following information):

  • Python: 3.10.7
  • sqlparse: 0.4.4

Additional context
N/A

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

No branches or pull requests

1 participant