ZENOTME commented on code in PR #79: URL: https://github.com/apache/iceberg-rust/pull/79#discussion_r1419902834
########## crates/iceberg/src/spec/transform.rs: ########## @@ -126,17 +126,20 @@ pub enum Transform { impl Transform { /// Get the return type of transform given the input type. /// Returns `None` if it can't be transformed. - pub fn result_type(&self, input_type: &Type) -> Option<Type> { + pub fn result_type(&self, input_type: &Type) -> Result<Type> { Review Comment: The None case is the case which is not support in iceberg.🤔 Why not treat it as a error. ########## crates/iceberg/src/spec/transform.rs: ########## @@ -126,17 +126,20 @@ pub enum Transform { impl Transform { /// Get the return type of transform given the input type. /// Returns `None` if it can't be transformed. - pub fn result_type(&self, input_type: &Type) -> Option<Type> { + pub fn result_type(&self, input_type: &Type) -> Result<Type> { Review Comment: The None case is the case which is not support in iceberg.🤔 Why not treat it as a error. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org