You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "candiduslynx (via GitHub)" <gi...@apache.org> on 2023/05/31 15:27:56 UTC

[GitHub] [arrow] candiduslynx commented on a diff in pull request #35823: GH-35828: [Go] Add `array.WithUnorderedMapKeys` option for `array.ApproxEqual`

candiduslynx commented on code in PR #35823:
URL: https://github.com/apache/arrow/pull/35823#discussion_r1211905458


##########
go/arrow/array/compare.go:
##########
@@ -450,6 +451,13 @@ func WithAbsTolerance(atol float64) EqualOption {
 	}
 }
 
+// WithUnorderedMapKeys configures the comparison functions so that Map with different entries order are considered equal.
+func WithUnorderedMapKeys(v bool) EqualOption {
+	return func(o *equalOption) {
+		o.unorderedMapKeys = v
+	}
+}

Review Comment:
   Nope (as it's stated in the `KeysSorted` doc -- it's only for the user private purposes, it's not used in the comparison (and this would definitely become a breaking change if we use that).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org