From f737f83e56a1fc85c75d279e3ac614abcb5fe2e0 Mon Sep 17 00:00:00 2001 From: David Zhao <31305478+davidzhaoyue@users.noreply.github.com> Date: Wed, 6 Nov 2019 12:18:45 +0800 Subject: [PATCH] [Datafactory] Enable SQL DW Copy Command (#7700) * [Datafactory] Enable SQL DW Copy Command * Add MAXERRORS into custom-words.txt --- custom-words.txt | 1 + .../2018-06-01/entityTypes/Pipeline.json | 42 +++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/custom-words.txt b/custom-words.txt index cbf32819fc57..ed5773976128 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -820,6 +820,7 @@ mariadb Marketo marketplaceagreementsapi marketplaceordering +MAXERRORS maximumblobsize maxmemory maxpagesize diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json index 0ab21be73251..e8b24fb4337b 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json @@ -3222,6 +3222,14 @@ "description": "Specifies PolyBase-related settings when allowPolyBase is true.", "$ref": "#/definitions/PolybaseSettings" }, + "allowCopyCommand": { + "type": "object", + "description": "Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: boolean (or Expression with resultType boolean)." + }, + "copyCommandSettings": { + "description": "Specifies Copy Command related settings when allowCopyCommand is true.", + "$ref": "#/definitions/DWCopyCommandSettings" + }, "tableOption": { "type": "object", "description": "The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string)." @@ -3265,6 +3273,40 @@ "modelAsString": true } }, + "DWCopyCommandSettings": { + "description": "DW Copy Command settings.", + "type": "object", + "properties": { + "defaultValues": { + "type": "array", + "description": "Specifies the default values for each target column in SQL DW. The default values in the property overwrite the DEFAULT constraint set in the DB, and identity column cannot have a default value. Type: array of objects (or Expression with resultType array of objects).", + "items": { + "$ref": "#/definitions/DWCopyCommandDefaultValue" + } + }, + "additionalOptions": { + "type": "object", + "description": "Additional options directly passed to SQL DW in Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: \"additionalOptions\": { \"MAXERRORS\": \"1000\", \"DATEFORMAT\": \"'ymd'\" }", + "additionalProperties": { + "type": "string" + } + } + } + }, + "DWCopyCommandDefaultValue": { + "description": "Default value.", + "type": "object", + "properties": { + "columnName": { + "type": "object", + "description": "Column name. Type: object (or Expression with resultType string)." + }, + "defaultValue": { + "type": "object", + "description": "The default value of the column. Type: object (or Expression with resultType string)." + } + } + }, "LogStorageSettings": { "description": "Log storage settings.", "type": "object",