Repository navigation
Abstract out offset column writing. - #1529
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1529 +/- ##
==========================================
- Coverage 93.77% 93.49% -0.28%
==========================================
Files 27 27
Lines 22681 22832 +151
Branches 1076 1076
==========================================
+ Hits 21268 21346 +78
- Misses 1379 1452 +73
Partials 34 34
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
9990334 to
e23de92
Compare
bb09640 to
c5c620a
Compare
|
This is ready for review now @benjeffery. The idea here is to refactor the table reading/writing code to make it as declarative as possible at the table level. There is some repeated functionality in the three FYI, the changes I have in mind are (a) make all ragged column pairs optional (the semantics are clear); (b) make the offset column either 32 or 64 bit in the file depending on the size of the largest offset value. This should allow us to make the 32 -> 64 bit offset transition pretty seamlessly from a file format perspective. |
c5c620a to
1322d86
Compare
benjeffery
left a comment
There was a problem hiding this comment.
LGTM, good improvement - one tiny typo in a comment.
| tsk_treeseq_t *ts = caterpillar_tree(5, 3, 3); | ||
| /* We exclude "provenances/timestamp_offset" here because there are no | ||
| * non-ragged columns in the provenances table, so this doesn't quite | ||
| * fit into the same patter as the other tables */ |
There was a problem hiding this comment.
| * fit into the same patter as the other tables */ | |
| * fit into the same pattern as the other tables */ |
1322d86 to
f6a83c9
Compare
Some groundwork for making offset columns more flexible in the file format.