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