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

LOCATION and TBLPROPERTIES clauses in CREATE TABLE LIKE statement #125

Closed
lapter57 opened this issue Apr 7, 2022 · 2 comments
Closed

LOCATION and TBLPROPERTIES clauses in CREATE TABLE LIKE statement #125

lapter57 opened this issue Apr 7, 2022 · 2 comments

Comments

@lapter57
Copy link

lapter57 commented Apr 7, 2022

Hi! If i create a table using the LIKE statement and add LOCATION and/or TBLPROPERTIES clauses to it, then returns [].

stmt = 'CREATE EXTERNAL TABLE IF NOT EXISTS schema.specific_table LIKE schema.table_template LOCATION "/path/to/table" TBLPROPERTIES ("external.table.purge" = "true")'
DDLParser(stmt).run(output_mode="hql")
@xnuinside
Copy link
Owner

@lapter57 , hi! thanks for reporting, will take a look at the evening

@xnuinside
Copy link
Owner

xnuinside commented Apr 24, 2022

@lapter57 hi again! sorry for the delay, fix released with version 0.26.1(https://pypi.org/project/simple-ddl-parser/), test added - https://github.com/xnuinside/simple-ddl-parser/blob/main/tests/test_hql_output_mode.py#L2251 if will be anything new - feel free to open new issue :) and thanks for report one more time!

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