mirror of https://github.com/milvus-io/milvus.git
16 lines
322 B
Go
16 lines
322 B
Go
package planparserv2
|
|
|
|
import (
|
|
"reflect"
|
|
|
|
"github.com/milvus-io/milvus/internal/proto/planpb"
|
|
)
|
|
|
|
// CheckIdentical check if two exprs are identical.
|
|
func CheckIdentical(expr, other *planpb.Expr) bool {
|
|
v := NewShowExprVisitor()
|
|
js1 := v.VisitExpr(expr)
|
|
js2 := v.VisitExpr(other)
|
|
return reflect.DeepEqual(js1, js2)
|
|
}
|