m09526 commented on code in PR #15859:
URL: https://github.com/apache/datafusion/pull/15859#discussion_r2060372212


##########
datafusion/expr-common/src/interval_arithmetic.rs:
##########
@@ -286,6 +286,11 @@ impl Interval {
         }
     }
 
+    /// Create a new `Interval` with the same lower and upper bounds.
+    pub fn try_singleton(value: ScalarValue) -> Self {

Review Comment:
   Another idiomatic possibility would be to implement `From<ScalarValue>` for 
`Interval`.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to