|
148 | 148 | "type": "Expression" |
149 | 149 | }, |
150 | 150 | "directoryName": "current-fileformat/schemafile", |
151 | | - "fileName": "@{item().TABLE_SCHEMA}.@{item().TABLE_NAME}.csv" |
| 151 | + "fileName": { |
| 152 | + "value": "@{item().TABLE_CATALOG}.@{item().TABLE_SCHEMA}.@{item().TABLE_NAME}.csv", |
| 153 | + "type": "Expression" |
| 154 | + } |
152 | 155 | } |
153 | 156 | } |
154 | 157 | ] |
|
222 | 225 | "value": "@concat(pipeline().parameters.FileShareRootFolder,'/Target')", |
223 | 226 | "type": "Expression" |
224 | 227 | }, |
225 | | - "FileName": "@{item().TABLE_SCHEMA}.@{item().TABLE_NAME}.csv" |
| 228 | + "FileName": { |
| 229 | + "value": "@{item().TABLE_CATALOG}.@{item().TABLE_SCHEMA}.@{item().TABLE_NAME}.csv", |
| 230 | + "type": "Expression" |
| 231 | + } |
226 | 232 | } |
227 | 233 | } |
228 | 234 | ] |
|
301 | 307 | "value": "@concat(pipeline().parameters.FileShareRootFolder,'/Target')", |
302 | 308 | "type": "Expression" |
303 | 309 | }, |
304 | | - "FileName": "@{item().TABLE_SCHEMA}.@{item().TABLE_NAME}.csv" |
| 310 | + "FileName": { |
| 311 | + "value": "@{item().TABLE_CATALOG}.@{item().TABLE_SCHEMA}.@{item().TABLE_NAME}.csv", |
| 312 | + "type": "Expression" |
| 313 | + } |
305 | 314 | } |
306 | 315 | } |
307 | 316 | ], |
|
314 | 323 | "value": "@concat(pipeline().parameters.FileShareRootFolder,'/Source')", |
315 | 324 | "type": "Expression" |
316 | 325 | }, |
317 | | - "FileName": "@{item().TABLE_SCHEMA}.@{item().TABLE_NAME}.csv" |
| 326 | + "FileName": { |
| 327 | + "value": "@{item().TABLE_CATALOG}.@{item().TABLE_SCHEMA}.@{item().TABLE_NAME}.csv", |
| 328 | + "type": "Expression" |
| 329 | + } |
| 330 | + } |
| 331 | + } |
| 332 | + ] |
| 333 | + }, |
| 334 | + { |
| 335 | + "name": "Copy Schema to BackupDir", |
| 336 | + "type": "Copy", |
| 337 | + "dependsOn": [ |
| 338 | + { |
| 339 | + "activity": "Copy Table schema", |
| 340 | + "dependencyConditions": [ |
| 341 | + "Succeeded" |
| 342 | + ] |
| 343 | + } |
| 344 | + ], |
| 345 | + "policy": { |
| 346 | + "timeout": "0.12:00:00", |
| 347 | + "retry": 0, |
| 348 | + "retryIntervalInSeconds": 30, |
| 349 | + "secureOutput": false, |
| 350 | + "secureInput": false |
| 351 | + }, |
| 352 | + "userProperties": [], |
| 353 | + "typeProperties": { |
| 354 | + "source": { |
| 355 | + "type": "DelimitedTextSource", |
| 356 | + "storeSettings": { |
| 357 | + "type": "AzureBlobStorageReadSettings", |
| 358 | + "recursive": true, |
| 359 | + "enablePartitionDiscovery": false |
| 360 | + }, |
| 361 | + "formatSettings": { |
| 362 | + "type": "DelimitedTextReadSettings" |
| 363 | + } |
| 364 | + }, |
| 365 | + "sink": { |
| 366 | + "type": "DelimitedTextSink", |
| 367 | + "storeSettings": { |
| 368 | + "type": "AzureBlobStorageWriteSettings" |
| 369 | + }, |
| 370 | + "formatSettings": { |
| 371 | + "type": "DelimitedTextWriteSettings", |
| 372 | + "quoteAllText": true, |
| 373 | + "fileExtension": ".txt" |
| 374 | + } |
| 375 | + }, |
| 376 | + "enableStaging": false, |
| 377 | + "translator": { |
| 378 | + "type": "TabularTranslator", |
| 379 | + "typeConversion": true, |
| 380 | + "typeConversionSettings": { |
| 381 | + "allowDataTruncation": true, |
| 382 | + "treatBooleanAsNumber": false |
| 383 | + } |
| 384 | + } |
| 385 | + }, |
| 386 | + "inputs": [ |
| 387 | + { |
| 388 | + "referenceName": "rootDataSet", |
| 389 | + "type": "DatasetReference", |
| 390 | + "parameters": { |
| 391 | + "containerName": { |
| 392 | + "value": "@pipeline().parameters.ContainerRootFolder", |
| 393 | + "type": "Expression" |
| 394 | + }, |
| 395 | + "directoryName": "current-fileformat/schemafile", |
| 396 | + "fileName": { |
| 397 | + "value": "@{item().TABLE_CATALOG}.@{item().TABLE_SCHEMA}.@{item().TABLE_NAME}.csv", |
| 398 | + "type": "Expression" |
| 399 | + } |
| 400 | + } |
| 401 | + } |
| 402 | + ], |
| 403 | + "outputs": [ |
| 404 | + { |
| 405 | + "referenceName": "rootDataSet", |
| 406 | + "type": "DatasetReference", |
| 407 | + "parameters": { |
| 408 | + "containerName": { |
| 409 | + "value": "@pipeline().parameters.ContainerRootFolder", |
| 410 | + "type": "Expression" |
| 411 | + }, |
| 412 | + "directoryName": "current-fileformat/BkpSchemafile", |
| 413 | + "fileName": { |
| 414 | + "value": "@{item().TABLE_CATALOG}.@{item().TABLE_SCHEMA}.@{item().TABLE_NAME}.csv", |
| 415 | + "type": "Expression" |
| 416 | + } |
318 | 417 | } |
319 | 418 | } |
320 | 419 | ] |
|
945 | 1044 | "typeProperties": { |
946 | 1045 | "variableName": "currentSchema", |
947 | 1046 | "value": { |
948 | | - "value": "@split(item().name,'.')[0]", |
| 1047 | + "value": "@split(item().name,'.')[1]", |
949 | 1048 | "type": "Expression" |
950 | 1049 | } |
951 | 1050 | } |
|
0 commit comments