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

BigQueryUtils toBeamRow to support the bytes type

Details

    • Improvement
    • Status: Resolved
    • P3
    • Resolution: Won't Fix
    • 2.16.0
    • Not applicable
    • io-java-gcp
    • None

    Description

      The BigQueryUtils toBeamRow implementation doesn't currently support the Avro/Beam bytes type via the convertAvroFormat method: https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryUtils.java#L558. A simple implementation which casts the Avro value to a ByteBuffer instance and returns the underlying byte array should suffice.

      Attachments

        Issue Links

          Activity

            People

              Ryan Berti Ryan Berti
              Ryan Berti Ryan Berti
              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 - 1h
                  1h