Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoDB: Configure MongoDBCrateDBConverter for updating commons-codec #275

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

amotl
Copy link
Member

@amotl amotl commented Sep 25, 2024

About

commons-codec 0.0.18 provides configuration capabilities about how to decode timestamp values. CTK currently uses this configuration, in order to emit timestamp values in milliseconds since epoch, suitable to be stored as BIGINT.

MongoDBCrateDBConverter(
    timestamp_to_epoch=True,
    timestamp_use_milliseconds=True,
)

Alternatively, you can configure it to emit timestamps in ISO8601 format, suitable to be stored as STRING.

MongoDBCrateDBConverter(
    timestamp_to_iso8601=True,
)

/cc @hlcianfagna, @wierdvanderhaar

commons-codec 0.0.18 provides configuration capabilities about how to
decode timestamp values. CTK currently uses this configuration:

MongoDBCrateDBConverter(
    timestamp_to_epoch=True,
    timestamp_use_milliseconds=True,
)
@cla-bot cla-bot bot added the cla-signed label Sep 25, 2024
@amotl amotl marked this pull request as ready for review September 25, 2024 19:48
@amotl amotl merged commit 00123b5 into main Sep 25, 2024
32 checks passed
@amotl amotl deleted the commons-codec-0.0.18 branch September 25, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant