vibhatha / pyiceberg_substrait

Apache License 2.0
0 stars 0 forks source link

Extracting RootRel Names #28

Open vibhatha opened 1 year ago

vibhatha commented 1 year ago

Should we extract the RootRel names using the Iceberg table or should we query it from the SQL query received. In theory, we would get a Substrait plan which contains the evolved schema.

The fields in the projection output (if it is the final relation), should show the number of columns that we expect in the final output. That number of columns and the number of columns in the iceberg table must be same as long as we use the selected_fields parameter (populated by fields in the SQL query at the moment) when creating the Iceberg scanner.

table.scan(selected_fields=selected_fields)

We should validate this logic.