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

Snowflake: Fixed data type casting not working in SET statement #1604

Merged
merged 2 commits into from Oct 12, 2021

Conversation

wong-codaio
Copy link
Contributor

@wong-codaio wong-codaio commented Oct 12, 2021

Brief summary of the change made

Fixes #1601

Are there any other side effects of this change that we should be aware of?

Changing the ANSI definition, rather than implementing in Snowflake dialect but think that's OK as other casting in ANSI.

Pull Request checklist

  • Please confirm you have completed any of the necessary steps below.

  • Included test cases to demonstrate any code changes, which may be one or more of the following:

    • .sql/.yml parser test cases in test/fixtures/dialects (note YML files can be auto generated with python test/generate_parse_fixture_yml.py or by running tox locally).

@codecov
Copy link

codecov bot commented Oct 12, 2021

Codecov Report

Merging #1604 (1149148) into main (f0e49de) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##              main     #1604   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          131       131           
  Lines         9180      9180           
=========================================
  Hits          9180      9180           
Impacted Files Coverage Δ
src/sqlfluff/dialects/dialect_ansi.py 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f0e49de...1149148. Read the comment docs.

Copy link
Member

@tunetheweb tunetheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

Added this to the "Are there any other side effects of this change that we should be aware of?" section of the initial comment:

Changing the ANSI definition, rather than implementing in Snowflake dialect but think that's OK as other casting in ANSI.

Always good to point out when might be side effects.

@tunetheweb tunetheweb merged commit dce7c29 into sqlfluff:main Oct 12, 2021
@wong-codaio wong-codaio deleted the wong-fix-1601 branch October 12, 2021 14:00
ttomasz pushed a commit to ttomasz/sqlfluff that referenced this pull request Oct 12, 2021
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

Successfully merging this pull request may close these issues.

Snowflake: UPDATE statement does not support ::TIMESTAMP_TZ as a data type caster
2 participants