Loading Table data using boundaries
Query to get table boundaries
SELECT /*+ parallel(256) */ '["' ||Max(ID)||'"],'
FROM (SELECT ID, Ntile(5) over( ORDER BY ID) nt FROM HR.DEMO)
GROUP BY nt
ORDER BY nt;
Mapping JSON
{
"rules": [
{
"rule-type": "transformation",
"rule-id": "113859112",
"rule-name": "113859112",
"rule-target": "table",
"object-locator": {
"schema-name": "HR",
"table-name": "DEMO"
},
"rule-action": "convert-uppercase",
"value": null,
"old-value": null
},
{
"rule-type": "selection",
"rule-id": "101",
"rule-name": "101",
"object-locator": {
"schema-name": "HR",
"table-name": "DEMO"
},
"rule-action": "include"
},
{
"rule-type": "table-settings",
"rule-id": "103",
"rule-name": "103",
"object-locator": {
"schema-name": "HR",
"table-name": "DEMO"
},
"parallel-load": {
"type": "ranges",
"columns": [
"ID"
],
"boundaries": [
[
"24016177"
],
[
"41650518"
],
[
"56874846"
],
[
"71834843"
],
[
"86760524"
]
]
},
"rule-action": "include",
"filters": []
}
]
}
No comments:
Post a Comment