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
The SQL lint for a create table with AThena and iceberg fails
According to the documentation a create table for iceberg is as following:
https://docs.aws.amazon.com/athena/latest/ug/querying-iceberg-creating-tables.html
CREATE TABLE iceberg_table (id bigint, data string, category string) PARTITIONED BY (category)) LOCATION 's3://DOC-EXAMPLE-BUCKET/your-folder/' TBLPROPERTIES ( 'table_type' = 'ICEBERG' )
When running lint this fails as the PARTIONED BY isn't recognized by the parser.
L: 3 | P: 1 | PRS | Line 26, Position 1: Found unparsable section: | "PARTITIONED BY (category)\nLOCATION 's..."
Parsing it correctly
`L: 3 | P: 1 | PRS | Line 26, Position 1: Found unparsable section: | "PARTITIONED BY (category)\nLOCATION 's..."
Use the example and run sqlfluff lint --dialect athena test.sql
Athena
sqlfluff, version 2.3.5
[sqlfluff] max_line_length = 100 templater = python
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Search before asking
What Happened
The SQL lint for a create table with AThena and iceberg fails
According to the documentation a create table for iceberg is as following:
https://docs.aws.amazon.com/athena/latest/ug/querying-iceberg-creating-tables.html
CREATE TABLE iceberg_table (id bigint, data string, category string) PARTITIONED BY (category)) LOCATION 's3://DOC-EXAMPLE-BUCKET/your-folder/' TBLPROPERTIES ( 'table_type' = 'ICEBERG' )
When running lint this fails as the PARTIONED BY isn't recognized by the parser.
L: 3 | P: 1 | PRS | Line 26, Position 1: Found unparsable section: | "PARTITIONED BY (category)\nLOCATION 's..."
Expected Behaviour
Parsing it correctly
Observed Behaviour
`L: 3 | P: 1 | PRS | Line 26, Position 1: Found unparsable section:
| "PARTITIONED BY (category)\nLOCATION 's..."
How to reproduce
Use the example and run sqlfluff lint --dialect athena test.sql
Dialect
Athena
Version
sqlfluff, version 2.3.5
Configuration
[sqlfluff]
max_line_length = 100
templater = python
Are you willing to work on and submit a PR to address the issue?
Code of Conduct
The text was updated successfully, but these errors were encountered: