Commit 1f04bb6
[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
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
0 commit comments