Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

ValueError: unsupported format character when CREATE TABLE is executed #352

Open
VMois opened this issue Feb 9, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@VMois
Copy link

VMois commented Feb 9, 2023

Describe the bug
I am using Meltano to run pipelinewise-target-snowflake. When the target tries to create a table with "%" it fails with "ValueError: unsupported format character 'A' (0x41) at index 50". The example query:

CREATE TABLE IF NOT EXISTS TAP_S3_CSV."TABLE1" ("%AVG" text, "_SDC_EXTRA" variant, "_SDC_SOURCE_BUCKET" text, "_SDC_SOURCE_FILE" text, "_SDC_SOURCE_LINENO" number) data_retention_time_in_days = 1

To Reproduce
Try to import the data that has a column with "%" in it.

Expected behavior
The table should be created with no errors.

Screenshots
N/A

Your environment

  • Version of target: 2.2.0
  • Version of python: 3.9.16

Additional context
Initially, I thought it might be a problem with missing quotas for column names, but the target takes care of it. After that, I found this issue - snowflakedb/snowflake-sqlalchemy#327. It might provides an explanation and possible solution.

@VMois VMois added the bug Something isn't working label Feb 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant