any(nil) is not equal to nil, should cast it as its original type #57326
Labels
planner/cascades
issue/enhance/bug related to yams
severity/minor
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
when we pass
var s *Column = nil
into as other with type any here, we found it doesn't equal to nil anymore, unless we downcast it with*Column
type before equaling with nil1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
as mentioned
suggestion way
3. What did you see instead (Required)
as mentioned
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered: