Zouxxyy opened a new pull request, #6215:
URL: https://github.com/apache/paimon/pull/6215
<!-- Please specify the module before the PR name: [core] ... or [flink] ...
-->
### Purpose
```sql
WITH tmp_view AS (
SELECT udf_add2(a, b) AS c1 FROM t
)
SELECT * FROM tmp_view
```
exception
```
[UNRESOLVED_ROUTINE] Cannot resolve function `udf_add2` on search path
[`system`.`builtin`, `system`.`session`, `paimon`.`test`].; line 3 pos 9
org.apache.spark.sql.AnalysisException: [UNRESOLVED_ROUTINE] Cannot resolve
function `udf_add2` on search path [`system`.`builtin`, `system`.`session`,
`paimon`.`test`].; line 3 pos 9
at
org.apache.spark.sql.errors.QueryCompilationErrors$.unresolvedRoutineError(QueryCompilationErrors.scala:657)
at
org.apache.spark.sql.catalyst.analysis.Analyzer$LookupFunctions$$anonfun$apply$20.applyOrElse(Analyzer.scala:2055)
at
org.apache.spark.sql.catalyst.analysis.Analyzer$LookupFunctions$$anonfun$apply$20.applyOrElse(Analyzer.scala:2038)
```
### Tests
<!-- List UT and IT cases to verify this change -->
### API and Format
<!-- Does this change affect API or storage format -->
### Documentation
<!-- Does this change introduce a new feature -->
--
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]