Ayush, we're currently adding the ability to track the schema that a snapshot was current when a snapshot was written. Until then, you'll get the table's current schema instead.
I think there's also a PR that adds some ability to use iceberg-arrow like Iceberg generics. I've not had a chance to review it yet, but that should help you see what you'd need to do. On Sat, May 8, 2021 at 2:38 PM Ayush <ayush97bhard...@gmail.com> wrote: > Hi, > > I was trying to use apache iceberg to evolve my table schema and > correspondingly add the new data to a parquet file. Now when I tried to > revert back to a previous snapshot, I got the old data from the listed > parquet files in that snapshot, but I was not able to retrieve the old > schema. I was able to fetch the schema from the parquet file and convert it > to iceberg schema. Is that the only way to fetch the old schema? > > Also are there any test cases or examples on how to use iceberg-arrow apis > to read data from parquet file to arrow in batches? > > > > Please do let me know regarding these queries. > > > > Thanks, > > Ayush Bhardwaj > > > -- Ryan Blue