Skip to content

lower/upper bounds for timestamps are written incorrectly #61

@alsugiliazova

Description

@alsugiliazova

Wrong behavior when use_iceberg_partition_pruning is set to 1. On antalya and upstream starting from 25.4 it is 1 by default.

SELECT *
FROM `default.iceberg_5d3aa3af_9a0c_11f0_bf29_e0c26496f172`
   ┌───────────────────datetime─┐
1. │ 2024-12-31 23:00:00.000000 │
   └────────────────────────────┘
SELECT *
FROM `default.iceberg_5d3aa3af_9a0c_11f0_bf29_e0c26496f172`
WHERE datetime = '2024-12-31 23:00:00.000000'
Query id: 097b4ebb-a03a-4156-bf0c-1b9ea0ff55df

Ok.

0 rows in set. Elapsed: 0.014 sec. 

Repro:

<clickhouse>
    <named_collections>
        <s3_conn>
            <access_key_id>admin</access_key_id>
            <secret_access_key>password</secret_access_key>
            <url>http://minio:9000/warehouse/</url>
        </s3_conn>
    </named_collections>
</clickhouse>
CREATE TABLE s3_5d240441_9a0c_11f0_ad18_e0c26496f172 (datetime DateTime)
ENGINE = S3(s3_conn, filename='s3_5d240441_9a0c_11f0_ad18_e0c26496f172', format=Parquet)
INSERT INTO s3_5d240441_9a0c_11f0_ad18_e0c26496f172 VALUES ('2025-01-01 00:00:00')
ice insert default.iceberg_5d3aa3af_9a0c_11f0_bf29_e0c26496f172 -p s3://warehouse/s3_5d240441_9a0c_11f0_ad18_e0c26496f172

Same data insert with PyIceberg works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions