apache / apache/beam

Conversion from Avro GenericRecords to Beam Rows takes too much time

Open
#20,894 2 comments 0 reactions 0 assignees View on GitHub
core dsl improvement java P2 schemas sql
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

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.

Imported from Jira [BEAM-12328](https://issues.apache.org/jira/browse/BEAM-12328). Original Jira may contain additional context.
Reported by: iemejia.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.