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

Redshift backup clause #3125

Closed
hsheth2 opened this issue Mar 11, 2024 · 0 comments · Fixed by #3127
Closed

Redshift backup clause #3125

hsheth2 opened this issue Mar 11, 2024 · 0 comments · Fixed by #3127
Assignees

Comments

@hsheth2
Copy link
Contributor

hsheth2 commented Mar 11, 2024

from sqlglot import parse_one

parse_one(
    """
create table event_backup
backup yes
as
select * from event;
 """,
    read="redshift",
)

This triggers the command-based parsing fallback instead of parsing into a Create object: contains unsupported syntax. Falling back to parsing as a 'Command'.

Docs:

Seems like the backup yes clause needs to be recognized as a new exp.Property subtype.

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

Successfully merging a pull request may close this issue.

2 participants