-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spark-bigquery: fix a few of the common errors (#1377)
* spark-bigquery: do not create relation on output dataset Signed-off-by: Maciej Obuchowski <obuchowski.maciej@gmail.com> * spark: do not collect metrics on spark 2 Signed-off-by: Maciej Obuchowski <obuchowski.maciej@gmail.com> Signed-off-by: Maciej Obuchowski <obuchowski.maciej@gmail.com>
- Loading branch information
1 parent
8d09259
commit f69c240
Showing
34 changed files
with
636 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
integration/spark/app/integrations/container/pysparkBigqueryInsertEnd.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"eventType": "COMPLETE", | ||
"job": { | ||
"namespace": "testReadAndWriteFromBigquery", | ||
"name": "open_lineage_spark_bigquery.execute_insert_into_hadoop_fs_relation_command" | ||
}, | ||
"inputs": [{ | ||
"namespace": "bigquery", | ||
"name": "openlineage-ci.airflow_integration.3_3_1_source", | ||
"facets": { | ||
"dataSource": { | ||
"name": "bigquery", | ||
"uri": "bigquery" | ||
}, | ||
"schema": { | ||
"fields": [{ | ||
"name": "a", | ||
"type": "long" | ||
}, { | ||
"name": "b", | ||
"type": "long" | ||
}] | ||
} | ||
}, | ||
"inputFacets": {} | ||
}], | ||
"outputs": [{ | ||
"namespace": "gs://openlineage-spark-bigquery-integration", | ||
"facets": { | ||
"schema": { | ||
"fields": [{ | ||
"name": "a", | ||
"type": "long" | ||
}, { | ||
"name": "b", | ||
"type": "long" | ||
}] | ||
}, | ||
"columnLineage": { | ||
"fields": { | ||
"a": { | ||
"inputFields": [{ | ||
"namespace": "namespace", | ||
"name": "openlineage-ci.airflow_integration.3_3_1_source", | ||
"field": "a" | ||
}] | ||
}, | ||
"b": { | ||
"inputFields": [{ | ||
"namespace": "namespace", | ||
"name": "openlineage-ci.airflow_integration.3_3_1_source", | ||
"field": "b" | ||
}] | ||
} | ||
} | ||
} | ||
} | ||
}] | ||
} |
54 changes: 54 additions & 0 deletions
54
integration/spark/app/integrations/container/pysparkBigqueryInsertStart.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"eventType": "START", | ||
"job": { | ||
"namespace": "testReadAndWriteFromBigquery", | ||
"name": "open_lineage_spark_bigquery.execute_insert_into_hadoop_fs_relation_command" | ||
}, | ||
"inputs": [{ | ||
"namespace": "bigquery", | ||
"name": "openlineage-ci.airflow_integration.3_3_1_source", | ||
"facets": { | ||
"schema": { | ||
"fields": [{ | ||
"name": "a", | ||
"type": "long" | ||
}, { | ||
"name": "b", | ||
"type": "long" | ||
}] | ||
} | ||
} | ||
}], | ||
"outputs": [{ | ||
"namespace": "gs://openlineage-spark-bigquery-integration", | ||
"facets": { | ||
"schema": { | ||
"fields": [{ | ||
"name": "a", | ||
"type": "long" | ||
}, { | ||
"name": "b", | ||
"type": "long" | ||
}] | ||
}, | ||
"columnLineage": { | ||
"fields": { | ||
"a": { | ||
"inputFields": [{ | ||
"namespace": "namespace", | ||
"name": "openlineage-ci.airflow_integration.3_3_1_source", | ||
"field": "a" | ||
}] | ||
}, | ||
"b": { | ||
"inputFields": [{ | ||
"namespace": "namespace", | ||
"name": "openlineage-ci.airflow_integration.3_3_1_source", | ||
"field": "b" | ||
}] | ||
} | ||
} | ||
} | ||
} | ||
}] | ||
} |
26 changes: 26 additions & 0 deletions
26
integration/spark/app/integrations/container/pysparkBigquerySaveEnd.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"eventType": "COMPLETE", | ||
"job": { | ||
"namespace": "testReadAndWriteFromBigquery", | ||
"name": "open_lineage_spark_bigquery.execute_save_into_data_source_command" | ||
}, | ||
"inputs": [{ | ||
"namespace": "bigquery", | ||
"name": "openlineage-ci.airflow_integration.3_3_1_source", | ||
"facets": { | ||
"schema": { | ||
"fields": [{ | ||
"name": "a", | ||
"type": "long" | ||
}, { | ||
"name": "b", | ||
"type": "long" | ||
}] | ||
} | ||
} | ||
}], | ||
"outputs": [{ | ||
"namespace": "bigquery", | ||
"name": "openlineage-ci.airflow_integration.3_3_1_target" | ||
}] | ||
} |
26 changes: 26 additions & 0 deletions
26
integration/spark/app/integrations/container/pysparkBigquerySaveStart.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"eventType": "START", | ||
"job": { | ||
"namespace": "testReadAndWriteFromBigquery", | ||
"name": "open_lineage_spark_bigquery.execute_save_into_data_source_command" | ||
}, | ||
"inputs": [{ | ||
"namespace": "bigquery", | ||
"name": "openlineage-ci.airflow_integration.3_3_1_source", | ||
"facets": { | ||
"schema": { | ||
"fields": [{ | ||
"name": "a", | ||
"type": "long" | ||
}, { | ||
"name": "b", | ||
"type": "long" | ||
}] | ||
} | ||
} | ||
}], | ||
"outputs": [{ | ||
"namespace": "bigquery", | ||
"name": "openlineage-ci.airflow_integration.3_3_1_target" | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.