Dejan Krakovic created SPARK-61303:
--------------------------------------
Summary: Check the FILE return type of all V2 catalog functions
Key: SPARK-61303
URL: https://issues.apache.org/jira/browse/SPARK-61303
Project: Spark
Issue Type: Sub-task
Components: SQL
Affects Versions: 5.0.0
Reporter: Dejan Krakovic
Follow-up of SPARK-60386 (https://github.com/apache/spark/pull/59640).
The query-time check that a user-defined routine declares a plain FILE in its
return type covers V2 catalog functions only when they are bound as an
ApplyFunctionExpression. A function bound through a magic method (StaticInvoke
or Invoke) is not checked. Check BoundFunction.resultType() when the function
is resolved (resolveV2Function), so that all V2 catalog functions are covered.
Review thread: https://github.com/apache/spark/pull/59640#discussion_r4353281762
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]