Skip to content
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 @@ -719,6 +719,35 @@
"location"
]
},
"OrcDataset": {
"x-ms-discriminator-value": "Orc",
"description": "ORC dataset.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Dataset"
}
],
"properties": {
"typeProperties": {
"description": "ORC dataset properties.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/OrcDatasetTypeProperties"
}
}
},
"OrcDatasetTypeProperties": {
"description": "ORC dataset properties.",
"properties": {
"location": {
"$ref": "#/definitions/DatasetLocation",
"description": "The location of the ORC data storage."
}
},
"required": [
"location"
]
},
"BinaryDataset": {
"x-ms-discriminator-value": "Binary",
"description": "Binary dataset.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,21 @@
}
}
},
"OrcSource": {
"description": "A copy activity ORC source.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more thing is that where OrcSource and OrcSink are used in your swagger file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is the similiar usage.
Take Source as an example:
In specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json
"OrcSource" is to add a new type for "CopySource" with the defination "discriminator" in copy source(line 914). Then "CopySource" is referenced by "CopyActivityTypeProperties"(line 885)=>"CopyActivity"(line 859)=>extend a type for "Activity"(line 21)=>"Pipeline"(line 9)

In specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/datafactory.json
"Pipeline" was reference by "PipelineResource"(line 4106)=>used in several API.

Sink is almost the same as Source.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you use x-ms-discriminator-value in "OrcDataset" not in "OrcSource"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the real value we want for customer to use is "Orc" but not "OrcDataset".
@Juliehzl It will be very helpful if we can merge this PR before tomorrow, thanks.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TinaHu1 Thanks for your detailed explanation. Just ensure everything is in the right way. 😊

"type": "object",
"allOf": [
{
"$ref": "#/definitions/CopySource"
}
],
"properties": {
"storeSettings": {
"$ref": "#/definitions/StoreReadSettings",
"description": "ORC store settings."
}
}
},
"DelimitedTextSink": {
"description": "A copy activity DelimitedText sink.",
"type": "object",
Expand Down Expand Up @@ -814,6 +829,21 @@
}
}
},
"OrcSink": {
"description": "A copy activity ORC sink.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/CopySink"
}
],
"properties": {
"storeSettings": {
"$ref": "#/definitions/StoreWriteSettings",
"description": "ORC store settings."
}
}
},
"CopyActivity": {
"x-ms-discriminator-value": "Copy",
"description": "Copy activity.",
Expand Down