From a1cc597926c22bc9c57ce7946ef427d51f55530f Mon Sep 17 00:00:00 2001 From: candiduslynx Date: Tue, 1 Aug 2023 16:01:47 +0300 Subject: [PATCH] check approx record eq with unordered map keys before generating diff --- plugin/diff.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/diff.go b/plugin/diff.go index a5e532a9fe..de78e97013 100644 --- a/plugin/diff.go +++ b/plugin/diff.go @@ -9,6 +9,9 @@ import ( ) func RecordDiff(l, r arrow.Record) string { + if array.RecordApproxEqual(l, r, array.WithUnorderedMapKeys(true)) { + return "" + } var sb strings.Builder if l.NumCols() != r.NumCols() { return fmt.Sprintf("different number of columns: %d vs %d", l.NumCols(), r.NumCols())