We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb8eb2a commit f210704Copy full SHA for f210704
superset/commands/database/uploaders/csv_reader.py
@@ -414,7 +414,16 @@ def _read_csv( # noqa: C901
414
break
415
416
if chunks:
417
- result = pd.concat(chunks, ignore_index=False)
+ try:
418
+ result = pd.concat(chunks, ignore_index=False)
419
+ except Exception as ex:
420
+ logger.warning(
421
+ "Error concatenating CSV chunks: %s. "
422
+ "This may be due to inconsistent date parsing across chunks.",
423
+ str(ex),
424
+ )
425
+ raise
426
+
427
# When using chunking, we need to reset and rebuild the index
428
if kwargs.get("index_col") is not None:
429
# The index was already set by pandas during read_csv
0 commit comments