Skip to content

Commit

Permalink
fix doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-aalam authored and sfc-gh-aling committed Dec 5, 2024
1 parent bf4641f commit 541833b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/snowflake/snowpark/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3414,7 +3414,7 @@ def _concat_ws_ignore_nulls(sep: str, *cols: ColumnOrName) -> Column:
... [None, None, None],
... ['Hello', None, None],
... ], schema=['a', 'b', 'c'])
>>> df.select(concat_ws_ignore_nulls(',', df.a, df.b, df.c)).show()
>>> df.select(_concat_ws_ignore_nulls(',', df.a, df.b, df.c)).show()
----------------------------------------------------
|"CONCAT_WS_IGNORE_NULLS(',', ""A"",""B"",""C"")" |
----------------------------------------------------
Expand All @@ -3425,7 +3425,7 @@ def _concat_ws_ignore_nulls(sep: str, *cols: ColumnOrName) -> Column:
<BLANKLINE>
"""
# TODO: SNOW-1831917 create ast
columns = [_to_col_if_str(c, "concat_ws_ignore_nulls") for c in cols]
columns = [_to_col_if_str(c, "_concat_ws_ignore_nulls") for c in cols]
names = ",".join([c.get_name() for c in columns])

input_column_array = array_construct_compact(*columns)
Expand Down

0 comments on commit 541833b

Please sign in to comment.