Skip to content

fix: remove unused annotation in results_table#11548

Merged
parthea merged 2 commits intomainfrom
owl-bot-copy-packages-google-cloud-dataplex
Aug 6, 2023
Merged

fix: remove unused annotation in results_table#11548
parthea merged 2 commits intomainfrom
owl-bot-copy-packages-google-cloud-dataplex

Conversation

@gcf-owl-bot
Copy link
Contributor

@gcf-owl-bot gcf-owl-bot bot commented Aug 5, 2023

  • Regenerate this pull request now.

PiperOrigin-RevId: 553938801

Source-Link: googleapis/googleapis@ff66907

Source-Link: https://github.com/googleapis/googleapis-gen/commit/ee14ddb1fc9e919b1a2e10a6cc01e2f81e1c3c41
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFwbGV4Ly5Pd2xCb3QueWFtbCIsImgiOiJlZTE0ZGRiMWZjOWU5MTliMWEyZTEwYTZjYzAxZTJmODFlMWMzYzQxIn0=

PiperOrigin-RevId: 553938801

Source-Link: googleapis/googleapis@ff66907

Source-Link: googleapis/googleapis-gen@ee14ddb
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFwbGV4Ly5Pd2xCb3QueWFtbCIsImgiOiJlZTE0ZGRiMWZjOWU5MTliMWEyZTEwYTZjYzAxZTJmODFlMWMzYzQxIn0=
@trusted-contributions-gcf trusted-contributions-gcf bot added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Aug 5, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 5, 2023
@gcf-owl-bot gcf-owl-bot bot marked this pull request as ready for review August 5, 2023 00:55
@gcf-owl-bot gcf-owl-bot bot requested a review from a team as a code owner August 5, 2023 00:55
@trusted-contributions-gcf trusted-contributions-gcf bot added the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 5, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 5, 2023
Comment on lines -271 to -292
@staticmethod
def table_path(
project: str,
dataset: str,
table: str,
) -> str:
"""Returns a fully-qualified table string."""
return "projects/{project}/datasets/{dataset}/tables/{table}".format(
project=project,
dataset=dataset,
table=table,
)

@staticmethod
def parse_table_path(path: str) -> Dict[str, str]:
"""Parses a table path into its component segments."""
m = re.match(
r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)/tables/(?P<table>.+?)$",
path,
)
return m.groupdict() if m else {}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change however the methods were only added on July 25th. In b/294420502, there is a note that this method would not have worked because the API only accepts
"//bigquery.googleapis.com/projects/{project}/datasets/{dataset}/tables/{table}" and not "projects/{project}/datasets/{dataset}/tables/{table}". Approving based on the discussions in b/294420502

@parthea parthea merged commit 840fc36 into main Aug 6, 2023
@parthea parthea deleted the owl-bot-copy-packages-google-cloud-dataplex branch August 6, 2023 10:59
@release-please release-please bot mentioned this pull request Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kokoro:force-run Add this label to force Kokoro to re-run the tests. owl-bot-copy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant