Skip to content

Commit e5751ed

Browse files
committed
Added default column names for inline and stack in comments
1 parent 4ed035b commit e5751ed

File tree

1 file changed

+2
-2
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions

1 file changed

+2
-2
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/generators.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ case class UserDefinedGenerator(
128128
* }}}
129129
*/
130130
@ExpressionDescription(
131-
usage = "_FUNC_(n, expr1, ..., exprk) - Separates `expr1`, ..., `exprk` into `n` rows.",
131+
usage = "_FUNC_(n, expr1, ..., exprk) - Separates `expr1`, ..., `exprk` into `n` rows. Uses column names col0, col1, etc. by default unless specified otherwise.",
132132
examples = """
133133
Examples:
134134
> SELECT _FUNC_(2, 1, 2, 3);
@@ -391,7 +391,7 @@ case class PosExplode(child: Expression) extends ExplodeBase {
391391
* Explodes an array of structs into a table.
392392
*/
393393
@ExpressionDescription(
394-
usage = "_FUNC_(expr) - Explodes an array of structs into a table.",
394+
usage = "_FUNC_(expr) - Explodes an array of structs into a table. Uses column names col1, col2, etc. by default unless specified otherwise.",
395395
examples = """
396396
Examples:
397397
> SELECT _FUNC_(array(struct(1, 'a'), struct(2, 'b')));

0 commit comments

Comments
 (0)