Skip to content

Iceberg partition directory name not consistent with Iceberg Java #25961

@PingLiuPing

Description

@PingLiuPing

Describe the problem you faced

create table timestamp(c1 int, c2 TIMESTAMP) with (format='PARQUET', partitioning=ARRAY['c2']);
insert into timestamp values(1, TIMESTAMP '2025-07-11 15:01:00.000');
select * from "timestamp$files";

The file_path is file:/iceberg_data/HIVE/iceberg/timestamp/data/c2=2025-07-11T14%3A01/67960c5e-661a-409a-a319-75a37732514f.parquet

Note that the the partition value has been changed to 2025-07-11T14%3A01 which omits the zero seconds and milli seconds part.

But in Iceberg Java, for example in testTimestampWithoutZoneHumanString we can easily verify this value and the result is 2025-07-11T15:01:00 which keeps the zero seconds part.

We can also verify this on Trino which also keeps the zero seconds part.

  • A clear and concise description of the problem.
  • Was this working before or is this a first try?
  • If this worked before, then what has changed that recently?
  • Provide table DDLs and EXPLAIN ANALYZE for your Presto queries.

Environment Description

  • Presto version used:
  • Storage (HDFS/S3/GCS..):
  • Data source and connectors or catalogs used:
  • Deployment (Cloud or On-prem):
  • Pastebin link to the complete debug logs:

Steps To Reproduce

Steps to reproduce the behavior:
1.
2.
3.
4.

Expected behavior

Additional context

Stacktrace

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    🆕 Unprioritized

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions