You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To support the aforementioned, this task additionally adds:
SchemaPath
publicstaticclassSchemaPath {
// Supports the projects/<project>/schemas/<schema> resource path
}
fromSchema methods
// org.apache.beam.sdk.io.gcp.pubsub.PubsubClientPubsubClientimportorg.apache.beam.sdk.schemas.Schema;
staticSchemafromPubsubSchema(com.google.api.services.pubsub.model.SchemapubsubSchema) { /* Converts Pub/Sub model Schema to Beam Schema; for use by PubsubJsonClient. */ }
staticSchemafromPubsubSchema(com.google.pubsub.v1.SchemapubsubSchema) { /* Converts Pub/Sub model Schema to Beam Schema; for use by PubsubGrpcClient. */ }
Querying from and converting the Pub/Sub Schema [1] to a Beam Schema[2] would allow us to validate that both schemas match to prevent potential errors. This supports the design goals of Pub/Sub schemas to facilitate a contract between publisher and subscriber and facilitate a single source of truth for inter-team production and consumption.
Ready and Done Measures
Ready
No blockers
Done
Tests detect errors in resource path generation for a Google Cloud resource path
Tests detect errors in converting from Beam Schema to Pub/Sub model Schema
Tests detect errors in converting from Beam Schema to Pub/Sub proto Schema
Tests detect errors in querying source Pub/Sub schema
Integration tests detect errors in querying source Pub/Sub schema from provisioned resources
Issue Priority
Priority: 3
Issue Component
Component: io-java-gcp
The text was updated successfully, but these errors were encountered:
What work does this Task describe?
This task adds instance method and two static methods to PubsubClient.
To support the aforementioned, this task additionally adds:
What value may result from this Task's output?
Querying from and converting the Pub/Sub Schema [1] to a Beam Schema[2] would allow us to validate that both schemas match to prevent potential errors. This supports the design goals of Pub/Sub schemas to facilitate a contract between publisher and subscriber and facilitate a single source of truth for inter-team production and consumption.
Ready and Done Measures
Ready
No blockers
Done
Issue Priority
Priority: 3
Issue Component
Component: io-java-gcp
The text was updated successfully, but these errors were encountered: