You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "ahmedabu98 (via GitHub)" <gi...@apache.org> on 2023/08/04 13:19:29 UTC

[GitHub] [beam] ahmedabu98 opened a new issue, #27848: [Feature Request]: Implement a StorageApiDynamicDestinations class to write ProtoRows directly

ahmedabu98 opened a new issue, #27848:
URL: https://github.com/apache/beam/issues/27848

   ### What would you like to happen?
   
   Users are asking for the use-case of writing ProtoRows directly to BigQuery in order to skip converting back and forth from TableRows.
   
   I believe this means creating a new `StorageApiDynamicDestinations` object that returns a payload directly from ProtoRows.
   
   Some thoughts:
   1. We can get a descriptor from schema and use that to confirm that the ProtoRows match table schema before appending them to stream.
   2. How do we extend the autoSchemaUpdate feature to this technique (ie. figuring out which row fields are unknown relative to the Schema)? This can prob be left for later, note that writing with [Avro](https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/StorageApiDynamicDestinationsGenericRecord.java) and [Beam rows](https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/StorageApiDynamicDestinationsBeamRow.java) don't support autoSchemaUpdate.
   
   ### Issue Priority
   
   Priority: 2 (default / most feature requests should be filed as P2)
   
   ### Issue Components
   
   - [ ] Component: Python SDK
   - [X] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [X] Component: IO connector
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Samza Runner
   - [ ] Component: Twister2 Runner
   - [ ] Component: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] ahmedabu98 commented on issue #27848: [Feature Request]: Implement a StorageApiDynamicDestinations class to write ProtoRows directly

Posted by "ahmedabu98 (via GitHub)" <gi...@apache.org>.
ahmedabu98 commented on issue #27848:
URL: https://github.com/apache/beam/issues/27848#issuecomment-1673980393

   The PR LGTM and it has adequate unit and integration tests. However, one test case we left uncovered is writing protos directly with an input schema.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature Request]: Implement a StorageApiDynamicDestinations class to write ProtoRows directly [beam]

Posted by "ahmedabu98 (via GitHub)" <gi...@apache.org>.
ahmedabu98 closed issue #27848: [Feature Request]: Implement a StorageApiDynamicDestinations class to write ProtoRows directly
URL: https://github.com/apache/beam/issues/27848


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] reuvenlax commented on issue #27848: [Feature Request]: Implement a StorageApiDynamicDestinations class to write ProtoRows directly

Posted by "reuvenlax (via GitHub)" <gi...@apache.org>.
reuvenlax commented on issue #27848:
URL: https://github.com/apache/beam/issues/27848#issuecomment-1673965480

   this PR has been committed


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] liferoad commented on issue #27848: [Feature Request]: Implement a StorageApiDynamicDestinations class to write ProtoRows directly

Posted by "liferoad (via GitHub)" <gi...@apache.org>.
liferoad commented on issue #27848:
URL: https://github.com/apache/beam/issues/27848#issuecomment-1673975616

   https://github.com/apache/beam/pull/27866 is the PR


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature Request]: Implement a StorageApiDynamicDestinations class to write ProtoRows directly [beam]

Posted by "johnjcasey (via GitHub)" <gi...@apache.org>.
johnjcasey commented on issue #27848:
URL: https://github.com/apache/beam/issues/27848#issuecomment-1789056904

   @ahmedabu98 do we still have work here?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] reuvenlax commented on issue #27848: [Feature Request]: Implement a StorageApiDynamicDestinations class to write ProtoRows directly

Posted by "reuvenlax (via GitHub)" <gi...@apache.org>.
reuvenlax commented on issue #27848:
URL: https://github.com/apache/beam/issues/27848#issuecomment-1666640122

   https://github.com/apache/beam/issues/27848 is a POC PR.
   
   Note that validating from the schema is a bit tricky. We can't simply convert the BQ schema to a proto descriptor and validate it matches, because the mapping is not 1:1. There are multiple valid proto descriptors that might all map to the same BQ schema.
   
   I would be inclined to not implement autoUpdateSchema for now - TableRows are naturally more dynamic, and a better fit for this (though we could in theory use the proto's unknown fieldset).
   
   I would also not implement automatic CDC here. The user can always do it themselves by adding the fields to their proto.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] liferoad commented on issue #27848: [Feature Request]: Implement a StorageApiDynamicDestinations class to write ProtoRows directly

Posted by "liferoad (via GitHub)" <gi...@apache.org>.
liferoad commented on issue #27848:
URL: https://github.com/apache/beam/issues/27848#issuecomment-1673976264

   @ahmedabu98 do we need to close this issue or we need more work to do?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature Request]: Implement a StorageApiDynamicDestinations class to write ProtoRows directly [beam]

Posted by "ahmedabu98 (via GitHub)" <gi...@apache.org>.
ahmedabu98 commented on issue #27848:
URL: https://github.com/apache/beam/issues/27848#issuecomment-1789200298

   We can close it as #27866 was merged


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org