Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR - [DataFactory]Add json dataset support in ADF #6915

Merged
merged 2 commits into from
Aug 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,43 @@
"required": [
"location"
]
},
"JsonDataset": {
"x-ms-discriminator-value": "Json",
"description": "Json dataset.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Dataset"
}
],
"properties": {
"typeProperties": {
"description": "Json dataset properties.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/JsonDatasetTypeProperties"
}
}
},
"JsonDatasetTypeProperties": {
"description": "Json dataset properties.",
"properties": {
"location": {
"$ref": "#/definitions/DatasetLocation",
"description": "The location of the json data storage."
},
"encodingName": {
"type": "object",
"description": "The code page name of the preferred encoding. If not specified, the default value is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType string)."
},
"compression": {
"description": "The data compression method used for the json dataset.",
"$ref": "#/definitions/DatasetCompression"
}
},
"required": [
"location"
]
},
"BinaryDataset": {
"x-ms-discriminator-value": "Binary",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,29 @@
"required": [
"fileExtension"
]
},
"JsonWriteSettings": {
"description": "Json write settings.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/FormatWriteSettings"
}
],
"properties": {
"filePattern": {
"description": "File pattern of JSON. This setting controls the way a collection of JSON objects will be treated. The default value is 'setOfObjects'. It is case-sensitive.",
"type": "string",
"enum": [
"setOfObjects",
"arrayOfObjects"
],
"x-ms-enum": {
"name": "JsonWriteFilePattern",
"modelAsString": true
}
}
}
},
"AvroSource": {
"description": "A copy activity Avro source.",
Expand Down Expand Up @@ -724,6 +747,21 @@
"description": "DelimitedText format settings."
}
}
},
"JsonSource": {
"description": "A copy activity Json source.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/CopySource"
}
],
"properties": {
"storeSettings": {
"$ref": "#/definitions/StoreReadSettings",
"description": "Json store settings."
}
}
},
"DelimitedTextSink": {
"description": "A copy activity DelimitedText sink.",
Expand All @@ -743,6 +781,25 @@
"description": "DelimitedText format settings."
}
}
},
"JsonSink": {
"description": "A copy activity Json sink.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/CopySink"
}
],
"properties": {
"storeSettings": {
"$ref": "#/definitions/StoreWriteSettings",
"description": "Json store settings."
},
"formatSettings": {
"$ref": "#/definitions/JsonWriteSettings",
"description": "Json format settings."
}
}
},
"CopyActivity": {
"x-ms-discriminator-value": "Copy",
Expand Down