-
Notifications
You must be signed in to change notification settings - Fork 112
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-1545867: COPY INTO command doesn't get submitted asynchronously by using collect_nowait #1941
Comments
Hello @ankitsr92 , Thanks for raising the issue, we are looking into it, will update. Regards, |
Hello @ankitsr92 , The Snowpark stored procedure always executes in a procedural way, it doesnt execute in parallel, thats why internal copy commands execute in a procedural way. Regards, |
@sfc-gh-sghosh I am not sure if you have got the question. Instead if i used any other SQL ( eg CTAS, INSERT INTO or just simple SYSTEM$WAIT ) collect_nowait works fine and moves to the next sql without waiting for its completion. Try this for example,
|
Thank you, @ankitsr92, for pointing out that. Regards, |
@sfc-gh-sghosh do you have any updates on this? i am also facing the same issue |
Hello @nickhealy @ankitsr92 , The team is working on the fix, will update. Regards, |
Hi @nickhealy @ankitsr92, can you please share which snowpark version you are using and the side effect which make you think the async jobs are not being submitted asynchronously? I am not able to reproduce it on my end. When inside stored procedure environment, you can set the version in packages
|
Please answer these questions before submitting your issue. Thanks!
3.8
Snowpark Snowflake Stored Procedure
pip freeze
)?Snowpark Snowflake Stored Procedure
when submitting copy commands to async jobs.. the copy commands still run in sequence. Whereas other sql's/CTAS does get submitted asynchronously.
for table in table_list:
sql_command -> COPY INTO command
async_job = session.sql(sql_command).collect_nowait()
async_jobs.append(async_job)
COPY INTO should be submitted asynchronously and I should see multiple parallel running COPY commands.
Running within Snowflake
The text was updated successfully, but these errors were encountered: