Bug Report: schemadiff
nil dereference error in Online DDL analysis
#17477
Labels
schemadiff
nil dereference error in Online DDL analysis
#17477
Overview of the Issue
schemadiff
(hencevttablet
) will crash withpanic: runtime error: invalid memory address or nil pointer dereference
when doing Online DDL analysis (OnlineDDLMigrationTablesAnalysis()
,PrioritizedUniqueKeys()
) for vrpelication migrations, and where there's an index using an expression (as inKEY idx1 ((id + 1))
). Such indexes are not eligible as iteration keys in the first place, and should be skipped.Reproduction Steps
Migrate a table such as
create table t (id int, primary key (id), key idx1 ((id + 1)))
.Binary Version
Operating System and Environment details
Log Fragments
No response
The text was updated successfully, but these errors were encountered: