2020from dve .core_engine .backends .utilities import get_polars_type_from_annotation
2121from dve .core_engine .message import FeedbackMessage
2222from dve .core_engine .type_hints import URI , EntityName
23- from dve .parser .file_handling import get_content_length , open_stream
23+ from dve .parser .file_handling import get_content_length
2424
2525
2626@duckdb_write_parquet
@@ -38,7 +38,7 @@ def __init__(
3838 connection : Optional [DuckDBPyConnection ] = None ,
3939 field_check : bool = False ,
4040 field_check_error_code : Optional [str ] = "ExpectedVsActualFieldMismatch" ,
41- field_check_error_message : Optional [str ] = "The submitted header does not match what is expected " ,
41+ field_check_error_message : Optional [str ] = "The submitted header is missing fields " ,
4242 ** _ ,
4343 ):
4444 self .header = header
@@ -67,11 +67,11 @@ def perform_field_check(
6767 messages = [
6868 FeedbackMessage (
6969 entity = entity_name ,
70+ record = None ,
7071 failure_type = "submission" ,
7172 error_location = "Whole File" ,
7273 error_code = self .field_check_error_code ,
73- error_message = self .field_check_error_message ,
74- value = f"Missing fields: { missing } " ,
74+ error_message = f"{ self .field_check_error_message } - missing fields: { missing } " ,
7575 )
7676 ],
7777 )
0 commit comments