Skip to content

Commit b75d49b

Browse files
committed
Remove duplicated constants
1 parent be24d12 commit b75d49b

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

elt-common/src/elt_common/dlt_destinations/pyiceberg/type_mapping.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from typing import Dict
2-
31
from elt_common.dlt_destinations.pyiceberg.helpers import (
42
dlt_type_to_iceberg,
53
iceberg_to_dlt_type,
@@ -12,10 +10,6 @@
1210
from dlt.destinations.type_mapping import TypeMapperImpl
1311

1412

15-
TIMESTAMP_PRECISION_TO_UNIT: Dict[int, str] = {0: "s", 3: "ms", 6: "us", 9: "ns"}
16-
UNIT_TO_TIMESTAMP_PRECISION: Dict[str, int] = {v: k for k, v in TIMESTAMP_PRECISION_TO_UNIT.items()}
17-
18-
1913
class PyIcebergTypeMapper(TypeMapperImpl):
2014
def to_destination_type(
2115
self, column: TColumnSchema, table: PreparedTableSchema

0 commit comments

Comments
 (0)