cloud-fan commented on code in PR #39133:
URL: https://github.com/apache/spark/pull/39133#discussion_r1063066073
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/unresolved.scala:
##########
@@ -123,16 +117,59 @@ object UnresolvedTableValuedFunction {
def apply(
name: String,
- functionArgs: Seq[Expression],
- outputNames: Seq[String]): UnresolvedTableValuedFunction = {
- UnresolvedTableValuedFunction(Seq(name), functionArgs, outputNames)
+ functionArgs: Seq[Expression]): UnresolvedTableValuedFunction = {
+ UnresolvedTableValuedFunction(Seq(name), functionArgs)
+ }
+
+ def apply(
+ name: FunctionIdentifier,
+ functionArgs: Seq[Expression]): UnresolvedTableValuedFunction = {
+ UnresolvedTableValuedFunction(name.asMultipart, functionArgs)
+ }
+}
+
+/**
+ * A table-valued function with output column aliases, e.g.
+ * {{{
+ * // Assign alias names
+ * select t.a from range(10) t(a);
+ * }}}
+ *
+ * @param name qualified name of the table-valued function
Review Comment:
Is this really a qualified name? It seems this is the user-specified
function name in the original SQL text.
--
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]