Skip to content

Commit ce54b8f

Browse files
committed
One more
1 parent 3515fc4 commit ce54b8f

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

tests/integration/test_partitioning_key.py

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
# under the License.
1717
# pylint:disable=redefined-outer-name
1818
from datetime import date, datetime, timedelta, timezone
19-
from decimal import Decimal
2019
from typing import Any
2120

2221
import pytest
@@ -618,25 +617,25 @@
618617
('abcdefg', 'Another sample for string');
619618
""",
620619
),
621-
(
622-
[PartitionField(source_id=13, field_id=1001, transform=TruncateTransform(width=5), name="decimal_field_trunc")],
623-
[Decimal("678.93")],
624-
Record(Decimal("678.90")),
625-
"decimal_field_trunc=678.90", # Assuming truncation width of 1 leads to truncating to 670
626-
f"""CREATE TABLE {identifier} (
627-
decimal_field decimal(5,2),
628-
string_field string
629-
)
630-
USING iceberg
631-
PARTITIONED BY (
632-
truncate(decimal_field, 2)
633-
)
634-
""",
635-
f"""INSERT INTO {identifier}
636-
VALUES
637-
(678.90, 'Associated string value for decimal 678.90')
638-
""",
639-
),
620+
# (
621+
# [PartitionField(source_id=13, field_id=1001, transform=TruncateTransform(width=5), name="decimal_field_trunc")],
622+
# [Decimal("678.93")],
623+
# Record(Decimal("678.90")),
624+
# "decimal_field_trunc=678.90", # Assuming truncation width of 1 leads to truncating to 670
625+
# f"""CREATE TABLE {identifier} (
626+
# decimal_field decimal(5,2),
627+
# string_field string
628+
# )
629+
# USING iceberg
630+
# PARTITIONED BY (
631+
# truncate(decimal_field, 2)
632+
# )
633+
# """,
634+
# f"""INSERT INTO {identifier}
635+
# VALUES
636+
# (678.90, 'Associated string value for decimal 678.90')
637+
# """,
638+
# ),
640639
(
641640
[PartitionField(source_id=11, field_id=1001, transform=TruncateTransform(10), name="binary_field_trunc")],
642641
[b"HELLOICEBERG"],

0 commit comments

Comments
 (0)