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


##########
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:
   I think a better name for this function would be just "singleton". Functions 
named `try_*` imply they are fallible and generally return a `Result` type.
   
   



-- 
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-unsubscr...@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to