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

Add VisibilityBitmap to TableMapEvent in replication #813

Merged

Commits on Aug 15, 2023

  1. Add VisibilityBitmap to TableMapEvent for MySQL 8.0.23+ Invisible…

    … Columns
    
    Changes:
    - `TableMapEvent.VisibilityBitmap`
    `VisibilityBitmap` is a bitmap where each bit represents the visibility of a corresponding column in a table.
    If a bit is set, it indicates that the corresponding column is NOT an invinsible column.
    Invisible column was introduced in MySQL version 8.0.23.
    
    - `TableMapEvent.VisibilityMap`
    `VisibilityMap` lists boolean values of which is true if column of the same index is NOT an invisible column.
    
    Co-authored-by: sean <[email protected]>
    dongwook-chan and sean-k1 committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    ccabd26 View commit details
    Browse the repository at this point in the history
  2. Refactor bitmap iteration to align with MySQL source code

    Changes:
    - Refactpred `UnsignedMap`
    - Refactored `VisibilityMap`
    
    Suggested by: go-mysql-org#813 (comment)
    dongwook-chan committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    6260982 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2023

  1. Add test for column visibility in table map

    Changes:
    - Added data for MySQL 8.0 only (Only MySQL 8.0.23+ supports invisible columns)
    dongwook-chan committed Aug 19, 2023
    Configuration menu
    Copy the full SHA
    cac73e6 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2023

  1. Add test case 2 for column visibility in table map

    Changes:
    - Add test case 2 where invisible columns does not exists at all
    dongwook-chan committed Aug 20, 2023
    Configuration menu
    Copy the full SHA
    b55ff1d View commit details
    Browse the repository at this point in the history