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

quick start guide - Sentiment Analysis Using Snowflake Cortex AI on Iceberg Tables - mistake in the step - 4 last section code #1527

Open
standure opened this issue Aug 31, 2024 · 0 comments

Comments

@standure
Copy link

standure commented Aug 31, 2024

mistake in the step - 4 last section code of the cortex on iceberg guide

UPDATE demo.public.product_reviews AS pr
SET sentiment = jan.review_sentiment
FROM {{sql_reviews_jan}} AS jan
WHERE jan.id = pr.id;

Screenshot 2024-08-31 at 5 49 39 PM

it should rather be something like below -

UPDATE demo.public.product_reviews AS pr
SET sentiment = snowflake.cortex.sentiment(prs.review)
FROM demo.public.product_reviews AS prs
WHERE prs.id = pr.id;

@standure standure changed the title mistake in the step - 4 last section code quick start guide - Sentiment Analysis Using Snowflake Cortex AI on Iceberg Tables - mistake in the step - 4 last section code Aug 31, 2024
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