Skip to content

Commit f8524da

Browse files
Merge pull request #230202 from ilijazagorac/patch-2
Update query-parquet-files.md
2 parents 1ea6aeb + 2b18fc3 commit f8524da

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)