Skip to content

Commit

Permalink
[SPARK-48340][PYTHON] Support TimestampNTZ infer schema miss prefer_t…
Browse files Browse the repository at this point in the history
…imestamp_ntz

### What changes were proposed in this pull request?
Support TimestampNTZ infer schema miss prefer_timestamp_ntz

### Why are the changes needed?
Fix bug

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?

### Was this patch authored or co-authored using generative AI tooling?
No

Closes #46666 from AngersZhuuuu/SPARK-48340.

Authored-by: Angerszhuuuu <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
  • Loading branch information
AngersZhuuuu authored and HyukjinKwon committed May 21, 2024
1 parent 7d6bb74 commit 0a2eb7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/pyspark/sql/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2171,6 +2171,7 @@ def _infer_type(
obj,
infer_dict_as_struct=infer_dict_as_struct,
infer_array_from_first_element=infer_array_from_first_element,
prefer_timestamp_ntz=prefer_timestamp_ntz,
)
except TypeError:
raise PySparkTypeError(
Expand Down

0 comments on commit 0a2eb7c

Please sign in to comment.