This is an automated email from the ASF dual-hosted git repository.
godfrey pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
from 68ec91bdc3b [hotfix][tests] Update job name
new dbcd2d7b86f [FLINK-28569][table-planner] Add projectRowType to
RowTypeUtils and deprecate AggCodeGenHelper#projectRowType
new 7df115c016c [FLINK-28569][table-planner] Move non-deterministic test
functions to userDefinedScalarFunctions
new bff1fc2782e [FLINK-28569][table-planner] Fix SinkUpsertMaterializer
that should be aware of the input upsertKey if it is not empty to prevent wrong
results
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../plan/nodes/exec/batch/BatchExecSink.java | 3 +-
.../plan/nodes/exec/common/CommonExecSink.java | 25 +++-
.../plan/nodes/exec/stream/StreamExecSink.java | 12 +-
.../table/planner/plan/utils/UpsertKeyUtil.java | 66 +++++++++
.../table/planner/typeutils/RowTypeUtils.java | 35 +++++
.../codegen/agg/batch/AggCodeGenHelper.scala | 4 -
.../codegen/agg/batch/HashAggCodeGenerator.scala | 3 +-
.../codegen/agg/batch/SortAggCodeGenerator.scala | 3 +-
.../codegen/agg/batch/WindowCodeGenerator.scala | 3 +-
.../nodes/physical/stream/StreamPhysicalSink.scala | 10 +-
.../nodes/exec/stream/TableSinkJsonPlanTest.java | 36 +++++
.../planner/plan/utils/UpsertKeyUtilTest.java | 52 ++++++++
.../utils/JavaUserDefinedScalarFunctions.java | 4 +
.../table/planner/typeutils/RowTypeUtilsTest.java | 46 +++++++
.../testChangelogSource.out | 1 +
.../testUpsertSource.out | 1 +
.../testDeduplication.out | 1 +
.../ExpandJsonPlanTest_jsonplan/testExpand.out | 1 +
...tDistinctAggCalls[isMiniBatchEnabled=false].out | 1 +
...stDistinctAggCalls[isMiniBatchEnabled=true].out | 1 +
...gCallsWithGroupBy[isMiniBatchEnabled=false].out | 1 +
...ggCallsWithGroupBy[isMiniBatchEnabled=true].out | 1 +
...erDefinedAggCalls[isMiniBatchEnabled=false].out | 1 +
...serDefinedAggCalls[isMiniBatchEnabled=true].out | 1 +
.../testEventTimeTumbleWindow.out | 1 +
.../testProcTimeTumbleWindow.out | 1 +
.../testIncrementalAggregate.out | 1 +
...lAggregateWithSumCountDistinctAndRetraction.out | 1 +
.../testInnerJoinWithEqualPk.out | 1 +
...WithNonDeterministicFuncSinkWithDifferentPk.out | 147 +++++++++++++++++++++
.../utils/userDefinedScalarFunctions.scala | 53 +++++++-
.../plan/stream/sql/NonDeterministicDagTest.scala | 64 +--------
.../runtime/stream/sql/TableSinkITCase.scala | 62 +++++++++
.../operators/sink/SinkUpsertMaterializer.java | 125 +++++++++++++-----
.../operators/sink/SinkUpsertMaterializerTest.java | 102 +++++++++++---
35 files changed, 746 insertions(+), 124 deletions(-)
create mode 100644
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/utils/UpsertKeyUtil.java
create mode 100644
flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/plan/utils/UpsertKeyUtilTest.java
create mode 100644
flink-table/flink-table-planner/src/test/resources/org/apache/flink/table/planner/plan/nodes/exec/stream/TableSinkJsonPlanTest_jsonplan/testCdcWithNonDeterministicFuncSinkWithDifferentPk.out