Skip to content

Gap in Snowflake DECLARE Parsing #6664

@LoganPrice344

Description

@LoganPrice344

Search before asking

  • I searched the issues and found no similar issues.

What Happened

SQLFluff throws a parsing error when it encounters a valid Snowflake SQL statement.

Expected Behaviour

This should correctly parse.

Observed Behaviour

== [test.sql] FAIL
L:  17 | P:   1 |  PRS | Line 17, Position 1: Found unparsable section:
                       | 'DECLARE\n    res RESULTSET;'

How to reproduce

DECLARE
    res RESULTSET;

Dialect

Snowflake

Version

V3.3.1

Configuration

N/A

Are you willing to work on and submit a PR to address the issue?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsnowflakeIssues related to the Snowflake dialect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions