Skip to content

Commit 1163cd9

Browse files
committed
cover new behavior
1 parent 4f2ec85 commit 1163cd9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/snowflake/snowpark/functions.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -355,16 +355,16 @@ def lit(
355355
Example::
356356
357357
>>> import datetime
358-
>>> columns = [lit(1), lit("1"), lit(1.0), lit(True), lit(b'snow'), lit(datetime.date(2023, 2, 2)), lit([1, 2]), lit({"snow": "flake"})]
358+
>>> columns = [lit(1), lit("1"), lit(1.0), lit(True), lit(b'snow'), lit(datetime.date(2023, 2, 2)), lit([1, 2]), lit({"snow": "flake"}), lit(lit(1))]
359359
>>> session.create_dataframe([[]]).select([c.as_(str(i)) for i, c in enumerate(columns)]).show()
360-
---------------------------------------------------------------------------------------
361-
|"0" |"1" |"2" |"3" |"4" |"5" |"6" |"7" |
362-
---------------------------------------------------------------------------------------
363-
|1 |1 |1.0 |True |bytearray(b'snow') |2023-02-02 |[ |{ |
364-
| | | | | | | 1, | "snow": "flake" |
365-
| | | | | | | 2 |} |
366-
| | | | | | |] | |
367-
---------------------------------------------------------------------------------------
360+
---------------------------------------------------------------------------------------------
361+
|"0" |"1" |"2" |"3" |"4" |"5" |"6" |"7" |"8" |
362+
---------------------------------------------------------------------------------------------
363+
|1 |1 |1.0 |True |bytearray(b'snow') |2023-02-02 |[ |{ |1 |
364+
| | | | | | | 1, | "snow": "flake" | |
365+
| | | | | | | 2 |} | |
366+
| | | | | | |] | | |
367+
---------------------------------------------------------------------------------------------
368368
<BLANKLINE>
369369
"""
370370

0 commit comments

Comments
 (0)