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

When DDL has TBLPROPERTIES, result is empty #65

Closed
kukigai opened this issue Sep 16, 2021 · 3 comments
Closed

When DDL has TBLPROPERTIES, result is empty #65

kukigai opened this issue Sep 16, 2021 · 3 comments

Comments

@kukigai
Copy link

kukigai commented Sep 16, 2021

Describe the bug
When DDL has TBLPROPERTIES, result is empty

To Reproduce
ddl = """
CREATE EXTERNAL TABLE test (
job_id STRING COMMENT 'test'
)
STORED AS PARQUET LOCATION 'hdfs://test'
TBLPROPERTIES (
'parquet.compression'='SNAPPY')
"""
from simple_ddl_parser import DDLParser
parse_results = DDLParser(ddl).run(output_mode="hql")

Expected behavior
non empty result

@xnuinside
Copy link
Owner

@kukigai thanks for DDL sample, support for TBLPROPERTIES was not added yet, I will add

@kukigai
Copy link
Author

kukigai commented Sep 16, 2021

another example

ddl = """
CREATE EXTERNAL TABLE test (
test STRING NULL COMMENT 'xxxx',
)
STORED AS INPUTFORMAT
'org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'
LOCATION
'hdfs://xxxx'
"""
from simple_ddl_parser import DDLParser
parse_results = DDLParser(ddl).run(output_mode="hql")

@xnuinside
Copy link
Owner

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