Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-44731][PYTHON][CONNECT] Make TimestampNTZ works with literals in Python Spark Connect #42445

Closed
wants to merge 2 commits into from

Conversation

HyukjinKwon
Copy link
Member

What changes were proposed in this pull request?

This PR proposes:

  • Share the namespaces for to_timestamp_ntz, to_timestamp_ltz and to_unix_timestamp in Spark Connect. They were missed.
  • Adds the support of TimestampNTZ for literal handling in Python Spark Connect (by respecting spark.sql.timestampType).

Why are the changes needed?

For feature parity, and respect timestamp ntz in resampling in pandas API on Spark

Does this PR introduce any user-facing change?

Yes, this virtually fixes the same bug: #42392 in Spark Connect with Python.

How was this patch tested?

Unittests reenabled.

@HyukjinKwon
Copy link
Member Author

zhengruifeng pushed a commit that referenced this pull request Aug 11, 2023
…in Python Spark Connect

### What changes were proposed in this pull request?

This PR proposes:
- Share the namespaces for `to_timestamp_ntz`, `to_timestamp_ltz` and `to_unix_timestamp` in Spark Connect. They were missed.
- Adds the support of `TimestampNTZ` for literal handling in Python Spark Connect (by respecting `spark.sql.timestampType`).

### Why are the changes needed?

For feature parity, and respect timestamp ntz in resampling in pandas API on Spark

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

Yes, this virtually fixes the same bug: #42392 in Spark Connect with Python.

### How was this patch tested?

Unittests reenabled.

Closes #42445 from HyukjinKwon/SPARK-44731.

Authored-by: Hyukjin Kwon <gurwls223@apache.org>
Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
(cherry picked from commit 73b0376)
Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
@zhengruifeng
Copy link
Contributor

merged to master and branch-3.5

hvanhovell pushed a commit to hvanhovell/spark that referenced this pull request Aug 13, 2023
…in Python Spark Connect

### What changes were proposed in this pull request?

This PR proposes:
- Share the namespaces for `to_timestamp_ntz`, `to_timestamp_ltz` and `to_unix_timestamp` in Spark Connect. They were missed.
- Adds the support of `TimestampNTZ` for literal handling in Python Spark Connect (by respecting `spark.sql.timestampType`).

### Why are the changes needed?

For feature parity, and respect timestamp ntz in resampling in pandas API on Spark

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

Yes, this virtually fixes the same bug: apache#42392 in Spark Connect with Python.

### How was this patch tested?

Unittests reenabled.

Closes apache#42445 from HyukjinKwon/SPARK-44731.

Authored-by: Hyukjin Kwon <gurwls223@apache.org>
Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
valentinp17 pushed a commit to valentinp17/spark that referenced this pull request Aug 24, 2023
…in Python Spark Connect

### What changes were proposed in this pull request?

This PR proposes:
- Share the namespaces for `to_timestamp_ntz`, `to_timestamp_ltz` and `to_unix_timestamp` in Spark Connect. They were missed.
- Adds the support of `TimestampNTZ` for literal handling in Python Spark Connect (by respecting `spark.sql.timestampType`).

### Why are the changes needed?

For feature parity, and respect timestamp ntz in resampling in pandas API on Spark

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

Yes, this virtually fixes the same bug: apache#42392 in Spark Connect with Python.

### How was this patch tested?

Unittests reenabled.

Closes apache#42445 from HyukjinKwon/SPARK-44731.

Authored-by: Hyukjin Kwon <gurwls223@apache.org>
Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
@HyukjinKwon HyukjinKwon deleted the SPARK-44731 branch January 15, 2024 00:48
ragnarok56 pushed a commit to ragnarok56/spark that referenced this pull request Mar 2, 2024
…in Python Spark Connect

### What changes were proposed in this pull request?

This PR proposes:
- Share the namespaces for `to_timestamp_ntz`, `to_timestamp_ltz` and `to_unix_timestamp` in Spark Connect. They were missed.
- Adds the support of `TimestampNTZ` for literal handling in Python Spark Connect (by respecting `spark.sql.timestampType`).

### Why are the changes needed?

For feature parity, and respect timestamp ntz in resampling in pandas API on Spark

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

Yes, this virtually fixes the same bug: apache#42392 in Spark Connect with Python.

### How was this patch tested?

Unittests reenabled.

Closes apache#42445 from HyukjinKwon/SPARK-44731.

Authored-by: Hyukjin Kwon <gurwls223@apache.org>
Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants