You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UNLOAD ('SELECT "a\backslash`" FROM "test_schema"."tcn_abackslash4q3ju8a1ml"') TO 's3://bucket/location/' IAM_ROLE 'arn:aws:iam::1234567890:role/test_role' FORMAT PARQUET REGION AS'us-east-1' MAXFILESIZE AS5 MB;
fails with
[42703] ERROR: column "a�ackslash`" does not exist in tcn_abackslash4q3ju8a1ml
Expected behaviour: UNLOAD select query should have worked as well.
Actual behaviour: UNLOAD select query fails
Error message/stack trace:
Any other details that can be helpful:
JDBC trace logs
Reproduction code
Nothing special about reproduction.
The text was updated successfully, but these errors were encountered:
UNLOAD query text requires certain illegal characters to be escaped.
ie if we replace "a\backslash`" with "a\\backslash`" in the UNLOAD query then the query will succeed.
UNLOAD ('SELECT "a\\backslash`" FROM "test_schema"."tcn_abackslash4q3ju8a1ml"') TO 's3://bucket/location/' IAM_ROLE 'arn:aws:iam::1234567890:role/test_role' FORMAT PARQUET REGION AS'us-east-1' MAXFILESIZE AS5 MB;
Driver version
N/A as issue is reproducible in redshift query runner through AWS console. Additionally, issue is reproducible through 2.1.0.30 version as well.
Redshift version
PostgreSQL 8.0.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3), Redshift 1.0.78014
Client Operating System
N/A
JAVA/JVM version
N/A
Table schema
Problem description
Below select query with table having a column name containing \b works.
However, corresponding UNLOAD command
fails with
JDBC trace logs
Reproduction code
Nothing special about reproduction.
The text was updated successfully, but these errors were encountered: