Add $file_modified_time column in Iceberg#13082
Conversation
b9c4a00 to
8573440
Compare
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergMetadataColumn.java
Outdated
Show resolved
Hide resolved
plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/BaseIcebergConnectorTest.java
Outdated
Show resolved
Hide resolved
plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/BaseIcebergConnectorTest.java
Outdated
Show resolved
Hide resolved
8573440 to
4969f32
Compare
phd3
left a comment
There was a problem hiding this comment.
thanks @ebyhr, could you please help understand the purpose of this change? If someone wants to look at records at a particular point of time, can't they just use AS OF syntax?
If the goal is to expose low-level file-status info for every record for debugging, are we planning to also add other stuff in FileStatus?
There was a problem hiding this comment.
IMO an example with inequality based filtering would be more practical, but nbd
phd3
left a comment
There was a problem hiding this comment.
If we're specifically adding this for OPTIMIZE, would it make more sense to provide as an executeProperty rather than an explicit virtual column? however, this seems reasonable from the consistency perspective with delta and hive connector.
There was a problem hiding this comment.
can we file an issue in iceberg repo and link it here (may be add a comment too) for standardizing on the IDs for this metadata column so that we don't forget? would be good to get a general consensus in the iceberg community before merging this
4969f32 to
af0d153
Compare
There was a problem hiding this comment.
Should the zone be configurable or should it be UTC? I think in Delta we do UTC
There was a problem hiding this comment.
While it's exactly UTC in Delta, Hive connector uses DateTimeZone.getDefault().
@findepi Do you have any opinion?
There was a problem hiding this comment.
There was a problem hiding this comment.
Thanks for sharing the context. Changed to UTC.
af0d153 to
d51dad5
Compare
|
Just rebased on upstream to resolve conflicts. |
d51dad5 to
cfdd614
Compare
aca6d70 to
2c86a9a
Compare
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergPageSourceProvider.java
Outdated
Show resolved
Hide resolved
2d4aafb to
ed4fcc6
Compare
ed4fcc6 to
1b4d0cb
Compare
Description
Add
$file_modified_timecolumn in IcebergDocumentation
(x) Sufficient documentation is included in this PR.
Release notes
(x) Release notes entries required with the following suggested text: