-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add PartitionedFileLoader #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 23 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
a07091b
Add PartitionedFileLoader
tyclintw 67a358c
Roll back to the original DataType.
tyclintw 0bc8a2b
Address comments.
tyclintw ce3edce
Add exception handling for failed loader.
tyclintw eebf207
Merge branch 'master' into tyclintw/partitionedloader
tyclintw bcd4aad
Fix Generator issues. This is change is a hack and will be addressed …
tyclintw 748ffe7
Address comments.
tyclintw 4549388
Remove unused namespaces.
tyclintw 781a45e
Move subLoader to a byteArray so we aren't recreating with args.
tyclintw e54698a
Save and load ISchema directly instead of the Column [].
tyclintw 885ff30
Update help text for clarity.
tyclintw bbf8de8
Fix linux test failures.
tyclintw 9a2d641
Merge branch 'master' into tyclintw/partitionedloader
tyclintw 225b7ee
Force path output to be unix formatted for consistency between OS tests.
tyclintw 4497c35
Fix ZBaselines release folder name.
tyclintw 1e01903
Sort file listings to guarantee "Expand" ordering across operating sy…
tyclintw 10f47b4
Whitespace.
tyclintw 90bedc4
Move test files from Samples to test/data
tyclintw c0467e6
Address comments.
tyclintw 674b5cb
Modify exception handling to use Contracts instead.
tyclintw 5265c90
Add UnescapeDataString to realtive path method.
tyclintw a040b51
Rename PathUtils to prevent name conflicts.
tyclintw fe6ca03
Address comments.
tyclintw 097086f
Fix ExceptParam call.
tyclintw fe3229f
Merge branch 'master' into tyclintw/partitionedloader
tyclintw d3997cb
Merge branch 'master' into tyclintw/partitionedloader
tyclintw 3c5d6d8
Merge branch 'tyclintw/partitionedloader' of https://github.com/tycli…
tyclintw 5edd446
Merge branch 'master' into tyclintw/partitionedloader
tyclintw c1a5897
Move ZBaselines to new test\BaselineOutput location.
tyclintw 7d09e32
Merge branch 'tyclintw/partitionedloader' of https://github.com/tycli…
tyclintw d9905bb
address comments
tyclintw ec92ecd
Modify all Exceptions to use Contracts.Exception.
tyclintw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
14 changes: 14 additions & 0 deletions
14
ZBaselines/SingleDebug/SavePipe/PartitionedNamedDirectories-Data.txt
This file contains hidden or 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,14 @@ | ||
#@ TextLoader{ | ||
#@ header+ | ||
#@ sep=tab | ||
#@ col=L0:TX:0 | ||
#@ col=Year:TX:1 | ||
#@ col=Month:TX:2 | ||
#@ } | ||
L0 Year Month | ||
0 2017 01 | ||
4 2017 01 | ||
6 2017 01 | ||
21 2017 02 | ||
23 2017 02 | ||
25 2017 02 |
5 changes: 5 additions & 0 deletions
5
ZBaselines/SingleDebug/SavePipe/PartitionedNamedDirectories-Schema.txt
This file contains hidden or 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,5 @@ | ||
---- PartitionedFileLoader ---- | ||
3 columns: | ||
L0: Text | ||
Year: Text | ||
Month: Text |
16 changes: 16 additions & 0 deletions
16
ZBaselines/SingleDebug/SavePipe/PartitionedUnnamedDirectories-Data.txt
This file contains hidden or 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,16 @@ | ||
#@ TextLoader{ | ||
#@ header+ | ||
#@ sep=tab | ||
#@ col=L0:I4:0 | ||
#@ col=Month:I4:1 | ||
#@ col=Path:TX:2 | ||
#@ } | ||
L0 Month Path | ||
1 1 2017/01/data1.csv | ||
5 1 2017/01/data2.csv | ||
7 1 2017/01/data2.csv | ||
0 1 2017/01/dataBadSchema.csv | ||
0 1 2017/01/dataBadSchema.csv | ||
22 2 2017/02/data1.csv | ||
24 2 2017/02/data1.csv | ||
26 2 2017/02/data1.csv |
5 changes: 5 additions & 0 deletions
5
ZBaselines/SingleDebug/SavePipe/PartitionedUnnamedDirectories-Schema.txt
This file contains hidden or 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,5 @@ | ||
---- PartitionedFileLoader ---- | ||
3 columns: | ||
L0: I4 | ||
Month: I4 | ||
Path: Text |
14 changes: 14 additions & 0 deletions
14
ZBaselines/SingleRelease/SavePipe/PartitionedNamedDirectories-Data.txt
This file contains hidden or 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,14 @@ | ||
#@ TextLoader{ | ||
#@ header+ | ||
#@ sep=tab | ||
#@ col=L0:TX:0 | ||
#@ col=Year:TX:1 | ||
#@ col=Month:TX:2 | ||
#@ } | ||
L0 Year Month | ||
0 2017 01 | ||
4 2017 01 | ||
6 2017 01 | ||
21 2017 02 | ||
23 2017 02 | ||
25 2017 02 |
5 changes: 5 additions & 0 deletions
5
ZBaselines/SingleRelease/SavePipe/PartitionedNamedDirectories-Schema.txt
This file contains hidden or 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,5 @@ | ||
---- PartitionedFileLoader ---- | ||
3 columns: | ||
L0: Text | ||
Year: Text | ||
Month: Text |
16 changes: 16 additions & 0 deletions
16
ZBaselines/SingleRelease/SavePipe/PartitionedUnnamedDirectories-Data.txt
This file contains hidden or 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,16 @@ | ||
#@ TextLoader{ | ||
#@ header+ | ||
#@ sep=tab | ||
#@ col=L0:I4:0 | ||
#@ col=Month:I4:1 | ||
#@ col=Path:TX:2 | ||
#@ } | ||
L0 Month Path | ||
1 1 2017/01/data1.csv | ||
5 1 2017/01/data2.csv | ||
7 1 2017/01/data2.csv | ||
0 1 2017/01/dataBadSchema.csv | ||
0 1 2017/01/dataBadSchema.csv | ||
22 2 2017/02/data1.csv | ||
24 2 2017/02/data1.csv | ||
26 2 2017/02/data1.csv |
5 changes: 5 additions & 0 deletions
5
ZBaselines/SingleRelease/SavePipe/PartitionedUnnamedDirectories-Schema.txt
This file contains hidden or 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,5 @@ | ||
---- PartitionedFileLoader ---- | ||
3 columns: | ||
L0: I4 | ||
Month: I4 | ||
Path: Text |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm. I know you didn't write this code, but since the if condition is on multiple lines it really ought to be bracketed... if you have time could you fix it? The below if condition has the same problem I'm afraid. #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries. I'm always happy to clean up stuff.