jayzhan211 commented on code in PR #10510:
URL: https://github.com/apache/datafusion/pull/10510#discussion_r1600797390


##########
datafusion/expr/src/interval_arithmetic.rs:
##########
@@ -1640,9 +1693,12 @@ impl NullableInterval {
                         datatype: DataType::Boolean,
                     })
                 } else {
-                    Ok(Self::Null {
-                        datatype: self.data_type(),
-                    })
+                    match self.data_type() {
+                        Some(datatype) => Ok(Self::Null { datatype }),
+                        None => Err(DataFusionError::NotImplemented(

Review Comment:
   You can use not_impl_err! macro



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