Dandandan commented on code in PR #6982:
URL: https://github.com/apache/arrow-datafusion/pull/6982#discussion_r1268655821
##########
datafusion/common/src/scalar.rs:
##########
@@ -3496,6 +3496,22 @@ impl ScalarValue {
.map(|sv| sv.size() - std::mem::size_of_val(sv))
.sum::<usize>()
}
+
+ /// This function returns the next/previous value depending on the `DIR`
value.
+ /// If `true`, it returns the next value; otherwise it returns the
previous value.
+ pub fn next_value<const DIR: bool>(self) -> ScalarValue {
Review Comment:
Should we add this to the public api of `ScalarValue` Seems quite specific
for the usage, so it might be better to add it to the interval module
--
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]