Skip to content

when convert many time strings to unixtimestamp, i get 10% percent records converted wrong #30

Description

@xiuxiuxiaodi

I have a table of 2 millions reconds with column name time1, the record is like"2017-10-30 11:11:11", when i use "select time1, unix_timestamp(time1) as time1unix from xx", I found i get much the datetime string row records converted right, but there are some wrong converted.
At first , I think the unix_timestamp function is not thread-safe, then I write a user-defined function with thread-safe, but I get some wrong converted also, thougth not the same wrong order with unix_timestamp function.
I find this error , because my record is sorted, then i use the unix_timestamp(time1) records , it's not.
Can anyone tell me why?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions