dtenedor commented on PR #37255: URL: https://github.com/apache/spark/pull/37255#issuecomment-1193183796
Update on this: it turns out that UDF definitions are not present in the separate built-in function analyzer that we currently use for resolving columns DEFAULT expressions. Therefore the new unit test added in this PR returns `"Failed to execute CREATE TABLE command because the destination table column a has a DEFAULT value of udf(42) which fails to resolve as a valid expression: Undefined function: udf. This function is neither a built-in/temporary function, nor a persistent function that is qualified as spark_catalog.default.udf.` It looks like no extra work is needed to ban UDF calls in DEFAULT expressions for now. I am closing this PR. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
