Append if schema identical
SchemaMismatchError
Bases: ValueError
raise this when there's a schema mismatch between source & target schema.
Source code in quinn/append_if_schema_identical.py
4 5 |
|
append_if_schema_identical(source_df, target_df)
Compare the schema of source & target dataframe.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
source_df |
DataFrame
|
Input DataFrame |
required |
target_df |
DataFrame
|
Input DataFrame |
required |
Returns:
Type | Description |
---|---|
pyspark.sql.DataFrame
|
dataframe |
Source code in quinn/append_if_schema_identical.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
|