Skip to content

Commit 57828ef

Browse files
Update copy-into-transact-sql.md
Added Guidelines to the AUTO_CREATE_TABLE = ON
1 parent d19ec0a commit 57828ef

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docs/t-sql/statements/copy-into-transact-sql.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,18 @@ IDENTITY_INSERT specifies whether the identity value or values in the imported d
274274
- IDENTITY_INSERT can only be set for one table at a time.
275275

276276
#### *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
278278

279279
- 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.
280280
- OFF: Automatic table creation is not enabled. Default.
281281

282282
>[!NOTE]
283283
> The automatic table creation works alongside with automatic schema discovery. The automatic table creation is NOT enabled by default.
284284
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+
285289
### Permissions
286290

287291
The user executing the COPY command must have the following permissions:

0 commit comments

Comments
 (0)