I am a bit out of ideas as after doing this
let mut cursor = Cursor::new(Vec::new());
let parquet_bytes = ParquetWriter::new(cursor)
.with_statistics(true)
.with_compression(ParquetCompression::Snappy)
.finish(df)
.unwrap();
I no longer own cursor to pass to s3 sdk. is there a different way?