-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added chunk partitioning support for non date partitioned sources (#30)
* Added chunk partitioning support for non date partitioned sources
- Loading branch information
1 parent
89b98ae
commit 3114bde
Showing
21 changed files
with
189 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"workflow": [ | ||
{ | ||
"type": "ConfigureSources", | ||
"name": "ConfigureSources", | ||
"configFiles": [ | ||
"config/config2.rel" | ||
], | ||
"defaultContainer": "input", | ||
"sources": [ | ||
{ | ||
"relation": "zip_city_state_master_data", | ||
"relativePath": "master_source/zip_city_state", | ||
"inputFormat": "csv" | ||
}, | ||
{ | ||
"relation": "city_data", | ||
"isChunkPartitioned": true, | ||
"isDatePartitioned": true, | ||
"relativePath": "city", | ||
"inputFormat": "csv", | ||
"loadsNumberOfDays": 60 | ||
}, | ||
{ | ||
"relation": "product_data", | ||
"isChunkPartitioned": true, | ||
"isDatePartitioned": false, | ||
"relativePath": "temp/product", | ||
"inputFormat": "csv" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"workflow": [ | ||
{ | ||
"type": "ConfigureSources", | ||
"name": "ConfigureSources", | ||
"configFiles": [ | ||
"config/config2.rel" | ||
], | ||
"defaultContainer": "input", | ||
"sources": [ | ||
{ | ||
"relation": "zip_city_state_master_data", | ||
"relativePath": "master_source/zip_city_state", | ||
"inputFormat": "csv" | ||
}, | ||
{ | ||
"relation": "product_data", | ||
"isChunkPartitioned": true, | ||
"isDatePartitioned": false, | ||
"relativePath": "temp/product", | ||
"inputFormat": "csv" | ||
} | ||
] | ||
} | ||
] | ||
} |
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
cli-e2e-test/data/product/part-1-3q1ec0b0-ebfd-a773-71d7-f71f42a2f066.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
product | ||
mobile_phone |
3 changes: 3 additions & 0 deletions
3
cli-e2e-test/data/product/part-2-3w1ec0b0-ebfd-a773-71d7-f71f42a2f066.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
product | ||
router | ||
adapter |
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
cli-e2e-test/expected_results/test_scenario1_model/products_csv.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
name | ||
mobile_phone | ||
router | ||
adapter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
def part_resource_date_pattern = "^(.+)/data_dt=(?<date>[0-9]+)/(.+).(csv|json|jsonl)$" | ||
def part_resource_index_pattern = "^(.+)/data_dt=(.+)/part-(?<shard>[0-9])-(.+).(csv|json|jsonl)$" | ||
def part_resource_index_pattern = "^(.+)/part-(?<shard>[0-9])-(.+).(csv|json|jsonl)$" | ||
def part_resource_index_multiplier = 100000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module product_data | ||
def PRODUCT_NAME[idx, row] = source_catalog:product_data[idx, :product, row] | ||
end | ||
|
||
module product_info | ||
def name = product_data:PRODUCT_NAME[_, _] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters