shihchengwei-lab commented on PR #30075:
URL: https://github.com/apache/flink/pull/30075#issuecomment-7132120995
I found a remaining reorder case in the column-list path at `4c50ee78`. In a
focused `MaterializedTableTableApiITCase`, the existing table stored `[a, b]`,
both `BIGINT`. I kept its original refresh job running with an empty source,
then altered it using one source row with `order_id=9`, `user_id=101`, and
`shop_id=202`:
```sql
CREATE OR ALTER MATERIALIZED TABLE users_shops (x BIGINT, y BIGINT)
WITH ('connector' = 'values', 'sink-insert-only' = 'false')
AS SELECT shop_id AS x, shop_id + 1 AS b,
order_id AS y, user_id AS a
FROM my_source;
```
This puts the existing columns in `[b, a]` order. The alter succeeded and
the refresh wrote `[202, 203, 9, 101]`, but the catalog stored `[b, x, y, a]`.
Under that schema, the row has `b=202` and `x=203`, while the query produced
`b=203` and `x=202`.
Could `validateChanges()` reject this reorder before starting the new
refresh job? I ran the integration test on the PR commit only. From the base
commit’s declared-schema branch, this appears to be a case the fix has not yet
covered.
*Disclosure: AI assisted with the review and test preparation.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]