ORC-1884: [C++] Add a maybe() API to the SearchArgumentBuilder
What changes were proposed in this pull request?
Add a maybe() API to the SearchArgumentBuilder to allow the insertion of an expression tree that is currently unsupported.
Why are the changes needed?
To enhance the SearchArgumentBuilder API with a new method called maybe(), we can create a SearchArgument tree for scenarios that may not be adequately addressed by existing methods.
How was this patch tested?
Uts in TestSearchArgument.cc can cover this patch.
Was this patch authored or co-authored using generative AI tooling?
NO
Is maybe() a shortcut of literal(TruthValue::YES_NO_NULL)?
Is
maybe()a shortcut ofliteral(TruthValue::YES_NO_NULL)? Yes, maybe() can be considered a shortcut for literal(TruthValue::YES_NO_NULL). It provides a more concise way to express uncertainty or ambiguity in truth values.
Hi, Yuanping (@ffacs), if you think it's okay, you can merge this. Feel free to merge this PR because I removed my review here. 😄
Let me merge this.
Thank you, @luffy-zh and all.