Skip to content

Unable to use time::OffsetDateTime (and likely other time types) in binds #121

Closed as not planned
@v3xro

Description

@v3xro

Binding a query like client.query("SELECT ?fields WHERE ts > ?").bind(datetime!(2022-11-13 15:27:42 UTC)) results in runtime execution error:

DB::Exception: Illegal type Tuple(UInt16, UInt8, UInt8, UInt8, UInt8, UInt32, UInt8, UInt8, UInt8)

It seems the issue is there isn't a specific serializer for these time types and ClickHouse does not accept the default representation serde generates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions