JingWei Li created FLINK-39548:
----------------------------------
Summary: CommonExecTableSourceScan uses physical row type instead
of output type for upsert source key partitioning
Key: FLINK-39548
URL: https://issues.apache.org/jira/browse/FLINK-39548
Project: Flink
Issue Type: Bug
Components: Table SQL / Planner
Reporter: JingWei Li
• When CommonExecTableSourceScan wraps an upsert/changelog source with
configured parallelism, it derives primary-key indices from the
physical row type.
• If the source output is projected/reordered before the partitioning
wrapper is created, those indices no longer match the actual output
schema.
• This causes the generated source partitioning key selector to use wrong
fields.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)