Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## main #4683 +/- ##
=============================================
- Coverage 60.36% 38.04% -22.32%
+ Complexity 8503 533 -7970
=============================================
Files 1126 197 -929
Lines 73006 12070 -60936
Branches 8880 1240 -7640
=============================================
- Hits 44069 4592 -39477
+ Misses 26007 7102 -18905
+ Partials 2930 376 -2554
🚀 New features to boost your workflow:
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds a streaming YAML Flex Template blueprint (
PubSub_To_AlloyDB_Embeddings_Yaml) and end-to-end integration test (PubSubToAlloyDBEmbeddingsYamlIT) for generating real-time Vertex AI text embeddings from Pub/Sub JSON messages and writing them into an AlloyDB / PostgreSQLpgvectortable:yaml/src/main/yaml/PubSubToAlloyDBEmbeddings.yaml:ReadFromPubSub(JSON with defaultmessage_id/text_contentschema and dead-letter error output)MLTransform(VertexAITextEmbeddings, defaulttext-embedding-005)WriteToAlloyDBwithGoogleCloudSecretManagersupport and parameterized?::vectorinsert queryMapToFieldserror flattening +WriteToAlloyDBerror table sinkyaml/src/main/python/options/ml_options.yaml: Reusableml_transform_common_optionsandvertex_ai_text_embeddings_optionsparameter groups.yaml/src/main/java/com/google/cloud/teleport/templates/yaml/PubSubToAlloyDBEmbeddingsYaml.java: Generated viagenerate_yaml_java_templates.py.yaml/README_PubSub_To_AlloyDB_Embeddings_Yaml.md: Generated viamvn prepare-package -DskipTests -PtemplatesSpec -pl yaml -am.yaml/src/test/java/com/google/cloud/teleport/templates/yaml/PubSubToAlloyDBEmbeddingsYamlIT.java: Streaming IT usingpgvector/pgvector:pg16, Google Cloud Secret Manager, and Pub/Sub (validating both 768-dpgvectorembeddings and malformed-message error routing).Verification
python yaml/src/main/python/generate_yaml_java_templates.py yaml/src/main/yaml(clean diff)yaml_syntax_test.pyandgenerate_yaml_java_templates_test.pypassedmvn spotless:check checkstyle:check test-compile test -pl yamlpassed with 0 Checkstyle violationsYAML/Python PRintegration tests on this Draft PR to verify live Dataflow execution