Skip to content

Commit

Permalink
added test source
Browse files Browse the repository at this point in the history
  • Loading branch information
robby-rob-slalom committed Apr 15, 2024
1 parent 070d413 commit 47cf91a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions sample_sources/snowflake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,23 @@ sources:
- name: name
description: and this is a name

- name: parquet_with_inferred_schema_and_mixed_column_case
description: "External table using Parquet and inferring the schema with mixed column case"
external:
location: "@stage" # reference an existing external stage
file_format: "my_file_format" # we need a named file format for infer to work
infer_schema: true # parameter to tell Snowflake we want to infer the table schema
ignore_case: true # parameter to tell Snowflake we want to ignore column case differences
partitions:
- name: section # we can define partitions on top of the schema columns
data_type: varchar(64)
expression: "substr(split_part(metadata$filename, 'section=', 2), 1, 1)"
columns: # columns can still be listed for documentation/testing purpose
- name: id
description: this is an id
- name: name
description: and this is a name

- name: aws_sns_refresh_tbl
description: "External table using AWS SNS for auto-refresh"
external:
Expand Down

0 comments on commit 47cf91a

Please sign in to comment.