Skip to content

Commit e1f7851

Browse files
committed
[SPARK-50692][SQL][FOLLOWUP] Add comments for LPAD and RPAD
### What changes were proposed in this pull request? This PR propose to add comments for `LPAD` and `RPAD`. ### Why are the changes needed? #49325 had added pushdown support for `LPAD` and `RPAD`. But forget the comments. ### Does this PR introduce _any_ user-facing change? 'No'. New feature. ### How was this patch tested? GA. ### Was this patch authored or co-authored using generative AI tooling? 'No'. Closes #49957 from beliefer/SPARK-50692_followup. Authored-by: beliefer <[email protected]> Signed-off-by: beliefer <[email protected]>
1 parent 8423d74 commit e1f7851

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

sql/catalyst/src/main/java/org/apache/spark/sql/connector/expressions/GeneralScalarExpression.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,18 @@
416416
* <li>Since version: 3.4.0</li>
417417
* </ul>
418418
* </li>
419+
* <li>Name: <code>LPAD</code>
420+
* <ul>
421+
* <li>SQL semantic: <code>LPAD(str, len[, pad])</code></li>
422+
* <li>Since version: 4.0.0</li>
423+
* </ul>
424+
* </li>
425+
* <li>Name: <code>RPAD</code>
426+
* <ul>
427+
* <li>SQL semantic: <code>RPAD(str, len[, pad])</code></li>
428+
* <li>Since version: 4.0.0</li>
429+
* </ul>
430+
* </li>
419431
* </ol>
420432
* Note: SQL semantic conforms ANSI standard, so some expressions are not supported when ANSI off,
421433
* including: add, subtract, multiply, divide, remainder, pmod.

0 commit comments

Comments
 (0)