duongcongtoai commented on code in PR #10657: URL: https://github.com/apache/datafusion/pull/10657#discussion_r1613955127
########## datafusion/sql/src/utils.rs: ########## @@ -311,7 +311,7 @@ pub(crate) fn recursive_transform_unnest( tnr: _, } = original_expr.transform_up(|expr: Expr| { if let Expr::Unnest(Unnest { expr: ref arg }) = expr { - let (data_type, _) = expr.data_type_and_nullable(input.schema())?; + let (data_type, _) = arg.data_type_and_nullable(input.schema())?; Review Comment: validation should happen for expr inside unnest, not the unnest expr itself -- 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