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

CREATE OR REPLACE TABLE not recognized by parser #131

Closed
devxor opened this issue Jun 6, 2022 · 1 comment
Closed

CREATE OR REPLACE TABLE not recognized by parser #131

devxor opened this issue Jun 6, 2022 · 1 comment

Comments

@devxor
Copy link

devxor commented Jun 6, 2022

Describe the bug
CREATE OR REPLACE TABLE is not recognized. The parser returns empty list.

To Reproduce
I'm using "parse_from_file()". The DDL is from Snowflake DB.
Example of not working DDL:

create or replace table someTable (
    someField varchar(4)
);

Expected behaviour
See correct output.

@devxor devxor changed the title CREATE OR REPLACE TABLE not recognised by parser CREATE OR REPLACE TABLE not recognized by parser Jun 6, 2022
@xnuinside
Copy link
Owner

xnuinside commented Jun 7, 2022

@devxor hi! thanks for reporting the issue, I merged fix #132 & already released it in version 0.26.3 - https://pypi.org/project/simple-ddl-parser/ . test added: https://github.com/xnuinside/simple-ddl-parser/blob/main/tests/test_simple_ddl_parser.py#L2625. If will be any new issues - fill free to open the new ticket

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

2 participants