Skip to content

Fractional seconds as micros instead of mills #136

Closed
@osheroff

Description

@osheroff

Hey @shyiko, have gotten back to the maxwell port. Just a few tests left to go now, but I was chasing down a test that deals with microsecond precision, and found that the binlog-connector does milliseconds and only milliseconds (https://github.com/shyiko/mysql-binlog-connector-java/blob/master/src/main/java/com/github/shyiko/mysql/binlog/event/deserialization/AbstractRowsEventDataDeserializer.java#L366). This seems like a sane default, but I don't want to throw away information, especially if people are using DATETIME(6) -- they probably mean it as an ordering column.

Any possibility you'd accept a patch that allowed the user to configure the connector to output a double (milliseconds + a fraction), or maybe microseconds (as a long) instead of milliseconds?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions