Skip to content

Configure timestamp downcast programmatically #960

@devinrsmith

Description

@devinrsmith

Feature Request / Improvement

During testing of 0.7.0rc1, I noticed timestamp downcast errors, introduced as part of #848.

I'd like to have a way to programmatically configure timestamp downcast in the python API without relying on environment variables or a yaml configuration file.

I would have assumed that something like

from pyiceberg.table import DOWNCAST_NS_TIMESTAMP_TO_US_ON_WRITE

catalog = ...

table = catalog.create_table(
    ...
    properties={DOWNCAST_NS_TIMESTAMP_TO_US_ON_WRITE: True},
)

or

from pyiceberg.table import DOWNCAST_NS_TIMESTAMP_TO_US_ON_WRITE

catalog = load_catalog(
    ...,
    **{
        DOWNCAST_NS_TIMESTAMP_TO_US_ON_WRITE: "True",
    }
)

would have been the proper way to configure it, but it doesn't seem to take in either case.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions