You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/t-sql/statements/copy-into-transact-sql.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -274,14 +274,18 @@ IDENTITY_INSERT specifies whether the identity value or values in the imported d
274
274
- IDENTITY_INSERT can only be set for one table at a time.
275
275
276
276
#### *AUTO_CREATE_TABLE = { 'ON' | 'OFF' }*
277
-
*AUTO_CREATE_TABLE* specifies if the table could be automatically created by working alongside with automatic schema discovery.
277
+
*AUTO_CREATE_TABLE* specifies if the table could be automatically created by working alongside with automatic schema discovery. It is available oly for parquet files
278
278
279
279
- ON: Enables automatic table creation. The COPY INTO process will create a new table automatically by discovering the structure of the file to be loaded.
280
280
- OFF: Automatic table creation is not enabled. Default.
281
281
282
282
>[!NOTE]
283
283
> The automatic table creation works alongside with automatic schema discovery. The automatic table creation is NOT enabled by default.
284
284
285
+
> [!GUIDELINES]
286
+
> Do not load into hash distributed tables from parquet files using COPY INTO with AUTO_CREATE_TABLE = 'ON'
287
+
> If parquet files are to be loaded into Hash Distributed tables using COPY INTO, load it into a Round Robin staging table followed by insert select from that table to the target hash distribued table.
288
+
285
289
### Permissions
286
290
287
291
The user executing the COPY command must have the following permissions:
0 commit comments