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

Syntax error due to <user> placeholder in SQL code #1753

Open
davidmwilliams opened this issue Nov 27, 2024 · 0 comments
Open

Syntax error due to <user> placeholder in SQL code #1753

davidmwilliams opened this issue Nov 27, 2024 · 0 comments

Comments

@davidmwilliams
Copy link

Describe the bug
The Snowflake quickstart "Getting Started with Cortex Analyst: Augment BI with AI" says to execute the create_snowflake_objects.sql file, but if you do you get "Syntax error: unexpected '<'. (line 9).

This is because the SQL code has a line that says grant role cortex_user_role to user ; - presumably the docs are meant to tell the user to grant that role to the user's own username. However, nothing in the docs says to do this, and there are no comments in the SQL to this effect either.

URL of where you see the bug
https://quickstarts.snowflake.com/guide/getting_started_with_cortex_analyst/#1

To Reproduce
Steps to reproduce the behavior:

  1. Log into Snowflake
  2. Create a new worksheet
  3. Open the create_snowflake_objects.sql file, as pulled from the GitHub repo
  4. Run it within Snowflake

Expected behavior
All the lines of code to execute successfully.

Screenshots
image

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows 11
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

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