We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi Found this bug provided test:
ddl = """ CREATE TABLE IF NOT EXISTS default.salesorderdetail( column_abc ARRAY<string>, ) """ result = DDLParser(ddl, silent=False, normalize_names=True).run(output_mode="hql", group_by_type=True) expected = { "tables": [ { "if_not_exists": True, "columns": [ { "name": "column_abc", "type": "ARRAY <string>", "size": None, "references": None, "unique": False, "nullable": True, "default": None, "check": None, }] }] } assert expected == result
Error Message:
p = LexToken(RT,'ARRAY',1,65)
def p_error(self, p): if not self.silent:
raise DDLParserError(f"Unknown statement at {p}")
E simple_ddl_parser.ddl_parser.DDLParserError: Unknown statement at LexToken(RT,'ARRAY',1,65)
The text was updated successfully, but these errors were encountered:
@herokri thanks for reporting - will take a look on it on weekends
Sorry, something went wrong.
@xnuinside Any updates on this plz..?
@hanaluana , hi, I don’t have a time last several months because of personal issues. Didn’t work on it yet
I was able to fix this problem by simply adding a space after ARRAY. Like that "ARRAY <string>". Then remove space after parsing.
No branches or pull requests
Hi Found this bug provided test:
Error Message:
p = LexToken(RT,'ARRAY',1,65)
E simple_ddl_parser.ddl_parser.DDLParserError: Unknown statement at LexToken(RT,'ARRAY',1,65)
The text was updated successfully, but these errors were encountered: