SNOW-1879403: In functions.replace, snowflake-snowpark-python v1.26.0 leads to AssertionError: Do not use lit(Column(...)), type hint does not allow this syntax. #2856
Labels
bug
Something isn't working
status-fixed_awaiting_release
The issue has been fixed, its PR merged, and now awaiting the next release cycle of the connector.
status-triage_done
Initial triage done, will be further handled by the driver team
Please answer these questions before submitting your issue. Thanks!
What version of Python are you using?
Python 3.11.4 (main, Feb 9 2024, 09:16:05) [GCC 9.4.0]
What operating system and processor architecture are you using?
Linux-5.15.167.4-microsoft-standard-WSL2-x86_64-with-glibc2.35
What are the component versions in the environment (
pip freeze
)?I expected the above code to run without issues. So far (until snowflake-snowpark-python v1.25.0) it did work. Now (with snowflake-snowpark-python v1.26.0),
lit
(and other functions, e.g.,iff
) insidereplace
fails with the AssertionError that I commented into the code in section 4 (which can also be seen in the below logs).I saw that as of snowflake-snowpark-python v1.26.0
lit
(and several other functions insnowflake.snowpark.functions
such asreplace
) has the@publicapi
decorator which might be the cause for this problem.The text was updated successfully, but these errors were encountered: