Skip to content

Commit cfc7a85

Browse files
devin-ai-integration[bot]bot_apk
andcommitted
fix: clarify CSV row/header column mismatch error messages
Co-Authored-By: bot_apk <apk@cognition.ai>
1 parent fd553bd commit cfc7a85

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

airbyte_cdk/sources/file_based/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class FileBasedSourceError(Enum):
2424
)
2525
ERROR_VALIDATING_RECORD = "One or more records do not pass the schema validation policy. Please modify your input schema, or select a more lenient validation policy."
2626
ERROR_VALIDATION_STREAM_DISCOVERY_OPTIONS = "Only one of options 'Schemaless', 'Input Schema', 'Files To Read For Schema Discover' or 'Use First Found File For Schema Discover' can be provided at the same time."
27-
ERROR_PARSING_RECORD_MISMATCHED_COLUMNS = "A header field has resolved to `None`. This indicates that the CSV has more rows than the number of header fields. If you input your schema or headers, please verify that the number of columns corresponds to the number of columns in your CSV's rows."
28-
ERROR_PARSING_RECORD_MISMATCHED_ROWS = "A row's value has resolved to `None`. This indicates that the CSV has more columns in the header field than the number of columns in the row(s). If you input your schema or headers, please verify that the number of columns corresponds to the number of columns in your CSV's rows."
27+
ERROR_PARSING_RECORD_MISMATCHED_COLUMNS = "CSV row has more columns than the header."
28+
ERROR_PARSING_RECORD_MISMATCHED_ROWS = "CSV row has fewer columns than the header."
2929
STOP_SYNC_PER_SCHEMA_VALIDATION_POLICY = "Stopping sync in accordance with the configured validation policy. Records in file did not conform to the schema."
3030
NULL_VALUE_IN_SCHEMA = "Error during schema inference: no type was detected for key."
3131
UNRECOGNIZED_TYPE = "Error during schema inference: unrecognized type."

0 commit comments

Comments
 (0)