From 75ae3f5bcbb4e5bf7902f347074fbb50993ddef1 Mon Sep 17 00:00:00 2001 From: Tyler Farris Date: Thu, 23 Jun 2022 15:23:39 -0600 Subject: [PATCH] * rebase Signed-off-by: Tyler Farris --- .../openlineage/common/provider/livemaps.py | 28 ------------ .../openlineage/common/schema/__init__.py | 2 +- .../live-maps-python-decorated-facet.json | 44 ------------------- 3 files changed, 1 insertion(+), 73 deletions(-) delete mode 100644 integration/common/openlineage/common/provider/livemaps.py delete mode 100644 integration/common/openlineage/common/schema/live-maps-python-decorated-facet.json diff --git a/integration/common/openlineage/common/provider/livemaps.py b/integration/common/openlineage/common/provider/livemaps.py deleted file mode 100644 index 1e5e65c161..0000000000 --- a/integration/common/openlineage/common/provider/livemaps.py +++ /dev/null @@ -1,28 +0,0 @@ -import attr - -from typing import Optional - -from openlineage.client.facet import BaseFacet -from openlineage.common.schema import GITHUB_LOCATION - - -@attr.s -class LiveMapsPythonDecoratedFacet(BaseFacet): - """ - Facet that represents metadata relevant to LiveMaps Graph UI. - :param database: The database type/name - :param cluster: Cluster of the cloud database(Optional) - :param connectionUrl: Database connection URL - :param target: Target of Link/outEdge for LiveMaps Graph UI. - :param source: Source of link/inEdge for LiveMaps Graph UI. - """ - - database: Optional[str] = attr.ib(default=None) - cluster: Optional[str] = attr.ib(default=None) - connectionUrl: Optional[str] = attr.ib(default=None) - target: Optional[str] = attr.ib(default=None) - source: Optional[str] = attr.ib(default=None) - - @staticmethod - def _get_schema() -> str: - return GITHUB_LOCATION + "live-maps-python-decorated-facet.json" diff --git a/integration/common/openlineage/common/schema/__init__.py b/integration/common/openlineage/common/schema/__init__.py index 2acab9dd4a..e440f22a37 100644 --- a/integration/common/openlineage/common/schema/__init__.py +++ b/integration/common/openlineage/common/schema/__init__.py @@ -1,3 +1,3 @@ # SPDX-License-Identifier: Apache-2.0. -GITHUB_LOCATION = "https://github.com/Tylerpfarris/OpenLineage/tree/main/integration/common/openlineage/schema/" # noqa: E501 +GITHUB_LOCATION = "https://github.com/OpenLineage/OpenLineage/tree/main/integration/common/openlineage/schema/" # noqa: E501 diff --git a/integration/common/openlineage/common/schema/live-maps-python-decorated-facet.json b/integration/common/openlineage/common/schema/live-maps-python-decorated-facet.json deleted file mode 100644 index df83faedea..0000000000 --- a/integration/common/openlineage/common/schema/live-maps-python-decorated-facet.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://openlineage.io/spec/facets/1-0-0/LiveMapsPythonDecoratedFacet.json", - "$defs": { - "LiveMapsPythonDecoratedFacet": { - "allOf": [ - { - "$ref": "https://openlineage.io/spec/1-0-2/OpenLineage.json#/$defs/BaseFacet" - }, - { - "type": "object", - "properties": { - "database": { - "type": "string", - "description": "The database type/name", - "example": "Snowflake" - }, - "cluster": { - "type": "string", - "description": "Cluster of cloud DB", - "example": "us-west-2" - }, - "connectionUrl": { - "type": "string", - "description": "Database connection URL ", - "example": "http://snowflake" - }, - "target": { - "type": "string", - "description": "target of Link/outEdge for LiveMaps graph", - "example": "Postgres" - }, - "source": { - "type": "string", - "description": "source of Link/inEdge for LiveMaps graph", - "example": "Stripe" - } - } - } - ], - "required": ["database", "connectionUrl"] - } - } -}