-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BEAM-7856] Suppress error on table bigquery table already exists #9204
Conversation
R: @chamikaramj |
Ping for the review |
Passing the review to Pablo. |
schema=schema or found_table.schema, | ||
additional_parameters=additional_create_parameters) | ||
except HttpError as exn: | ||
if exn.status_code == 409: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of suppressing the error, can we move table creation to a step that preceeds writing ? That seems cleaner.
Java SDK seems to be doing something like this based on a quick look:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, Using a single element transform to create the table would be idle.
LGTM for getting this in as a short term fix. But prob. file a JIRA for a proper fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
I have added comment in the jira https://issues.apache.org/jira/browse/BEAM-7856 and kept it open.
schema=schema or found_table.schema, | ||
additional_parameters=additional_create_parameters) | ||
except HttpError as exn: | ||
if exn.status_code == 409: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, Using a single element transform to create the table would be idle.
Please add a meaningful description for your change here
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
R: @username
).[BEAM-XXX] Fixes bug in ApproximateQuantiles
, where you replaceBEAM-XXX
with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.Post-Commit Tests Status (on master branch)
Pre-Commit Tests Status (on master branch)
See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.