Skip to content

Commit 124a17f

Browse files
committed
[SPARK-50582][PYTHON][FOLLOW-UP] Add quote to functions __all__
### What changes were proposed in this pull request? Add `quote` to functions `__all__` ### Why are the changes needed? so that it will be imported by wildcard import ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? updated test ### Was this patch authored or co-authored using generative AI tooling? no Closes #50671 from zhengruifeng/add_quote. Authored-by: Ruifeng Zheng <ruifengz@apache.org> Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
1 parent d7ce6ef commit 124a17f

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

python/pyspark/sql/functions/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@
153153
"overlay",
154154
"position",
155155
"printf",
156+
"quote",
156157
"randstr",
157158
"regexp_count",
158159
"regexp_extract",

python/pyspark/sql/tests/test_functions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ def test_wildcard_import(self):
112112
"approxCountDistinct", # deprecated
113113
"bitwiseNOT", # deprecated
114114
"countDistinct", # deprecated
115-
"quote", # new function in 4.1
116115
"shiftLeft", # deprecated
117116
"shiftRight", # deprecated
118117
"shiftRightUnsigned", # deprecated

0 commit comments

Comments
 (0)