Skip to content
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

spark connector for snowflake unable to handle NULLs in numeric columns #546

Open
prabodh1194 opened this issue Feb 19, 2024 · 1 comment

Comments

@prabodh1194
Copy link

prabodh1194 commented Feb 19, 2024

I have a glue job using the snowflake spark connector. It keeps failing when it sees null values in the dataframe. I am unable to debug this issue.

Glue 4 is using this snowflake driver -- spark-snowflake_2.12-2.12.0-spark_3.3.jar

error:
 Numeric value 'null' is not recognized
@sfc-gh-sghosh
Copy link

sfc-gh-sghosh commented Apr 1, 2024

Hello @prabodh1194 ,

Thanks for raising the issue.

I tried to reproduce the issue, but its working fine. A table with numeric column having null. created a dafaframe out of it.
`
df = spark.read.format(SNOWFLAKE_SOURCE_NAME).options(**sfOptions).option("dbtable", "my_table_int").load()

#Show DataFrame content
df.show()`

Ouptut:

+----+-----+ | ID| NAME| +----+-----+ | 1| John| | 2|Alice| |null| null| | 4| Bob| |null| null| +----+-----+
Could you provide the code snippet ( small sample application) so we can reproduce the issue.

Regards,
Sujan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants