Open NickFishr opened 3 months ago
Hello @NickFishr ,
Thanks for raising the issue, we confirm the issue is with regular session and its throwing exception will work on eliminating it.
SnowparkSQLException: (1304): 01b60cf5-080a-ecc4-0000-164925ab06da: 001003 (42000): SQL compilation error: syntax error line 1 at position 138 unexpected ')'.
Regards, Sujan
What version of Python are you using?
Python 3.11.0rc1 (main, Aug 12 2022, 10:02:14) [GCC 11.2.0]
What operating system and processor architecture are you using?
Linux-5.19.0-46-generic-x86_64-with-glibc2.35
What are the component versions in the environment (
pip freeze
)?What did you do?
Create a dataframe and a apply
filter()
with anisin()
subquery (whose result was empty).This problem does not occurr in local testing mode.
What did you expect to see?
An empty dataframe (since the intersection of any set with an empty set is again the empty set).
Can you set logging to DEBUG and collect the logs?
This is the output from the Python worksheet run in the web console (without the additional debug logs):
The failing generated SQL query was:
With the empty brackets after the
IN
at the end being the problem.