forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask_list.json
More file actions
768 lines (768 loc) · 25.4 KB
/
Copy pathtask_list.json
File metadata and controls
768 lines (768 loc) · 25.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
[
{
"id": 0,
"phase": "Prerequisites",
"task": "Extend ORC adapter with column statistics APIs",
"description": "CRITICAL PREREQUISITE: The current ORC adapter lacks APIs to access stripe-level column statistics. Must add: (1) ColumnStatistics struct with has_null, num_values, min/max, is_deprecated, (2) GetStripeColumnStatistics(stripe, column) method, (3) Access to ORC type tree for column index mapping. This blocks all predicate pushdown work.",
"files_to_modify": [
"cpp/src/arrow/adapters/orc/adapter.h",
"cpp/src/arrow/adapters/orc/adapter.cc"
],
"parquet_reference": null,
"verification": [
"cmake --build . --target arrow_orc",
"Unit test: GetStripeColumnStatistics returns valid statistics for int32/int64"
],
"status": "complete",
"depends_on": [],
"priority": "P0"
},
{
"id": 1,
"phase": "Core Data Structures",
"task": "Add OrcSchemaManifest and OrcSchemaField structures",
"description": "Create OrcSchemaManifest and OrcSchemaField classes to map Arrow schema fields to ORC physical column indices. Required for nested type support. Mirrors Parquet's SchemaManifest design.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.h",
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "parquet::arrow::SchemaManifest",
"file": "parquet/arrow/schema.h",
"notes": "Idea reuse - create ORC-specific version following same pattern"
},
"verification": [
"cmake --build . --target arrow_dataset",
"Unit test: Manifest construction from ORC metadata"
],
"status": "complete",
"depends_on": [0],
"priority": "P0"
},
{
"id": 2,
"phase": "Core Data Structures",
"task": "Implement BuildOrcSchemaManifest function",
"description": "Create function that builds schema manifest from ORC file metadata. Walk Arrow schema and ORC type tree in parallel, extract column indices. For leaf fields, store column_index for statistics lookup. For containers, mark as non-leaf.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "Schema manifest building",
"notes": "ORC type tree is depth-first pre-order (col 0 = root struct), differs from Parquet"
},
"verification": [
"Unit test: Manifest building for flat schemas",
"Unit test: Manifest building for nested schemas (struct, list, map)"
],
"status": "complete",
"depends_on": [1],
"priority": "P0"
},
{
"id": 3,
"phase": "Core Data Structures",
"task": "Implement GetOrcColumnIndex function",
"description": "Create function that resolves FieldRef to ORC column index using manifest. Handle top-level fields directly and nested fields by traversing manifest tree. Return null if not found or not a leaf.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "Column index resolution via manifest",
"notes": "Similar to Parquet but ORC indices start at 1 for user columns"
},
"verification": [
"Unit test: Column index resolution for top-level fields",
"Unit test: Column index resolution for nested fields"
],
"status": "complete",
"depends_on": [2],
"priority": "P0"
},
{
"id": 4,
"phase": "Core Data Structures",
"task": "Create OrcFileFragment class",
"description": "Extend FileFragment with ORC-specific predicate pushdown capabilities. Add fields: stripes (optional list of selected indices), metadata (OrcFileMetadata), manifest (OrcSchemaManifest), statistics_cache (StripeStatisticsCache), cache_status enum.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.h",
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "ParquetFileFragment",
"file": "cpp/src/arrow/dataset/file_parquet.h",
"lines": "158-235",
"notes": "Mirror structure: row_groups_ -> stripes_, statistics_expressions_ -> stripe_guarantees_, etc."
},
"verification": [
"cmake --build . --target arrow_dataset",
"Unit test: OrcFileFragment construction"
],
"status": "complete",
"depends_on": [1],
"priority": "P0"
},
{
"id": 5,
"phase": "Core Data Structures",
"task": "Implement StripeStatisticsCache structure",
"description": "Create cache class with: stripe_guarantees (list of Expression per stripe), fields_processed (set tracking processed fields), statistics_complete (list of bool per column). Protected by mutex for thread safety.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "statistics_expressions_ and statistics_expressions_complete_",
"file": "cpp/src/arrow/dataset/file_parquet.h",
"lines": "224-227",
"notes": "Same caching pattern, different naming"
},
"verification": [
"Unit test: Cache initialization",
"Unit test: Thread-safe access"
],
"status": "complete",
"depends_on": [4],
"priority": "P0",
"notes": "Implemented as part of Task #4 - StripeStatisticsCache struct created with all required fields. Thread safety provided by physical_schema_mutex_ from Fragment base class."
},
{
"id": 6,
"phase": "Metadata Loading",
"task": "Implement EnsureFileMetadataCached function",
"description": "Load ORC file metadata if not cached. Read footer containing stripe info, schema, writer version. Set physical_schema from metadata. Thread-safe with mutex.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "EnsureCompleteMetadata",
"file": "cpp/src/arrow/dataset/file_parquet.cc",
"lines": "802-870",
"notes": "Same lazy loading pattern with mutex protection"
},
"verification": [
"Unit test: Metadata loading",
"Unit test: Caching (second call doesn't reload)"
],
"status": "complete",
"depends_on": [4],
"priority": "P0"
},
{
"id": 7,
"phase": "Metadata Loading",
"task": "Implement EnsureManifestCached function",
"description": "Build and cache schema manifest if not done. Requires metadata first. Call BuildOrcSchemaManifest. Thread-safe.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "Manifest caching in SetMetadata",
"file": "cpp/src/arrow/dataset/file_parquet.cc",
"notes": "Part of EnsureCompleteMetadata flow"
},
"verification": [
"Unit test: Manifest caching",
"Unit test: Immutability once set"
],
"status": "complete",
"depends_on": [2, 6],
"priority": "P0",
"notes": "Implemented as part of Task #6 - EnsureCompleteMetadata() builds manifest using OrcSchemaManifest::Make() and stores in manifest_."
},
{
"id": 8,
"phase": "Metadata Loading",
"task": "Implement EnsureStatisticsCached function",
"description": "Initialize statistics cache if not done. Create stripe_guarantees with literal(true) per stripe, empty fields_processed, statistics_complete all false. Idempotent.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "Statistics expressions initialization",
"notes": "Implicit in Parquet's SetMetadata, make explicit for ORC"
},
"verification": [
"Unit test: Cache initialization",
"Unit test: Idempotency"
],
"status": "complete",
"depends_on": [5],
"priority": "P0",
"notes": "Implemented as part of Task #6 - EnsureCompleteMetadata() initializes statistics_cache_ with stripe_guarantees (literal(true) per stripe) and statistics_complete (all false). Idempotent via cache_status_ check."
},
{
"id": 9,
"phase": "Predicate Evaluation",
"task": "Implement ResolvePredicateFields function",
"description": "Resolve field references in predicate to PredicateField entities using manifest. Return list with: field_ref, arrow_field_index, orc_column_index, data_type, supports_statistics. Skip non-leaf or unsupported types.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "Field resolution in TestRowGroups",
"file": "cpp/src/arrow/dataset/file_parquet.cc",
"notes": "Similar pattern but uses ORC manifest"
},
"verification": [
"Unit test: Resolution for supported types (int32, int64)",
"Unit test: Skipping unsupported types",
"Unit test: Nested field resolution"
],
"status": "complete",
"depends_on": [3, 7],
"priority": "P0"
},
{
"id": 10,
"phase": "Predicate Evaluation",
"task": "Implement DeriveFieldGuarantee function",
"description": "Derive guarantee expression from stripe column statistics. Handle: all-null (num_values=0), min/max available, incomplete stats. Validate not deprecated/corrupted. Core of predicate pushdown.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "EvaluateStatisticsAsExpression",
"file": "cpp/src/arrow/dataset/file_parquet.h",
"lines": "184-189",
"notes": "Same logic, different statistics API"
},
"verification": [
"Unit test: All-null case",
"Unit test: Min/max range case",
"Unit test: Single value (min=max)",
"Unit test: Deprecated stats ignored",
"Unit test: Corrupted stats (min>max) returns null"
],
"status": "pending",
"depends_on": [9],
"priority": "P0"
},
{
"id": 11,
"phase": "Predicate Evaluation",
"task": "Use SimplifyWithGuarantee from Arrow compute",
"description": "Use compute::SimplifyWithGuarantee for expression simplification. This is shared infrastructure. Create FoldingAnd helper for combining guarantees.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "SimplifyWithGuarantee usage",
"file": "cpp/src/arrow/dataset/file_parquet.cc",
"lines": "939, 980",
"notes": "INFRA REUSE - this is format-agnostic shared code"
},
"verification": [
"Unit test: x > 10 with guarantee x >= 15 -> true",
"Unit test: x < 5 with guarantee x >= 15 -> false"
],
"status": "pending",
"depends_on": [10],
"priority": "P0"
},
{
"id": 12,
"phase": "Predicate Evaluation",
"task": "Implement TestStripes function",
"description": "Core statistics evaluation. Lock mutex, simplify with partition expr, resolve fields, load uncached statistics into cache, return per-stripe simplified expressions. Mirrors TestRowGroups.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "TestRowGroups",
"file": "cpp/src/arrow/dataset/file_parquet.cc",
"lines": "933-983",
"notes": "IDEA REUSE - follow same structure, adapt for stripes"
},
"verification": [
"Unit test: Batch stripe evaluation",
"Unit test: Incremental cache population",
"Unit test: Partition-level filtering"
],
"status": "pending",
"depends_on": [8, 9, 11],
"priority": "P0"
},
{
"id": 13,
"phase": "Predicate Evaluation",
"task": "Implement FilterStripes function",
"description": "Main entry point. Ensure metadata/manifest/cache loaded. Call TestStripes. Return StripeFilterResult with selected_indices and skipped_count. Skip empty stripes.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "FilterRowGroups",
"file": "cpp/src/arrow/dataset/file_parquet.cc",
"lines": "918-931",
"notes": "Simple wrapper around TestStripes"
},
"verification": [
"Unit test: Basic stripe filtering",
"Unit test: No stripes selected",
"Unit test: All stripes selected"
],
"status": "pending",
"depends_on": [6, 7, 12],
"priority": "P0"
},
{
"id": 14,
"phase": "Scan Integration",
"task": "Update ScanBatchesAsync to use FilterStripes",
"description": "Integrate FilterStripes into scan path. Add pre-filtering if metadata cached. Early exit for empty result. Pass selected stripes to reader. Add SlicingGenerator.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "ScanBatchesAsync with FilterRowGroups",
"file": "cpp/src/arrow/dataset/file_parquet.cc",
"lines": "619-636",
"notes": "Same integration pattern"
},
"verification": [
"Integration test: Scan with filter skips stripes",
"Integration test: Pre-filtering optimization",
"Integration test: Empty result handling"
],
"status": "pending",
"depends_on": [13],
"priority": "P0"
},
{
"id": 15,
"phase": "Count Optimization",
"task": "Implement OrcTryCountRows function",
"description": "Count rows from metadata when possible. Fast path for no field refs. Use TestStripes, sum rows for literal(true), return null if any not literal.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "TryCountRows",
"file": "cpp/src/arrow/dataset/file_parquet.cc",
"lines": "986-1010",
"notes": "Same optimization pattern"
},
"verification": [
"Unit test: Count with no field refs",
"Unit test: All stripes matched",
"Unit test: All stripes excluded",
"Unit test: Partial matches returns null"
],
"status": "pending",
"depends_on": [12],
"priority": "P1"
},
{
"id": 16,
"phase": "Count Optimization",
"task": "Integrate OrcTryCountRows into CountRows",
"description": "Modify CountRows to use TryCountRows optimization. If returns value, use directly. Otherwise fall back to full scan.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "CountRows with TryCountRows",
"file": "cpp/src/arrow/dataset/file_parquet.cc",
"notes": "Same pattern"
},
"verification": [
"Unit test: Fast count with simple filter",
"Unit test: Fallback to full scan"
],
"status": "pending",
"depends_on": [14, 15],
"priority": "P1"
},
{
"id": 17,
"phase": "Fragment Operations",
"task": "Implement OrcFileFragment::Subset",
"description": "Create new fragment with filtered stripes. Share immutable metadata/manifest, fresh statistics_cache.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "Subset",
"file": "cpp/src/arrow/dataset/file_parquet.cc",
"lines": "893-897",
"notes": "Same pattern"
},
"verification": [
"Unit test: Subset creation",
"Unit test: Metadata/manifest sharing",
"Unit test: Fresh cache"
],
"status": "pending",
"depends_on": [13],
"priority": "P1"
},
{
"id": 18,
"phase": "Fragment Operations",
"task": "Implement OrcFileFragment::SplitByStripe",
"description": "Split fragment into one per stripe. Useful for parallel processing.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "SplitByRowGroup",
"file": "cpp/src/arrow/dataset/file_parquet.cc",
"lines": "873-889",
"notes": "Same pattern"
},
"verification": [
"Unit test: Split into per-stripe fragments",
"Unit test: Metadata sharing"
],
"status": "pending",
"depends_on": [13],
"priority": "P1"
},
{
"id": 19,
"phase": "Thread Safety",
"task": "Add mutex protection for all cache operations",
"description": "Add physical_schema_mutex_ to OrcFileFragment. Protect all cache reads/writes. Match Parquet's thread safety model.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.h",
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "physical_schema_mutex_ usage",
"file": "cpp/src/arrow/dataset/file_parquet.cc",
"lines": "798, 803, 923, 935",
"notes": "Same locking pattern"
},
"verification": [
"Unit test: Concurrent scans on same fragment",
"Unit test: No data corruption"
],
"status": "pending",
"depends_on": [13],
"priority": "P0"
},
{
"id": 20,
"phase": "Testing",
"task": "Add basic predicate pushdown tests",
"description": "Add tests for basic predicates: =, !=, <, <=, >, >=. Test int32/int64. Verify stripe filtering.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc_test.cc"
],
"parquet_reference": {
"concept": "PredicatePushdown test",
"file": "cpp/src/arrow/dataset/file_parquet_test.cc",
"lines": "639-693",
"notes": "INFRA REUSE - same test structure, ORC-specific data"
},
"verification": [
"All new tests pass"
],
"status": "pending",
"depends_on": [14],
"priority": "P1"
},
{
"id": 21,
"phase": "Testing",
"task": "Add CountRowsPredicatePushdown test",
"description": "Test count optimization with predicates.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc_test.cc"
],
"parquet_reference": {
"concept": "CountRowsPredicatePushdown",
"file": "cpp/src/arrow/dataset/file_parquet_test.cc",
"lines": "307-376",
"notes": "INFRA REUSE - same test pattern"
},
"verification": [
"All new tests pass"
],
"status": "pending",
"depends_on": [16],
"priority": "P1"
},
{
"id": 22,
"phase": "Testing",
"task": "Add PredicatePushdownStripeFragments test",
"description": "Test predicate pushdown with stripe-level fragments.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc_test.cc"
],
"parquet_reference": {
"concept": "PredicatePushdownRowGroupFragments",
"file": "cpp/src/arrow/dataset/file_parquet_test.cc",
"lines": "694-749",
"notes": "Same pattern, stripes instead of row groups"
},
"verification": [
"All new tests pass"
],
"status": "pending",
"depends_on": [18],
"priority": "P1"
},
{
"id": 23,
"phase": "Testing",
"task": "Add CachedMetadata test",
"description": "Test metadata caching behavior.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc_test.cc"
],
"parquet_reference": {
"concept": "CachedMetadata",
"file": "cpp/src/arrow/dataset/file_parquet_test.cc",
"lines": "378-435",
"notes": "Same caching test pattern"
},
"verification": [
"All new tests pass"
],
"status": "pending",
"depends_on": [6],
"priority": "P1"
},
{
"id": 24,
"phase": "Testing",
"task": "Add MultithreadedScan test",
"description": "Test concurrent scans on same fragment.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc_test.cc"
],
"parquet_reference": {
"concept": "MultithreadedScan",
"file": "cpp/src/arrow/dataset/file_parquet_test.cc",
"lines": "436-460",
"notes": "Critical for thread safety validation"
},
"verification": [
"All new tests pass"
],
"status": "pending",
"depends_on": [19],
"priority": "P1"
},
{
"id": 25,
"phase": "Testing",
"task": "Add statistics edge case tests",
"description": "Test: all-null stripes, single-value stripes, missing statistics, deprecated statistics, corrupted statistics (min>max).",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc_test.cc"
],
"parquet_reference": {
"notes": "ORC-specific edge cases based on allium spec"
},
"verification": [
"All edge cases handled correctly",
"Conservative behavior verified"
],
"status": "pending",
"depends_on": [14],
"priority": "P1"
},
{
"id": 26,
"phase": "Testing",
"task": "Add compound predicate tests (AND, OR, NOT)",
"description": "Test logical operators with statistics.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc_test.cc"
],
"parquet_reference": {
"notes": "Verify three-valued logic behavior"
},
"verification": [
"All compound predicate combinations work"
],
"status": "pending",
"depends_on": [14],
"priority": "P1"
},
{
"id": 27,
"phase": "Testing",
"task": "Add IN predicate test",
"description": "Test IN predicate with range intersection.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc_test.cc"
],
"parquet_reference": {
"notes": "Test value set intersection with min/max"
},
"verification": [
"IN predicate optimized correctly"
],
"status": "pending",
"depends_on": [14],
"priority": "P1"
},
{
"id": 28,
"phase": "Testing",
"task": "Add NULL handling tests",
"description": "Test IS NULL, IS VALID predicates. Verify three-valued logic.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc_test.cc"
],
"parquet_reference": {
"concept": "ScanWithPushdownNulls",
"notes": "Already exists but verify with statistics"
},
"verification": [
"NULL predicates work correctly"
],
"status": "pending",
"depends_on": [14],
"priority": "P1"
},
{
"id": 29,
"phase": "Cache Management",
"task": "Implement ClearCachedMetadata",
"description": "Invalidate all cached data. Set cache_status to uncached. Useful for testing and error recovery.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "ClearCachedMetadata",
"file": "cpp/src/arrow/dataset/file_parquet.h",
"lines": "178",
"notes": "Same pattern"
},
"verification": [
"Unit test: Cache clearing",
"Unit test: Rebuild after clear"
],
"status": "pending",
"depends_on": [13],
"priority": "P2"
},
{
"id": 30,
"phase": "Documentation",
"task": "Add inline documentation with spec references",
"description": "Document all new functions with references to allium spec sections. Explain design decisions.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.h",
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"notes": "Follow Parquet's documentation style"
},
"verification": [
"All public APIs documented",
"Spec references included"
],
"status": "pending",
"depends_on": [14],
"priority": "P3"
},
{
"id": 31,
"phase": "Performance",
"task": "Add performance benchmarks",
"description": "Benchmark I/O reduction with selective filters. Measure cache benefit. Compare to baseline.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc_benchmark.cc"
],
"files_to_create": [
"cpp/src/arrow/dataset/file_orc_benchmark.cc"
],
"parquet_reference": {
"notes": "Create ORC-specific benchmarks"
},
"verification": [
"Benchmarks run successfully",
"Performance improvement documented"
],
"status": "pending",
"depends_on": [14],
"priority": "P2"
},
{
"id": 32,
"phase": "Future - Float Support",
"task": "Add float32/float64 type support",
"description": "Extend statistics support to floating-point types. Handle NaN, infinity, signed zero edge cases.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"notes": "See allium spec FLOATING-POINT EDGE CASES section"
},
"verification": [
"Float predicates work correctly",
"NaN handling verified"
],
"status": "pending",
"depends_on": [14],
"priority": "P2"
},
{
"id": 33,
"phase": "Future - String Support",
"task": "Add string/binary type support",
"description": "Extend to string/binary types. Handle truncation in statistics.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "String column pushdown test",
"file": "cpp/src/arrow/dataset/file_parquet_test.cc",
"lines": "810",
"notes": "See allium spec TRUNCATION HANDLING section"
},
"verification": [
"String predicates work correctly",
"Truncation handled conservatively"
],
"status": "pending",
"depends_on": [14],
"priority": "P2"
},
{
"id": 34,
"phase": "Future - Temporal Support",
"task": "Add timestamp/date type support",
"description": "Extend to temporal types. Handle unit conversion and timezone issues.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc.cc"
],
"parquet_reference": {
"concept": "Duration column pushdown test",
"file": "cpp/src/arrow/dataset/file_parquet_test.cc",
"lines": "827",
"notes": "Handle temporal type complexity"
},
"verification": [
"Temporal predicates work correctly",
"Unit conversion correct"
],
"status": "pending",
"depends_on": [14],
"priority": "P2"
},
{
"id": 35,
"phase": "Future - Nested Types",
"task": "Add nested type tests",
"description": "Test predicate pushdown for struct/list/map columns via manifest.",
"files_to_modify": [
"cpp/src/arrow/dataset/file_orc_test.cc"
],
"parquet_reference": {
"notes": "Verify manifest correctly maps nested fields to leaf columns"
},
"verification": [
"Nested field predicates work"
],
"status": "pending",
"depends_on": [14],
"priority": "P2"
}
]