Skip to content

Add binglog system table support for fluss tables #978

@MehulBatra

Description

@MehulBatra

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

If you need to audit the changelog of the table, you can use the binlog system table. In the binlog system table, the update before and the update after will be packed in one row. (Similar to what we have in Paimon)

SELECT * FROM tablename$binlog;


/*
+------------------+----------------------+-----------------------+
|     rowkind      |       column_0       |       column_1        |
+------------------+----------------------+-----------------------+
|        +I        |       [col_0]        |       [col_1]         |
+------------------+----------------------+-----------------------+
|        +U        | [col_0_ub, col_0_ua] | [col_1_ub, col_1_ua]  |
+------------------+----------------------+-----------------------+
|        -D        |       [col_0]        |       [col_1]         |
+------------------+----------------------+-----------------------+
*/

Solution

No response

Anything else?

No response

Willingness to contribute

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions