Commit d00ecdc
authored
feat: Add CLI tools for ORC file inspection and manipulation (#73)
* feat: Add CLI tools for ORC file inspection and manipulation
* refactor: Consolidate ORC CLI commands into a unified tool
This commit merges multiple ORC CLI commands into a single command structure, enhancing usability and maintainability. The previous commands for metadata inspection, data export, and statistics have been integrated into a cohesive CLI tool with subcommands for various functionalities, including `info`, `export`, `stats`, `layout`, and `index`. Additionally, the `orc` binary has been streamlined to facilitate easier command execution.
* Enhance CLI testing framework for ORC binary
This commit expands the testing suite for the unified `orc` CLI binary, adding comprehensive tests for various subcommands including `info`, `export`, `stats`, `layout`, and `index`. It introduces helper functions for managing test data paths and expected output comparisons, ensuring that actual command outputs are validated against predefined expected results. Additionally, new expected output files have been created to support these tests, improving the robustness of the CLI tool's testing framework.
* docs: Add README for ORC CLI Tool with usage instructions and command details
* feat: Add bloom filter inspection command to ORC CLI
* feat: Add test for bloom filter's might_contain functionality and expected output
* refactor: Remove obsolete help output tests for ORC CLI commands
* fix fmt
* fix test_bloom_might_contain_true
* fix: omit to export all
* feat: fix bug and add CSV export test for specific columns
* feat: add validation for unknown columns in export1 parent 46de7f0 commit d00ecdc
28 files changed
Lines changed: 2694 additions & 256 deletions
File tree
- src
- bin
- orc
- tests/bin
- expected
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
78 | | - | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 100 | + | |
| 101 | + | |
108 | 102 | | |
This file was deleted.
This file was deleted.
0 commit comments