-
Notifications
You must be signed in to change notification settings - Fork 4.5k
BigQuery Storage Write API wrapper for Python SDK #25685
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
Merged
chamikaramj
merged 15 commits into
apache:master
from
ahmedabu98:storage_write_python_wrapper
Mar 28, 2023
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
493b249
discover one config
ahmedabu98 79c00ce
creating dlq for the schematransform
ahmedabu98 fa3eb4e
bq storage write api wrapper
ahmedabu98 18f5efe
support creating easy Python-using-Java cross-language gradle tasks f…
ahmedabu98 aea561b
add Python-using-Java jenkins tests for GCP expansion service
ahmedabu98 db6f97f
Address comments:
ahmedabu98 6f71987
typo
ahmedabu98 5d4a2c0
address comments and add tests for new bigquery tools
ahmedabu98 b195d71
lint
ahmedabu98 704a7fb
skip bq tools test if GCP dependencies not installed
ahmedabu98 ae2a03b
sync with HEAD, fix encoding positions mismatch
ahmedabu98 09ff611
fix some tests
ahmedabu98 52a6c4a
return xvr job back to normal
ahmedabu98 10bbcd1
Merge branch 'master' of github.com:ahmedabu98/beam into storage_writ…
ahmedabu98 0999c68
missing import
ahmedabu98 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
.test-infra/jenkins/job_PostCommit_Python_CrossLanguage_Gcp_Dataflow.groovy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one | ||
| * or more contributor license agreements. See the NOTICE file | ||
| * distributed with this work for additional information | ||
| * regarding copyright ownership. The ASF licenses this file | ||
| * to you under the Apache License, Version 2.0 (the | ||
| * "License"); you may not use this file except in compliance | ||
| * with the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
|
|
||
| import CommonJobProperties as commonJobProperties | ||
| import PostcommitJobBuilder | ||
|
|
||
|
|
||
| import static PythonTestProperties.CROSS_LANGUAGE_VALIDATES_RUNNER_PYTHON_VERSIONS | ||
|
|
||
|
|
||
| // This job runs end-to-end cross language GCP IO tests with DataflowRunner. | ||
| // Collects tests with the @pytest.mark.uses_gcp_java_expansion_service decorator | ||
| PostcommitJobBuilder.postCommitJob('beam_PostCommit_Python_Xlang_Gcp_Dataflow', | ||
| 'Run Python_Xlang_Gcp_Dataflow PostCommit', 'Python_Xlang_Gcp_Dataflow (\"Run Python_Xlang_Gcp_Dataflow PostCommit\")', this) { | ||
| description('Runs end-to-end cross language GCP IO tests on the Dataflow runner.') | ||
|
|
||
|
|
||
| // Set common parameters. | ||
| commonJobProperties.setTopLevelMainJobProperties(delegate) | ||
|
|
||
|
|
||
| // Publish all test results to Jenkins | ||
| publishers { | ||
| archiveJunit('**/pytest*.xml') | ||
| } | ||
|
|
||
|
|
||
| // Gradle goals for this job. | ||
| steps { | ||
| CROSS_LANGUAGE_VALIDATES_RUNNER_PYTHON_VERSIONS.each { pythonVersion -> | ||
| shell("echo \"Running cross language GCP IO tests with Python ${pythonVersion} on DataflowRunner.\"") | ||
| gradle { | ||
| rootBuildScriptDir(commonJobProperties.checkoutDir) | ||
| tasks(":sdks:python:test-suites:dataflow:py${pythonVersion.replace('.', '')}:gcpCrossLanguagePythonUsingJava") | ||
| commonJobProperties.setGradleSwitches(delegate) | ||
| } | ||
| } | ||
| } | ||
| } |
55 changes: 55 additions & 0 deletions
55
.test-infra/jenkins/job_PostCommit_Python_CrossLanguage_Gcp_Direct.groovy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one | ||
| * or more contributor license agreements. See the NOTICE file | ||
| * distributed with this work for additional information | ||
| * regarding copyright ownership. The ASF licenses this file | ||
| * to you under the Apache License, Version 2.0 (the | ||
| * "License"); you may not use this file except in compliance | ||
| * with the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
|
|
||
| import CommonJobProperties as commonJobProperties | ||
| import PostcommitJobBuilder | ||
|
|
||
|
|
||
| import static PythonTestProperties.CROSS_LANGUAGE_VALIDATES_RUNNER_PYTHON_VERSIONS | ||
|
|
||
|
|
||
| // This job runs end-to-end cross language GCP IO tests with DirectRunner. | ||
| // Collects tests with the @pytest.mark.uses_gcp_java_expansion_service decorator | ||
| PostcommitJobBuilder.postCommitJob('beam_PostCommit_Python_Xlang_Gcp_Direct', | ||
| 'Run Python_Xlang_Gcp_Direct PostCommit', 'Python_Xlang_Gcp_Direct (\"Run Python_Xlang_Gcp_Direct PostCommit\")', this) { | ||
| description('Runs end-to-end cross language GCP IO tests on the Direct runner.') | ||
|
|
||
|
|
||
| // Set common parameters. | ||
| commonJobProperties.setTopLevelMainJobProperties(delegate) | ||
|
|
||
|
|
||
| // Publish all test results to Jenkins | ||
| publishers { | ||
| archiveJunit('**/pytest*.xml') | ||
| } | ||
|
|
||
|
|
||
| // Gradle goals for this job. | ||
| steps { | ||
| CROSS_LANGUAGE_VALIDATES_RUNNER_PYTHON_VERSIONS.each { pythonVersion -> | ||
| shell("echo \"Running cross language GCP IO tests with Python ${pythonVersion} on DirectRunner.\"") | ||
| gradle { | ||
| rootBuildScriptDir(commonJobProperties.checkoutDir) | ||
| tasks(":sdks:python:test-suites:direct:py${pythonVersion.replace('.', '')}:gcpCrossLanguagePythonUsingJava") | ||
| commonJobProperties.setGradleSwitches(delegate) | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.