Invisible UTF-8 BOM char (ufeff
) at beginning of script causing error when communicating with Snowflake
#250
Labels
bug
Something isn't working
Describe the bug
When trying to run a schemachange script with
UTF-8 with BOM
encoding, the BOM char causes an SQL compilation error:syntax error line 1 at position 0 unexpected '\ufeff-'
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Schemachange should ignore the zero width no-break space char during SQL compliation.
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.
Schemachange (please complete the following information):
Additional context
A provisioning application runs in our pipeline that calls schemachange and passes through it's stdout/stderr, here are the logs from our pipeline (with potentially sensitive information redacted):
The text was updated successfully, but these errors were encountered: