-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Document casting timestamp_tz column to a date as part of Iceberg optimize #12943 #18745
Document casting timestamp_tz column to a date as part of Iceberg optimize #12943 #18745
Conversation
Please fix the commit title and squash commits into one. |
2e41c32
to
1591437
Compare
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Ankan Ghosh.
|
1591437
to
826e84b
Compare
826e84b
to
f799269
Compare
ce89dcb
to
f96555d
Compare
@@ -593,6 +593,15 @@ ALTER TABLE test_partitioned_table EXECUTE optimize | |||
WHERE partition_key = 1 | |||
``` | |||
|
|||
``optimize`` can also be used with ``WHERE`` clause with partitioned base |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``optimize`` can also be used with ``WHERE`` clause with partitioned base | |
You can use a more complex ``WHERE`` to narrow down the scope of the ``optimize`` procedure. The following example casts the data to a date and uses a comparison to only optimize partitions with data from the year 2022 or newer: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
casts the data to a date
@mosabua Is it a typo of "casts the timestamp to a date"?
1dbc7ad
to
d7a103e
Compare
@Ankan0011 Please fix the commit title. |
Please fix the PR description as |
d7a103e
to
deddc44
Compare
deddc44
to
54b984d
Compare
54b984d
to
97e7701
Compare
@ebyhr I updated the text, source formatting, and commit message now. Imho this is ready to go now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated and this is good to go now.
@Ankan0011 please have a look |
97e7701
to
0ffdde1
Compare
0ffdde1
to
8301baa
Compare
8301baa
to
8e96b24
Compare
This pull request has gone a while without any activity. Tagging the Trino developer relations team: @bitsondatadev @colebow @mosabua |
@Ankan0011 can you move the text to the included fragment file as requested please? |
8e96b24
to
35c90a5
Compare
@mosabua Can you check if I have placed the changes in the right fragment ? |
f0c50df
to
6df8a54
Compare
- Shows casting timestamp_tz column values to dates - And using value for condition
6df8a54
to
3148f8a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now.
Description
Documentation for support Iceberg OPTIMIZE with WHERE casting timestamp_tz column to a date.
Additional context and related issues
Fixes #12943
Release notes
(X) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text: