Skip to content

Commit

Permalink
Remove openlineage.common dependencies in Google and Snowflake prov…
Browse files Browse the repository at this point in the history
…iders. (#39614)

Signed-off-by: Jakub Dardzinski <[email protected]>
  • Loading branch information
JDarDagran authored May 20, 2024
1 parent cc9308c commit 4ee46b9
Show file tree
Hide file tree
Showing 21 changed files with 1,125 additions and 311 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"BigQueryErrorRunFacet": {
"allOf": [
{
"$ref": "https://openlineage.io/spec/2-0-2/OpenLineage.json#/$defs/RunFacet"
},
{
"type": "object",
"properties": {
"clientError": {
"type": "string"
},
"parserError": {
"type": "string"
}
}
}
],
"type": "object"
}
},
"type": "object",
"properties": {
"bigQueryJob": {
"$ref": "#/$defs/BigQueryErrorRunFacet"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"BigQueryJobRunFacet": {
"allOf": [
{
"$ref": "https://openlineage.io/spec/2-0-2/OpenLineage.json#/$defs/RunFacet"
},
{
"type": "object",
"properties": {
"cached": {
"type": "boolean"
},
"billedBytes": {
"type": "int",
"example": 321
},
"properties": {
"type": "string"
}
},
"required": [
"cached"
]
}
],
"type": "object"
}
},
"type": "object",
"properties": {
"bigQueryJob": {
"$ref": "#/$defs/BigQueryJobRunFacet"
}
}
}
16 changes: 16 additions & 0 deletions airflow/providers/google/cloud/openlineage/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
Loading

0 comments on commit 4ee46b9

Please sign in to comment.