|
26 | 26 | from pyspark.sql.types import LongType, StructField, StructType |
27 | 27 | from typing_extensions import Annotated, Protocol, TypedDict, get_args, get_origin, get_type_hints |
28 | 28 |
|
29 | | -from dve.core_engine.backends.base.utilities import _get_non_heterogenous_type |
30 | 29 | from dve.common.error_utils import get_feedback_errors_uri |
| 30 | +from dve.core_engine.backends.base.utilities import _get_non_heterogenous_type |
31 | 31 | from dve.core_engine.constants import RECORD_INDEX_COLUMN_NAME |
32 | 32 | from dve.core_engine.type_hints import URI, EntityName |
33 | 33 |
|
@@ -380,12 +380,14 @@ def _spark_filter_contract_errors( |
380 | 380 | relevant_record_rejections_codes_df = ( |
381 | 381 | self.spark_session.read.json( |
382 | 382 | path=contract_error_location, |
383 | | - schema=st.StructType([ |
384 | | - st.StructField("RecordIndex", st.IntegerType()), |
385 | | - st.StructField("FailureType", st.StringType()), |
386 | | - st.StructField("Status", st.StringType()), |
387 | | - st.StructField("Entity", st.StringType()), |
388 | | - ]), |
| 383 | + schema=st.StructType( |
| 384 | + [ |
| 385 | + st.StructField("RecordIndex", st.IntegerType()), |
| 386 | + st.StructField("FailureType", st.StringType()), |
| 387 | + st.StructField("Status", st.StringType()), |
| 388 | + st.StructField("Entity", st.StringType()), |
| 389 | + ] |
| 390 | + ), |
389 | 391 | ) |
390 | 392 | .filter( |
391 | 393 | (sf.col("FailureType") == sf.lit("record")) |
|
0 commit comments