j1wonpark opened a new pull request, #4083:
URL: https://github.com/apache/amoro/pull/4083

   ## Why are the changes needed?
   
   The "Last Commit Time" column in the table partition view displays incorrect 
dates (year ~58000) instead of the actual commit time.
   
   **Root cause:** The `last_updated_at` column from Iceberg's `PARTITIONS` 
metadata table stores timestamps in **microseconds** since epoch, but the value 
was passed directly to the frontend which expects **milliseconds**. This 1000x 
difference causes `new Date()` to interpret the value as a far-future date.
   
   For example:
   - Actual microsecond value: `1,770,000,000,000,000`
   - Frontend interprets as milliseconds → year ~58,060
   
   Other code paths (e.g., `snapshot.timestampMillis()` used in file list and 
fallback partition scan) correctly return milliseconds, so only the 
`PARTITIONS` metadata table path was affected.
   
   ## Brief change log
   
   - `MixedAndIcebergTableDescriptor#collectPartitionsFromTable`: Divide 
`last_updated_at` by 1000 to convert microseconds to milliseconds before 
setting `lastCommitTime`
   
   ## How was this patch tested?
   
   - [x] Run test locally before making a pull request
   
   ## Documentation
   
   - Does this pull request introduce a new feature? (no)
   - If yes, how is the feature documented? (not applicable)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to