Skip to content

Commit a449862

Browse files
author
oravidov
committed
Fixed views issue in BigQuery and bumped version
1 parent 6e9ce95 commit a449862

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lineage/bigquery_query.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class BigQueryQuery(Query):
1212
EMPTY_QUERY_TYPE = ''
1313
DROP_PREFIX = 'DROP'
1414
ALTER_PREFIX = 'ALTER'
15+
VIEW_SUFFIX = 'VIEW'
1516
PLATFORM_TYPE = 'BIGQUERY'
1617

1718
@staticmethod
@@ -57,6 +58,9 @@ def parse(self, full_table_names: bool = False) -> bool:
5758
elif query_type.startswith(self.ALTER_PREFIX):
5859
_, _, self.renamed_tables, _ = \
5960
self._parse_query_text(table_resolver, self._raw_query_text)
61+
elif query_type.endswith(self.VIEW_SUFFIX):
62+
self.source_tables, self.target_tables, _, _ = self._parse_query_text(table_resolver,
63+
self._raw_query_text)
6064
else:
6165
self.source_tables = source_tables
6266
self.target_tables.add(target_table)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
setup(
1111
name='elementary-data',
1212
description='Data monitoring and lineage',
13-
version='0.1.3',
13+
version='0.1.4',
1414
packages=find_packages(),
1515
python_requires='>=3.6.2',
1616
entry_points='''

0 commit comments

Comments
 (0)