Skip to content
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

insert_by_period_materialization.sql is doulbe quoting identifiers #33

Open
4 tasks
jeff-skoldberg opened this issue Sep 9, 2022 · 1 comment
Open
4 tasks
Labels
bug Something isn't working insert_by_period relating to the insert by period materializaiton

Comments

@jeff-skoldberg
Copy link

jeff-skoldberg commented Sep 9, 2022

Describe the error

The macro is double quoting identifiers even though my config is not set to.
First error:
"MY_DB"."my_schema" does not exist or not authorized.
I went to settings, Account Settings, Credentials, and changed the schema to upper case.
Next Error
"MY_DB."MY_SCHEMA"."test" does not exist
I changed the model name to upper case and it worked.

Steps to reproduce

create a model with a lowercase name in a database that has default uppercase or vice versa.

Expected results

case insensitivity

Actual results

Screenshots and log output

System information

The contents of your packages.yml file:
packages:

  • package: fivetran/salesforce_formula_utils
    version: [">=0.6.0", "<0.7.0"]

Which database are you using dbt with?

  • postgres
  • redshift
  • bigquery
  • [x ] snowflake
  • other (specify: ____________)

The output of dbt --version:

None

Additional context

Are you interested in contributing the fix?

@jeff-skoldberg jeff-skoldberg added the bug Something isn't working label Sep 9, 2022
@joellabes
Copy link
Contributor

@jeff-skoldberg this macro is not currently supported for Snowflake - I'm not surprised that this sort of thing has come up!

Also, it has just moved to https://github.com/dbt-labs/dbt-labs-experimental-features/tree/main/insert_by_period (it will be removed from dbt utils in v1.0.0 later next month).

I'm going to transfer this issue there, but it's not a project that the dbt team is dedicating any time to so it'll be up to the wider community to implement Snowflake compatibility.

@joellabes joellabes transferred this issue from dbt-labs/dbt-utils Sep 20, 2022
@dataders dataders added the insert_by_period relating to the insert by period materializaiton label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working insert_by_period relating to the insert by period materializaiton
Projects
None yet
Development

No branches or pull requests

3 participants