You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently we parse emit on window close as part of the create statement rather than select . As a result, queries like create materialized view ... as ( ... emit on window close ) can't be accepted because the parentheses explicitly include emit on window close as part of select.
The parentheses were added by dbt to wrap any materialized view query. Thus, this problem affect all DBT users.
Describe the solution you'd like
Is it possible to modify the parser to work around this?
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
fuyufjh
changed the title
feat(parser): support emit on window close in parentheses
feat(parser): support emit on window close in parentheses (DBT)
May 15, 2024
Is your feature request related to a problem? Please describe.
Currently we parse
emit on window close
as part of thecreate
statement rather thanselect
. As a result, queries likecreate materialized view ... as ( ... emit on window close )
can't be accepted because the parentheses explicitly includeemit on window close
as part ofselect
.The parentheses were added by dbt to wrap any materialized view query. Thus, this problem affect all DBT users.
Describe the solution you'd like
Is it possible to modify the parser to work around this?
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: