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

Support for array<type> in hql #192

Open
ebernhardson opened this issue Mar 6, 2023 · 1 comment
Open

Support for array<type> in hql #192

ebernhardson opened this issue Mar 6, 2023 · 1 comment

Comments

@ebernhardson
Copy link

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>.

@ZbinH2O
Copy link

ZbinH2O commented Feb 19, 2024

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

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