From ae5fb6d681da0ae5ec2659a6ec5786e4149f28c2 Mon Sep 17 00:00:00 2001 From: sihao <34644190+sihaotan4@users.noreply.github.com> Date: Wed, 20 Dec 2023 01:49:49 +0800 Subject: [PATCH] amend typos in get_dashboard_tables (#2222) * fix typos in get_dashboard_tables Signed-off-by: sihaotan4 <34644190+sihaotan4@users.noreply.github.com> * bump metadata version Signed-off-by: sihaotan4 <34644190+sihaotan4@users.noreply.github.com> --------- Signed-off-by: sihaotan4 <34644190+sihaotan4@users.noreply.github.com> --- metadata/metadata_service/proxy/gremlin_proxy.py | 6 +++--- metadata/setup.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/metadata/metadata_service/proxy/gremlin_proxy.py b/metadata/metadata_service/proxy/gremlin_proxy.py index 3d66614040..f20ac75b20 100644 --- a/metadata/metadata_service/proxy/gremlin_proxy.py +++ b/metadata/metadata_service/proxy/gremlin_proxy.py @@ -1695,11 +1695,11 @@ def _get_dashboard_tables(self, dashboard_tables = self.query_executor()(query=dashboard_tables_query, get=FromResultSet.toList) tables = [] for table in dashboard_tables: - tabe_base = table.get('key').split("://")[1] + table_base = table.get('key').split("://")[1] table_db = table.get('key').split("://")[0] - table_cluster = tabe_base.split(".")[0] + table_cluster = table_base.split(".")[0] table_name = table.get('name') - table_schema = tabe_base.split("/")[0] + table_schema = table_base.split("/")[0] table_desc_vertex_q = self.g.V(table[T.id]).out("DESCRIPTION") table_desc_vertex_q = table_desc_vertex_q.filter(__.hasLabel("Description")).valueMap().by(__.unfold()) table_desc_vertex = self.query_executor()(query=table_desc_vertex_q, get=FromResultSet.toList) diff --git a/metadata/setup.py b/metadata/setup.py index e2776310f6..aaacc17093 100644 --- a/metadata/setup.py +++ b/metadata/setup.py @@ -5,7 +5,7 @@ from setuptools import find_packages, setup -__version__ = '3.12.2' +__version__ = '3.12.3' requirements_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'requirements.txt') with open(requirements_path) as requirements_file: