-
Notifications
You must be signed in to change notification settings - Fork 473
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-1438313: Invisible UTF-8 BOM char (ufeff
) at beginning of script causing error when communicating with Snowflake
#1949
Comments
ufeff
) at beginning of script causing error when communicating with Snowflakeufeff
) at beginning of script causing error when communicating with Snowflake
Here is a related issue I opened in the schemachange repository that I opened when I first noticed the bug: Snowflake-Labs/schemachange#250 They said it stemmed from a lack of additional validation before utilizing the |
hey and thanks for opening this issue here in the PythonConnector repo - if the issue stems from this connector, I also think it's the right thing to address it here , if possible. Taking a look. |
Gotcha. Yep will try to reproduce from my end on my local machine (as opposed to the pipeline which won't be as easy to test with) and report back. I'm not familiar with the lib, so first off I'll make sure I can actually replicate it via schemachange locally before wrapping my head around using the lib itself. |
a month passed now and since there is no reproduction available, i'm closing this one for now. please do comment and share reproduction and i can keep looking if needed |
Python version
Python 3.9.4 (tags/v3.9.4:1f2e308, Apr 4 2021, 13:27:16) [MSC v.1928 64 bit (AMD64)]
Operating system and processor architecture
Windows-10-10.0.22621-SP0
Installed packages
What did you do?
What did you expect to see?
snowflake-connector-python should ignore the zero width no-break space char during SQL compilation.
Alternatively, if UTF-8 (without BOM) encoding is a strict requirement, an error with a message explicitly stating only UTF-8 encoding is supported should be thrown.
Can you set logging to DEBUG and collect the logs?
The text was updated successfully, but these errors were encountered: