-
-
Notifications
You must be signed in to change notification settings - Fork 750
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
Postgres: TIMESTAMP WITH TIME ZONE not parsed #1155
Comments
+1 same behavior in Redshift with following query
is wrongly fixed to
|
Hello @WittierDinosaur
I ran
FYI
Any idea ? |
@Olaktal There are a few things going on here:
Can you post your issue as a new issue so that I can keep track of it? |
Actually was just looking @WittierDinosaur and have a fix for adding TIMESTAMPTZ to save you. As you say it's very simple! |
Those remaining pieces have been implemented now @Olaktal . Will be fixed in the next release. |
Thank you both @tunetheweb and @WittierDinosaur, can't wait for 0.6.6 ! |
That might be very soon... Already talking about it despite 0.6.5 only being released last week since we've been knocking out a load of stuff at rate of knots and a good load of stuff fixed since then. |
Hello guys input
Running Result
FYI, when a try
Any idea why it's not parsable ? cc @tunetheweb |
@Olaktal: You need to specify |
-- If this is a parsing or linting issue, please include a minimal SQL example which reproduces the issue, along with the
sqlfluff parse
output,sqlfluff lint
output andsqlfluff fix
output when relevant. Finally, please add any labels that are related to the issue before submitting so that it can be addressed easily! --Expected Behaviour
I would expect statements with keyword 'timestamp with time zone' to be parsed by sqlfluff, as they are supported by ANSI SQL:2011 standard.
Observed Behaviour
Steps to Reproduce
Create a sql file with the following query:
Version
sqlfluff version 0.6.0a2
Python 3.8.1
This example comes from the official PostgreSQL documentation.
As per ANSI SQL:2011 standard, the ANSI DateTime data types include TIME WITH TIME ZONE and TIMESTAMP WITH TIME ZONE, so this should probably be added to the ansi module.
The text was updated successfully, but these errors were encountered: