Skip to content

Commit

Permalink
Pass missing schema to read_parquet_file_to_pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
camposandro committed Jul 30, 2024
1 parent aac8b9b commit 1809c88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hipscat_import/soap/map_reduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ def count_joins(soap_args: SoapArguments, source_pixel: HealpixPixel, object_pix
else:
read_columns = [soap_args.source_object_id_column]
source_data = file_io.read_parquet_file_to_pandas(
source_path, columns=read_columns, storage_options=soap_args.source_storage_options
source_path,
columns=read_columns,
schema=soap_args.source_catalog.schema,
storage_options=soap_args.source_storage_options,
).set_index(soap_args.source_object_id_column)

remaining_sources = len(source_data)
Expand Down

0 comments on commit 1809c88

Please sign in to comment.