ozankabak commented on code in PR #8276:
URL: https://github.com/apache/arrow-datafusion/pull/8276#discussion_r1400092868
##########
datafusion/optimizer/src/simplify_expressions/expr_simplifier.rs:
##########
@@ -3281,7 +3279,7 @@ mod tests {
(
col("c3"),
NullableInterval::NotNull {
- values: Interval::make(Some(0_i64), Some(2_i64), (false,
false)),
+ values: Interval::make(Some(0_i64), Some(2_i64)).unwrap(),
Review Comment:
`make` is a utility function for use in tests only. Using `try_new` in test
functions balloons the line count 🙂 I am adding a comment in the docstring to
make this clear.
##########
datafusion/optimizer/src/simplify_expressions/expr_simplifier.rs:
##########
@@ -3281,7 +3279,7 @@ mod tests {
(
col("c3"),
NullableInterval::NotNull {
- values: Interval::make(Some(0_i64), Some(2_i64), (false,
false)),
+ values: Interval::make(Some(0_i64), Some(2_i64)).unwrap(),
Review Comment:
`make` is a utility function for use in tests only. Using `try_new` in test
functions balloons the line count 🙂 I am adding a comment in the docstring to
make this clear.
--
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]