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());
    }
}
