mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 21:09:06 +08:00
98ceb162aa
Signed-off-by: dragondriver <jiquan.long@zilliz.com> Co-authored-by: xaxys <tpnnghd@163.com> Co-authored-by: xaxys <tpnnghd@163.com>
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)
|
|
}
|