Skip to content

Commit 72005f0

Browse files
soyeric128Chasen-Zhang
authored andcommitted
added CASE_SENSITIVE
1 parent 8525dc1 commit 72005f0

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

docs/en/guides/40-load-data/04-transform/00-querying-parquet.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ FROM {@<stage_name>[/<path>] [<table_alias>] | '<uri>' [<table_alias>]}
1313
[<connection_parameters>],
1414
[ PATTERN => '<regex_pattern>'],
1515
[ FILE_FORMAT => 'PARQUET | <custom_format_name>'],
16-
[ FILES => ( '<file_name>' [ , '<file_name>' ] [ , ... ] ) ]
16+
[ FILES => ( '<file_name>' [ , '<file_name>' ] [ , ... ] ) ],
17+
[ CASE_SENSITIVE => true | false ]
1718
)]
1819
```
1920

docs/en/guides/40-load-data/04-transform/index.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ FROM {@<stage_name>[/<path>] [<table_alias>] | '<uri>' [<table_alias>]}
2222
[<connection_parameters>],
2323
[ PATTERN => '<regex_pattern>'],
2424
[ FILE_FORMAT => 'CSV | TSV | NDJSON | PARQUET | ORC | <custom_format_name>'],
25-
[ FILES => ( '<file_name>' [ , '<file_name>' ... ])]
25+
[ FILES => ( '<file_name>' [ , '<file_name>' ... ])],
26+
[ CASE_SENSITIVE => true | false ]
2627
)]
2728
```
2829

@@ -69,6 +70,13 @@ The PATTERN option allows you to specify a [PCRE2](https://www.pcre.org/current/
6970

7071
The FILES option, on the other hand, enables you to explicitly specify one or more file names separated by commas. This option allows you to directly filter and query data from specific files within a folder. For example, if you want to query data from the Parquet files "books-2023.parquet", "books-2022.parquet", and "books-2021.parquet", you can provide these file names within the FILES option.
7172

73+
### CASE_SENSITIVE
74+
75+
The CASE_SENSITIVE parameter determines whether column names in the queried *Parquet* files are treated with case sensitivity:
76+
77+
- `CASE_SENSITIVE => false` (default): Column names are treated as case-insensitive, meaning `b` and `B` are considered the same. However, queries will fail if the column name in the file does not match the queried column name exactly.
78+
- `CASE_SENSITIVE => true`: Column names are treated as case-sensitive, meaning only exact matches (including case) are valid. For example, querying `B` will succeed if the column in the file is named `B`, but not if it is named `b`.
79+
7280
### table_alias
7381

7482
When working with staged files in a SELECT statement where no table name is available, you can assign an alias to the files. This allows you to treat the files as a table, with its fields serving as columns within the table. This is useful when working with multiple tables within the SELECT statement or when selecting specific columns. Here's an example:

0 commit comments

Comments
 (0)