improve print debugging.
This commit is contained in:
parent
c6e96c2f54
commit
f4a9491ff2
@ -241,14 +241,14 @@ def merge_parquet_files(original_path, temp_path, merged_path):
|
||||
original_pq = pq.ParquetFile(original_path)
|
||||
except Exception:
|
||||
# Original file is invalid (empty or corrupted)
|
||||
print(f"Note: No data in original file (namespace had no records or file was not properly written)", file=sys.stderr)
|
||||
print(f"Note: No data in original file {original_path} (namespace had no records or file was not properly written)", file=sys.stderr)
|
||||
return None
|
||||
|
||||
try:
|
||||
temp_pq = pq.ParquetFile(temp_path)
|
||||
except Exception:
|
||||
# Temp file is invalid (empty or corrupted) - no new data was written
|
||||
print(f"Note: No new data in temp file (namespace had no records after resume point)", file=sys.stderr)
|
||||
print(f"Note: No new data in temp file {temp_path} (namespace had no records after resume point)", file=sys.stderr)
|
||||
return None
|
||||
|
||||
merged_writer = None
|
||||
|
||||
Loading…
Reference in New Issue
Block a user