-
Notifications
You must be signed in to change notification settings - Fork 108
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-1622029: Table.update() raises TypeError if table contains any VariantType columns #2067
Comments
Per the documentation: https://docs.snowflake.com/en/developer-guide/snowpark/python/testing-locally#limitations
Adding these params has no effect: statement_params = {"ERROR_ON_NONDETERMINISTIC_UPDATE": False, "ERROR_ON_NONDETERMINISTIC_MERGE": False}
t.update({"b": 0}, t["a"] == 1, statement_params=statement_params)
E TypeError: unhashable type: 'dict' |
Hello @djfletcher , Thanks for raising the issue, yes, the issue is with local testing while updating the table and its working fine with regular session. Will work on eliminating it.
Output and Error:|"A" |"B" |"C" ||1 |1 |{} |
|
Please answer these questions before submitting your issue. Thanks!
Python 3.9.6 (default, Feb 3 2024, 15:58:27)
[Clang 15.0.0 (clang-1500.3.9.4)]
pandas==2.2.2
snowflake-snowpark-python==1.20.0
I am updating a Table row in my tests. I can reproduce using the same code as https://docs.snowflake.com/en/developer-guide/snowpark/reference/python/latest/snowpark/api/snowflake.snowpark.Table.update but with one extra variant column. Updating any column, even if it is not the VariantType column, raises a TypeError:
Here is the stacktrace:
The in-memory table should have been updated without raising a TypeError.
The text was updated successfully, but these errors were encountered: