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 delcare variable parsing fails #1175

Open
TylerBrinks opened this issue Mar 13, 2024 · 0 comments
Open

Snowflake delcare variable parsing fails #1175

TylerBrinks opened this issue Mar 13, 2024 · 0 comments

Comments

@TylerBrinks
Copy link

The following fails when parsing with the Snowflake dialect. Cross-referenced from the C# implementation.

    let sql = concat!(
    "DECLARE \
      query_id_1 VARCHAR; \
      query_id_2 VARCHAR; \
    BEGIN \
      SELECT TOP 100 LIVINGUNITID AS L1 \
                    ,PERSONID AS P1 \
      FROM ASSET_VIEWS.CV.CV_PII_ADV_CROSSWALK; \
      query_id_1 := SQLID; \
      RETURN [query_id_1]; \
    END;");

    snowflake().verified_stmt(sql);
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

No branches or pull requests

1 participant