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
We're encountering an issue with the quote:true column configuration of one of our external tables. It won't accept a column name [EXAMPLE'COLUMN'2]
See the quote: true property example.
Steps to reproduce
In our yml file for our external tables, we're applying the quote:true property to our column. See example below
tables:
- name: atxprism_allpositionsexternal:
location: "@{{ env_var('DBT_ENVIRONMENT') }}_BLAH.BLAH.{{ env_var('DBT_ENVIRONMENT') }}_BLAH"# reference an existing external stagefile_format: "( type = csv )"# fully specified here, or reference an existing file formatpattern: ".*[.]json"# Optional object key pattern# Instead of an external tables, create an empty table, backfill it, and pipe new datasnowpipe:
auto_ingest: true # requires either `aws_sns_topic` or `integration`# aws_sns_topic: # Amazon S3integration: "BLAH_{{ env_var('DBT_ENVIRONMENT') }}_BLAH"# Google Cloud or Azurecopy_options: "on_error = continue, enforce_length = false"# e.g.columns:
...
- name: "EXAMPLE`COLUMN`2"quote: truedata_type: varchar(255)description: ""
Expected results
We expect that the package will correctly identify the [EXAMPLE'COLUMN'2] as a valid column name and create the external table accordingly.
yikes! this is special column. quick question is the column have single quotes (') or backticks (`)?
I wasn't able to reproduce, in fact it worked for me. I suspect there might be something else going on?
Here's what I did. I used the people_a.csv from this repo (link), but the file shouldn't matter since data isn't checked when the CREATE EXTERNAL TABLE statement is run, only when it's queried.
Anyway the below YAML generated the below SQL (can be found in logs/dbt.log). You can see the column name is properly enclosed within double quotes (") as per Snowflake guidance.
Describe the bug
We're encountering an issue with the
quote:true
column configuration of one of our external tables. It won't accept a column name[EXAMPLE'COLUMN'2]
See the quote: true property example.
Steps to reproduce
In our yml file for our external tables, we're applying the quote:true property to our column. See example below
Expected results
We expect that the package will correctly identify the
[EXAMPLE'COLUMN'2]
as a valid column name and create the external table accordingly.Actual results
We received the following error
Screenshots and log output
System information
The contents of your
packages.yml
file:Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using:
The output of
python --version
:Additional context
The text was updated successfully, but these errors were encountered: