Skip to content

Commit

Permalink
Minor: Bump Version & Fix Merge Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ulixius9 committed Jan 23, 2024
1 parent 03b62b0 commit 8748024
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ingestion/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ ARG INGESTION_DEPENDENCY="all"
ENV PIP_NO_CACHE_DIR=1
# Make pip silent
ENV PIP_QUIET=1
ARG RI_VERSION="1.2.4.2"
ARG RI_VERSION="1.2.4.4"
RUN pip install --upgrade pip
RUN pip install "openmetadata-managed-apis~=${RI_VERSION}" --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.6.3/constraints-3.9.txt"
RUN pip install "openmetadata-ingestion[${INGESTION_DEPENDENCY}]~=${RI_VERSION}"
Expand Down
2 changes: 1 addition & 1 deletion ingestion/operators/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ ENV PIP_QUIET=1
RUN pip install --upgrade pip

ARG INGESTION_DEPENDENCY="all"
ARG RI_VERSION="1.2.4.2"
ARG RI_VERSION="1.2.4.4"
RUN pip install --upgrade pip
RUN pip install "openmetadata-ingestion[airflow]~=${RI_VERSION}"
RUN pip install "openmetadata-ingestion[${INGESTION_DEPENDENCY}]~=${RI_VERSION}"
Expand Down
2 changes: 1 addition & 1 deletion ingestion/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def get_long_description():
build_options = {"includes": ["_cffi_backend"]}
setup(
name="openmetadata-ingestion",
version="1.2.4.3",
version="1.2.4.4",
url="https://open-metadata.org/",
author="OpenMetadata Committers",
license="Apache License 2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,55 @@ def get_job_runs(self, job_id) -> List[dict]:
except Exception as exc:
logger.debug(traceback.format_exc())
logger.error(exc)

def get_table_lineage(self, table_name: str) -> LineageTableStreams:
"""
Method returns table lineage details
"""
try:
data = {
"table_name": table_name,
}

response = self.client.get(
f"{self.base_url}{TABLE_LINEAGE_PATH}",
headers=self.headers,
data=json.dumps(data),
timeout=API_TIMEOUT,
).json()
if response:
return LineageTableStreams(**response)

except Exception as exc:
logger.debug(traceback.format_exc())
logger.error(exc)

return LineageTableStreams()

def get_column_lineage(
self, table_name: str, column_name: str
) -> LineageColumnStreams:
"""
Method returns table lineage details
"""
try:
data = {
"table_name": table_name,
"column_name": column_name,
}

response = self.client.get(
f"{self.base_url}{COLUMN_LINEAGE_PATH}",
headers=self.headers,
data=json.dumps(data),
timeout=API_TIMEOUT,
).json()

if response:
return LineageColumnStreams(**response)

except Exception as exc:
logger.debug(traceback.format_exc())
logger.error(exc)

return LineageColumnStreams()
2 changes: 1 addition & 1 deletion openmetadata-airflow-apis/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def get_long_description():
packages=find_packages(include=[f"{PLUGIN_NAME}.*", PLUGIN_NAME]),
include_package_data=True,
package_data={PLUGIN_NAME: get_package_data()},
version="1.2.4.2",
version="1.2.4.4",
url="https://open-metadata.org/",
author="OpenMetadata Committers",
license="Apache License 2.0",
Expand Down

0 comments on commit 8748024

Please sign in to comment.