simple-ddl-parser icon indicating copy to clipboard operation
simple-ddl-parser copied to clipboard

Nest field like STRUCT with COMMENT is not handled

Open kukigai opened this issue 3 years ago • 4 comments

I tried latest version simple-ddl-parser==0.26.4 but didn't work.

Sample schema.

CREATE EXTERNAL TABLE aaa.bbb ( test ARRAY<STRUCT<xyz: STRING COMMENT 'xxxxxx', date: STRING COMMENT 'xxxxxxx'>> COMMENT 'xxxxxx', ) COMMENT 'xxxxx' PARTITIONED BY (date STRING) STORED AS PARQUET LOCATION 's3://xxxxx'

When COMMENT is removed, it worked fine.

kukigai avatar Jun 28 '22 23:06 kukigai

@kukigai thanks for reporting the issue, I will take a look

xnuinside avatar Jun 29 '22 07:06 xnuinside

@xnuinside

Thanks! This is blocking my work so if you are busy, let me know. I could see if I can send PR.

kukigai avatar Jul 05 '22 18:07 kukigai

@kukigai yeah, I don't have a time last days :/ because of work project, and not sure what will have a time till weekends

xnuinside avatar Jul 05 '22 18:07 xnuinside

Is there any update on this? This is an important use case for us with struct columns having comments.

soujyosen avatar Mar 15 '23 03:03 soujyosen