I'd like to be able to check whether a Parquet file is empty. At the moment, the only outcome of running Import-Parquet against an empty Parquet file is that nothing is returned, which isn't ideal as this could also happen if something went wrong with the import (e.g. file has data in but the path was specified incorrectly, or import process bombed out due to lack of memory).
What would be helpful is someway to return row count or column headers or some other metadata that indicated the file could be accessed correctly but didn't have any data to return. I believe this should be possible as if I open an empty Parquet file using ParquetViewer (which uses the same Parquet.NET library as PSParquet) I can open the file and see the column header names and zero rows in the file.
I'd like to be able to check whether a Parquet file is empty. At the moment, the only outcome of running Import-Parquet against an empty Parquet file is that nothing is returned, which isn't ideal as this could also happen if something went wrong with the import (e.g. file has data in but the path was specified incorrectly, or import process bombed out due to lack of memory).
What would be helpful is someway to return row count or column headers or some other metadata that indicated the file could be accessed correctly but didn't have any data to return. I believe this should be possible as if I open an empty Parquet file using ParquetViewer (which uses the same Parquet.NET library as PSParquet) I can open the file and see the column header names and zero rows in the file.