Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-35805][transform] Add __data_event_type__ metadata column #3468

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

yuxiqian
Copy link
Contributor

@yuxiqian yuxiqian commented Jul 10, 2024

This closes FLINK-35805.

Currently, event operation type (insert, update, or delete) was encoded in all DataChangeEvents. However it's not possible to access them in transform blocks since it is not exposed as metadata column. Adding this should allow such transform usages:

transform:
  - projection: \*, __data_event_type__ == '-D' AS logical_delete_tag

Copy link
Contributor

@aiwenmo aiwenmo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions bot added the docs Improvements or additions to documentation label Jul 11, 2024
@yuxiqian yuxiqian changed the title [FLINK-35805][transform] Add __op_type__ metadata column [FLINK-35805][transform] Add __row_kind__ metadata column Jul 11, 2024
@yuxiqian
Copy link
Contributor Author

Rebased with master and cleaned up metadata column definitions for a bit.

@yuxiqian yuxiqian changed the title [FLINK-35805][transform] Add __row_kind__ metadata column [FLINK-35805][transform] Add __data_event_type__ metadata column Aug 13, 2024
Copy link
Contributor

@leonardBang leonardBang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @yuxiqian for the update, LGTM

@leonardBang
Copy link
Contributor

CI passed, merging...

@leonardBang leonardBang merged commit 3cb91fb into apache:master Aug 13, 2024
22 checks passed
qiaozongmi pushed a commit to qiaozongmi/flink-cdc that referenced this pull request Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved composer docs Improvements or additions to documentation e2e-tests reviewed runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants