Skip to content

Commit 2b18fc3

Browse files
authored
Update query-parquet-files.md
Added explanation why in case of automatic schema inference some columns might be omitted from the results.
1 parent e76bdbf commit 2b18fc3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

articles/synapse-analytics/sql/query-parquet-files.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ ORDER BY
121121

122122
You don't need to use the OPENROWSET WITH clause when reading Parquet files. Column names and data types are automatically read from Parquet files.
123123

124+
Have in mind that if you are reading number of files at once, the schema, column names and data types will be inferred from the first file service gets from the storage. This can mean that some of the columns expected are omitted, all because the file used by the service to define the schema did not contain these columns. To explicitly specify the schema, please use OPENROWSET WITH clause.
125+
124126
The following sample shows the automatic schema inference capabilities for Parquet files. It returns the number of rows in September 2018 without specifying a schema.
125127

126128
> [!NOTE]

0 commit comments

Comments
 (0)