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

SNOW-892444: Add better error handling for async processes #1004

Open
patrickhowerter opened this issue Aug 14, 2023 · 1 comment
Open

SNOW-892444: Add better error handling for async processes #1004

patrickhowerter opened this issue Aug 14, 2023 · 1 comment
Labels
feature New feature or request

Comments

@patrickhowerter
Copy link

What is the current behavior?

When ever a sql query fails in with an Async job, it will only return a message such as:
snowflake.snowpark.exceptions.SnowparkSQLException: (1304): 01ae4e6b-0004-b4f8-0013-728700ad86ce: 000711 (02000): Query 01ae4e6b-0004-b4f8-0013-728700ad86ca has no result because it failed

What is the desired behavior?

Return the underlying query error message.
SQL compilation error: Object 'TABLETHATDOESNTEXIST' does not exist or not authorized.

How would this improve snowflake-snowpark-python?

It would give meaningful error handling

References, Other Background

sql = "select * from tablethatdoesntexist"
cl = session.sql(sql)
cl = cl.collect_nowait()
df = cl.to_df()
df.show()
image

@patrickhowerter patrickhowerter added the feature New feature or request label Aug 14, 2023
@github-actions github-actions bot changed the title Add better error handling for async processess SNOW-892444: Add better error handling for async processess Aug 14, 2023
@patrickhowerter patrickhowerter changed the title SNOW-892444: Add better error handling for async processess SNOW-892444: Add better error handling for async processes Aug 15, 2023
@sfc-gh-yixie
Copy link
Collaborator

Thanks for the feedback @patrickhowerter . We'll look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants