[
https://issues.apache.org/jira/browse/FLINK-23072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18152932#comment-18152932
]
Martijn Visser commented on FLINK-23072:
----------------------------------------
I'm picking this up. One field per logical type in a single row wouldn't catch
much: most types
share a writer path, binary rows skip the field writers entirely, and a wide
row dilutes a
regression in one field below what the nightly regression check alerts on.
Instead I measured
which serializer paths SQL jobs hit per record and benchmark those: copies
between chained
operators, serialization of non-binary rows (split into fixed-length,
variable-length and nested
fields), binary and paged round trips, and ExternalSerializer for Row and POJO.
That's eight
nightly charts. A per-type matrix goes into the non-nightly set, with a test
that fails when a new
logical type has no case.
The serializers are internal API, so following the flink-benchmarks README the
benchmark code goes
into the flink-table-runtime test sources, with thin executors in
flink-benchmarks.
> Add benchmarks for SQL internal and external serializers
> --------------------------------------------------------
>
> Key: FLINK-23072
> URL: https://issues.apache.org/jira/browse/FLINK-23072
> Project: Flink
> Issue Type: Improvement
> Components: Benchmarks, Table SQL / Runtime
> Reporter: Timo Walther
> Assignee: Martijn Visser
> Priority: Major
> Labels: auto-deprioritized-major, auto-deprioritized-minor
>
> Currently, we don't benchmark any of the serializers of the SQL layer.
> We should test {{RowData}} with at least a field of each logical type.
> Also {{ExternalTypeInfo}} might be interesting to monitor because it is used
> between Table API and DataStream API.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)