Skip to content

Commit 1f04bb6

Browse files
ueshinzhengruifeng
authored andcommitted
[SPARK-43759][SQL][PYTHON] Expose TimestampNTZType in pyspark.sql.types
### What changes were proposed in this pull request? Exposes `TimestampNTZType` in `pyspark.sql.types`. ```py >>> from pyspark.sql.types import * >>> >>> TimestampNTZType() TimestampNTZType() ``` ### Why are the changes needed? `TimestampNTZType` is missing in `_all_` list in `pyspark.sql.types`. ```py >>> from pyspark.sql.types import * >>> >>> TimestampNTZType() Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'TimestampNTZType' is not defined ``` ### Does this PR introduce _any_ user-facing change? Users won't need to explicitly import `TimestampNTZType` but wildcard will work. ### How was this patch tested? Existing tests. Closes apache#41286 from ueshin/issues/SPARK-43759/timestamp_ntz. Authored-by: Takuya UESHIN <[email protected]> Signed-off-by: Ruifeng Zheng <[email protected]>
1 parent a72d1aa commit 1f04bb6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/pyspark/sql/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"BooleanType",
6969
"DateType",
7070
"TimestampType",
71+
"TimestampNTZType",
7172
"DecimalType",
7273
"DoubleType",
7374
"FloatType",

0 commit comments

Comments
 (0)