Skip to content

Commit

Permalink
Support schema property for dataset (#5019)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmagic313 authored and sarangan12 committed Jan 15, 2019
1 parent 4b06e4d commit 4d4863f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
"type": "object",
"description": "Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement."
},
"schema": {
"type": "object",
"description": "Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement."
},
"linkedServiceName": {
"description": "Linked service reference.",
"$ref": "../datafactory.json#/definitions/LinkedServiceReference"
Expand Down Expand Up @@ -71,6 +75,23 @@
}
}
},
"DatasetSchemaDataElement": {
"description": "Columns that define the physical type schema of the dataset.",
"type": "object",
"properties": {
"name": {
"type": "object",
"description": "Name of the schema column. Type: string (or Expression with resultType string)."
},
"type": {
"type": "object",
"description": "Type of the schema column. Type: string (or Expression with resultType string)."
}
},
"additionalProperties": {
"type": "object"
}
},
"DatasetStorageFormat": {
"discriminator": "type",
"description": "The format definition of a storage.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@
"type": "Microsoft.DataFactory/factories/datasets",
"properties": {
"type": "AzureBlob",
"schema": [
{
"name": "col1",
"type": "INT_32"
},
{
"name": "col2",
"type": "Decimal",
"precision": "38",
"scale": "2"
}
],
"typeProperties": {
"folderPath": {
"value": "@dataset().MyFolderPath",
Expand Down

0 comments on commit 4d4863f

Please sign in to comment.