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

Conversion from Avro GenericRecords to Beam Rows takes too much time

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: dsl-sql, sdk-java-core
    • Labels:
      None

      Description

      While running TPC-DS SQL query 3 on Dataflow with a input dataset of 1TB I noticed the performancew was not good compared with a native version implemented with Raw GenericRecords.

      I enabled profiling and noticed that the performance of the Convert transform that converts Avro GenericRecords into Beam Rows is taking too much time, specially for those records that are relatively simple (not nested recordes / logical types or anything complex).

      There is definitely something odd that can be improved in this transformation.

        Attachments

        1. Screenshot from 2021-05-10 09-55-58.png
          316 kB
          Ismaël Mejía
        2. Screenshot from 2021-05-10 10-04-33.png
          233 kB
          Ismaël Mejía

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              iemejia Ismaël Mejía
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: