Move 17 library crates into crates/, CLI binary into bin/fxt, consolidate 10 test crates into testing/, split config crate from deployment config files. Root directory reduced from 38+ to ~17 directories. All Cargo.toml paths and build.rs proto refs updated. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
677 B
Rust
18 lines
677 B
Rust
use parquet::file::reader::{FileReader, SerializedFileReader};
|
|
use parquet::arrow::ParquetFileArrowReader;
|
|
use parquet::arrow::arrow_reader::ParquetRecordBatchReaderBuilder;
|
|
use std::fs::File;
|
|
|
|
fn main() {
|
|
let file_path = "/home/jgrusewski/Work/foxhunt/test_data/real/parquet/BTC-USD_30day_2024-09.parquet";
|
|
let file = File::open(file_path).expect("Failed to open file");
|
|
|
|
let builder = ParquetRecordBatchReaderBuilder::try_new(file).expect("Failed to create builder");
|
|
let arrow_schema = builder.schema();
|
|
|
|
println!("Arrow Schema:");
|
|
for field in arrow_schema.fields() {
|
|
println!(" {}: {:?}", field.name(), field.data_type());
|
|
}
|
|
}
|