fix parquet switch to avoid mis identifying null columns