flink icon indicating copy to clipboard operation
flink copied to clipboard

[FLINK-38791][table] Add support for `ALTER MATERIALIZED TABLE MODIFY`

Open snuyanzin opened this issue 2 weeks ago • 1 comments

What is the purpose of the change

The next part of FLIP-550 which adds support for ALTER MATERIALIZED TABLE MODIFY in way like

ALTER MATERIALIZED TABLE myMaterializedTable MODIFY c1 AS current_timestamp COMMENT 'new_column docs';

and

ALTER MATERIALIZED TABLE myMaterializedTable MODIFY (
     ts AS current_timestamp FIRST,
     col_meta INT METADATA FROM 'mk1' VIRTUAL AFTER col_b,
     PRIMARY KEY (id) NOT ENFORCED,
     WATERMARK FOR ts AS ts - INTERVAL '3' SECOND
);

Brief change log

parser and converters

Verifying this change

parser and converter's test added

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
  • The serializers: (no)
  • The runtime per-record code paths (performance sensitive): (no)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no)
  • The S3 file system connector: (no)

Documentation

  • Does this pull request introduce a new feature? (no, there will be a separate PR for docs)
  • If yes, how is the feature documented? (not applicable)

snuyanzin avatar Dec 08 '25 09:12 snuyanzin

CI report:

  • 8a0ef6b062af2c2bb741cd836edddf04031ae7c2 Azure: SUCCESS
Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

flinkbot avatar Dec 08 '25 09:12 flinkbot

@flinkbot run azure

snuyanzin avatar Dec 15 '25 19:12 snuyanzin