Skip to content

[VL] Large timestamp outside of range #7109

Open

Description

@ccat3z

Backend

VL (Velox)

Bug description

Timestamps that great then 32767 years without but do not overflow will be outside of range.

Seq(
  (1723240800675l)
).toDF("time")

spark.sql("""
  select from_unixtime(event_timestamp, 'HH') from test
""")

// vanilla: 56577-04-30 00:11:15
// gluten: Timestamp is outside of supported range of [-32767-01-01, 32767-12-31]

It may be because std::chrono::time_point is used in time conversion, which has range limitations.

Spark version

None

Spark configurations

No response

System information

No response

Relevant logs

No response

Activity

  1. zml1206 commented on Sep 4, 2024

    @zml1206
    Contributor

    Seems to be a known issue facebookincubator/velox#10641

  2. ccat3z commented on Sep 4, 2024

    @ccat3z
    ContributorAuthor

    Seems to be a known issue facebookincubator/velox#10641

    It maybe not same issue, facebookincubator/velox#10641 still use std::chrono. But the expected result is 56577, which std::chrono not supported.

  3. ccat3z commented on Sep 4, 2024

    @ccat3z
    ContributorAuthor

    Seems to be a known issue facebookincubator/velox#10641

    It maybe not same issue, facebookincubator/velox#10641 still use std::chrono. But the expected result is 56577, which std::chrono not supported.

    I am trying to remove the dependency on std::chrono to get rid of the limitations.

  4. wForget commented on May 23, 2025

    @wForget
    Member

    @NEUpanning Does #7375 resolve this issue?

  5. NEUpanning commented on May 23, 2025

    @NEUpanning
    Contributor

    @NEUpanning Does #7375 resolve this issue?

    @wForget No. See task 'Fix date range validation in SimpleDateFormat standard' part in facebookincubator/velox#10354

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

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions