Skip to content

Commit 2a3d5ce

Browse files
committed
[SPARK-31474][SQL][FOLLOWUP] Replace _FUNC_ placeholder with function name in the note field of expression info
1 parent 4970249 commit 2a3d5ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/ExpressionDescription.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@
7979
* </code>
8080
* </pre>
8181
*
82-
* We can refer the function name by `_FUNC_`, in `usage()`, `arguments()` and `examples()` as
83-
* it is registered in `FunctionRegistry`.
82+
* We can refer the function name by `_FUNC_`, in `usage()`, `arguments()`, `examples()` and
83+
* `note()` as it is registered in `FunctionRegistry`.
8484
*
8585
* Note that, if `extended()` is defined, `arguments()`, `examples()`, `note()`, `group()`,
8686
* `since()` and `deprecated()` should be not defined together. `extended()` exists

sql/gen-sql-api-docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _list_function_infos(jvm):
4343
usage=usage,
4444
arguments=jinfo.getArguments().replace("_FUNC_", name),
4545
examples=jinfo.getExamples().replace("_FUNC_", name),
46-
note=jinfo.getNote(),
46+
note=jinfo.getNote().replace("_FUNC_", name),
4747
since=jinfo.getSince(),
4848
deprecated=jinfo.getDeprecated()))
4949
return sorted(infos, key=lambda i: i.name)

0 commit comments

Comments
 (0)