Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-12297

PubsubIO support for reading protos from schema

Details

    • New Feature
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • Missing
    • io-java-gcp
    • None

    Description

      We're trying to add a Dataflow template for Pubsub -> BigQuery where the Pubsub topic contains serialized proto data. This is similar to our existing template for Pubsub -> BigQuery using Avro.

      However, it seems the PubsubIO currently only supports protos where the class is known.[1] We'll need something similar to the generic Avro reader[2].

       

      [1] https://github.com/apache/beam/blob/243128a8fc52798e1b58b0cf1a271d95ee7aa241/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/pubsub/PubsubIO.java#L478

      [2] https://github.com/apache/beam/blob/243128a8fc52798e1b58b0cf1a271d95ee7aa241/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/pubsub/PubsubIO.java#L515

       

      Attachments

        Issue Links

          Activity

            People

              zhoufek Zachary Houfek
              zhoufek Zachary Houfek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3.5h
                  3.5h