v.20.9Improvement
Implicitly Convert Primary Key to Not Null in MaterializeMySQL
Implicitly convert primary key to not null inMaterializeMySQL(Same asMySQL). Fixes #14114. #14397 (Winter Zhang).
Why it matters
This feature ensures that primary key columns imported viaMaterializeMySQL are treated as NOT NULL, matching the behavior of native MySQL databases. It eliminates inconsistencies and prevents potential bugs caused by nullable primary keys, improving data integrity and query reliability.How to use it
No explicit action is required from the user. When using theMaterializeMySQL table engine to replicate MySQL tables, primary key columns will automatically be converted to NOT NULL. Simply create or reload MaterializeMySQL tables to benefit from this fix.