icexelloss commented on code in PR #13880:
URL: https://github.com/apache/arrow/pull/13880#discussion_r958662564
##########
cpp/src/arrow/compute/exec/options.h:
##########
@@ -397,23 +397,33 @@ class ARROW_EXPORT HashJoinNodeOptions : public
ExecNodeOptions {
/// This node will output one row for each row in the left table.
class ARROW_EXPORT AsofJoinNodeOptions : public ExecNodeOptions {
public:
- AsofJoinNodeOptions(FieldRef on_key, FieldRef by_key, int64_t tolerance)
- : on_key(std::move(on_key)), by_key(std::move(by_key)),
tolerance(tolerance) {}
+ AsofJoinNodeOptions(FieldRef on_key, const FieldRef& by_key, int64_t
tolerance)
+ : on_key(std::move(on_key)), by_key(), tolerance(tolerance) {
+ this->by_key.push_back(std::move(by_key));
+ }
+
+ AsofJoinNodeOptions(FieldRef on_key, std::vector<FieldRef> by_key, int64_t
tolerance)
+ : on_key(std::move(on_key)), by_key(by_key), tolerance(tolerance) {}
+
+ // resolves ambiguity between previous constructors when initializer list is
given
+ AsofJoinNodeOptions(FieldRef on_key, std::initializer_list<FieldRef> by_key,
Review Comment:
Yes this is ok to break
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]