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

Support for array<type> in hql

Open ebernhardson opened this issue 2 years ago • 1 comments

Within HQL the following is a valid create table statement:

CREATE TABLE a.b (
    `c` array<string>
)

But parsing this with DDLParser emits:

simple_ddl_parser.ddl_parser.DDLParserError: Unknown statement at LexToken(RT,'array<string>',1,23)

Poking through the existing tests and closed issues I see a specific form of array<struct<cola:string,colb:string>> is supported, but it doesn't seem like the generic handling of arrays is working. The hive docs aren't particularly clear, but they show that all data types are valid within the <>, and elsewhere on the page gives a specific example using array<string>.

ebernhardson avatar Mar 06 '23 21:03 ebernhardson

I have the same problem.How to solve this problem? @xnuinside

ZbinH2O avatar Feb 19 '24 02:02 ZbinH2O