Skip to content

Commit 9a1d382

Browse files
authored
Support google-cloud-datacatalog>=1.0.0 (#13097)
1 parent 872350b commit 9a1d382

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

β€Žairflow/providers/google/cloud/hooks/datacatalog.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def delete_tag_template_field(
537537
:type metadata: Sequence[Tuple[str, str]]
538538
"""
539539
client = self.get_conn()
540-
name = DataCatalogClient.field_path(project_id, location, tag_template, field)
540+
name = DataCatalogClient.tag_template_field_path(project_id, location, tag_template, field)
541541

542542
self.log.info('Deleting a tag template field: name=%s', name)
543543
client.delete_tag_template_field(
@@ -860,7 +860,7 @@ def rename_tag_template_field(
860860
:type metadata: Sequence[Tuple[str, str]]
861861
"""
862862
client = self.get_conn()
863-
name = DataCatalogClient.field_path(project_id, location, tag_template, field)
863+
name = DataCatalogClient.tag_template_field_path(project_id, location, tag_template, field)
864864

865865
self.log.info(
866866
'Renaming field: old_name=%s, new_tag_template_field_id=%s', name, new_tag_template_field_id
@@ -1246,7 +1246,7 @@ def update_tag_template_field( # pylint: disable=too-many-arguments
12461246
"""
12471247
client = self.get_conn()
12481248
if project_id and location and tag_template and tag_template_field_id:
1249-
tag_template_field_name = DataCatalogClient.field_path(
1249+
tag_template_field_name = DataCatalogClient.tag_template_field_path(
12501250
project_id, location, tag_template, tag_template_field_id
12511251
)
12521252

β€Žsetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def write_version(filename: str = os.path.join(*[my_dir, "airflow", "git_version
257257
'google-cloud-bigquery-datatransfer>=0.4.0,<2.0.0',
258258
'google-cloud-bigtable>=1.0.0,<2.0.0',
259259
'google-cloud-container>=0.1.1,<2.0.0',
260-
'google-cloud-datacatalog>=0.5.0, <0.8', # TODO: we should migrate to 1.0 likely and add <2.0.0 then
260+
'google-cloud-datacatalog>=1.0.0,<2.0.0',
261261
'google-cloud-dataproc>=1.0.1,<2.0.0',
262262
'google-cloud-dlp>=0.11.0,<2.0.0',
263263
'google-cloud-kms>=1.2.1,<2.0.0',

0 commit comments

Comments
 (0)