-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Managed BigQueryIO #31486
Merged
Merged
Managed BigQueryIO #31486
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
ce14b96
managed bigqueryio
ahmedabu98 550c1b4
spotless
ahmedabu98 c94de3c
move managed dependency to test only
ahmedabu98 912dc08
Merge branch 'master' of https://github.com/ahmedabu98/beam into mana…
ahmedabu98 f436e62
cleanup after merging snake_case PR
ahmedabu98 fe60904
choose write method based on boundedness and pipeline options
ahmedabu98 7d405cf
Merge branch 'master' of https://github.com/ahmedabu98/beam into mana…
ahmedabu98 d45159f
rename bigquery write config class
ahmedabu98 989ad0f
spotless
ahmedabu98 b9b49e7
change read output tag to 'output'
ahmedabu98 a119bbc
spotless
ahmedabu98 74bc178
revert logic that depends on DataflowServiceOptions. switching BQ met…
ahmedabu98 528b504
spotless
ahmedabu98 dcc398a
fix typo
ahmedabu98 36edc38
separate BQ write config to a new class
ahmedabu98 f9be86c
fix doc
ahmedabu98 bd1e534
Merge branch 'master' of https://github.com/ahmedabu98/beam into mana…
ahmedabu98 a26765e
resolve after syncing to HEAD
ahmedabu98 725f7bd
spotless
ahmedabu98 2631104
fork on batch/streaming
ahmedabu98 770cf50
cleanup
ahmedabu98 0a70466
spotless
ahmedabu98 01a01f7
move forking logic to BQ schematransform side
ahmedabu98 697c0b8
add file loads translation and tests; add test checks that the correc…
ahmedabu98 105474b
set top-level wrapper to be the underlying managed BQ transform urn; …
ahmedabu98 d6b9e69
move unit tests to respectvie schematransform test classes
ahmedabu98 c0767d7
Merge branch 'master' of https://github.com/ahmedabu98/beam into mana…
ahmedabu98 a600f62
Merge branch 'master' of https://github.com/ahmedabu98/beam into mana…
ahmedabu98 ad4dcd9
expose to Python SDK as well
ahmedabu98 6f325ce
Merge branch 'master' of https://github.com/ahmedabu98/beam into mana…
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
2 changes: 1 addition & 1 deletion
2
.github/trigger_files/beam_PostCommit_Python_Xlang_Gcp_Direct.json
This file contains 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"comment": "Modify this file in a trivial way to cause this test suite to run", | ||
"modification": 2 | ||
"modification": 1 | ||
} |
This file contains 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 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 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 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 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 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,61 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
apply plugin: 'org.apache.beam.module' | ||
apply plugin: 'application' | ||
mainClassName = "org.apache.beam.sdk.expansion.service.ExpansionService" | ||
|
||
applyJavaNature( | ||
automaticModuleName: 'org.apache.beam.sdk.managed.expansion.service', | ||
exportJavadoc: false, | ||
validateShadowJar: false, | ||
shadowClosure: {}, | ||
) | ||
|
||
// TODO(https://github.com/apache/beam/pull/32486/) Use library.java.kafka_clients once >=3.1.0 is set as default | ||
configurations.runtimeClasspath { | ||
// Pin kafka-clients version due to <3.1.0 missing auth callback classes | ||
resolutionStrategy.force 'org.apache.kafka:kafka-clients:3.1.2' | ||
} | ||
|
||
shadowJar { | ||
mergeServiceFiles() | ||
outputs.upToDateWhen { false } | ||
} | ||
|
||
description = "Apache Beam :: SDKs :: Java :: Managed :: Expansion Service" | ||
ext.summary = "Expansion service for Managed Transforms" | ||
|
||
dependencies { | ||
runtimeOnly project(":sdks:java:expansion-service") | ||
|
||
// **** IcebergIO and dependencies **** | ||
runtimeOnly project(":sdks:java:io:iceberg") | ||
// Needed when writing to GCS | ||
runtimeOnly library.java.bigdataoss_gcs_connector | ||
runtimeOnly library.java.hadoop_client | ||
// For HiveCatalog | ||
runtimeOnly ("org.apache.iceberg:iceberg-hive-metastore:1.4.2") | ||
runtimeOnly project(path: ":sdks:java:io:iceberg:hive:exec", configuration: "shadow") | ||
|
||
// **** KafkaIO and dependencies **** | ||
runtimeOnly project(":sdks:java:io:kafka") | ||
runtimeOnly library.java.kafka_clients | ||
|
||
runtimeOnly library.java.slf4j_jdk14 | ||
} |
19 changes: 19 additions & 0 deletions
19
sdks/java/managed/expansion-service/container/build.gradle
This file contains 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,19 @@ | ||
plugins { | ||
id 'java' | ||
} | ||
|
||
group = 'org.apache.beam.sdk.managed.expansion.service.container' | ||
version = '2.61.0-SNAPSHOT' | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
testImplementation platform('org.junit:junit-bom:5.9.1') | ||
testImplementation 'org.junit.jupiter:junit-jupiter' | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
} |
This file contains 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.
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.
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.
Also confirm that we end up using the correct sink here.
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.
Initially did not know how we would perform such a check. Will think about it again and give it a try
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.
Added tests that verifies by looking at the pipeline proto, PTAL!