Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tigrulya-exe
Copy link
Member

No description provided.

…external.table.purge' table option is present
@github-actions github-actions bot added the SQL label Jan 23, 2025
@tigrulya-exe tigrulya-exe changed the title [ADH-5569] Force a purge during table/partition drop in case if the 'external.table.purge' table option is present [ADH-5569] (3.5.2) Force a purge during table/partition drop in case if the 'external.table.purge' table option is present Jan 23, 2025
@Asmoday Asmoday merged commit b69d269 into 3.5.2-develop Jan 24, 2025
10 of 12 checks passed
werzerbb pushed a commit that referenced this pull request Aug 14, 2025
…anRelationPushDown

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

Add the timezone information to a cast expression when the destination type requires it.

### Why are the changes needed?

When current_timestamp() is materialized as a string, the timezone information is gone (e.g., 2024-12-27 10:26:27.684158) which prohibits further optimization rules from being applied to the affected data source.

For example,

```
Project [1735900357973433#10 AS current_timestamp()#6]
+- 'Project [cast(2025-01-03 10:32:37.973433#11 as timestamp) AS 1735900357973433#10]
   +- RelationV2[2025-01-03 10:32:37.973433#11] xxx
```

-> This query fails to execute because the injected cast expression lacks the timezone information.

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

No.

### How was this patch tested?

Existing tests.

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

No.

Closes apache#49549 from changgyoopark-db/SPARK-50870.

Authored-by: changgyoopark-db <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
(cherry picked from commit 24abb0f)
Signed-off-by: Wenchen Fan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants