dbt-labs / dbt-external-tables

dbt macros to stage external sources
https://hub.getdbt.com/dbt-labs/dbt_external_tables/latest/
Apache License 2.0
298 stars 120 forks source link

Add ignore_case option to snowflake infer schema #288

Open robby-rob-slalom opened 5 months ago

robby-rob-slalom commented 5 months ago

Describe the feature

Snowflake supports an IGNORE_CASE option for the INFER_SCHEMA function. This option is not currently passed through in the snowflake__create_external_table macro

Describe alternatives you've considered

Load the tables in as separate sources then union them back together in a later model.

Additional context

This is specific to Snowflake

Who will this benefit?

This is useful for situations when the column case has changed in external files, allowing combined cases to be treated as one column rather than two.