-
Notifications
You must be signed in to change notification settings - Fork 117
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-1075566: Patching function with no argument #1266
Comments
hi @petsvakala , thanks for reaching out. |
I did add
The column emulator assumes that the data is the same length as the column and inserts
|
Thank you for quick reply.
|
I was wrong. This appears to be a gap in the local testing API. I'll see if support can be added by the next release. |
Ok, what close status should I choose for this issue for time being or I will keep it open? |
@petsvakala -- Can you retry with v1.14.0? It should be fixed now |
Hi Here you can see new package exists:
Here is minimum code for reproducability:
This is how patching looks at the moment:
|
hey @petsvakala , we have added new features to our patching functions to pass length of rows, also now we have built-in mocking support for the could you try upgrading to the latest version of snowpark python and see if it helps resolve the issue? |
Hi @sfc-gh-aling , Yes now it seems to be working. Thank you again! |
Hi
I was following instructions how to patch built-in functions ( https://docs.snowflake.com/en/developer-guide/snowpark/python/testing-locally#patching-built-in-functions) however I am not sure how to do that for current_date() function.
This is how I have approached that:
but this only fills the first row of dataframe. Rest of the rows for that column will be NA.
This is how that specific code line looks like in my test function:
input_df.with_column('CURRENT_DATE', current_date())
The text was updated successfully, but these errors were encountered: