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):
Describe the bug In
CREATE MATERIALIZED VIEW
statementsMATERIALIZED
is not recognized as a keyword.To Reproduce
Expected behavior In
CREATE MATERIALIZED VIEW
statementsMATERIALIZED
should be recognized as a keyword, and thus should also be automatically uppercased in thenormalized
property.Versions (please complete the following information):
Additional context N/A