Skip to content

[C++][Gandiva] date_time_test fails locally due to UTC and local time comparison #50399

Closed

Description

@amoeba

Describe the bug, including details regarding any error messages, version, and platform.

While running release verification locally I ran into this test failure in Gandiva,

[ RUN      ] DateTimeTestProjector.TestDateTime
/var/folders/gf/3btcn6956190fx_xld0y_b9r0000gn/T/arrow-25.0.0.XXXXX.lfAWx3tMri/apache-arrow-25.0.0/cpp/src/gandiva/tests/date_time_test.cc:293: Failure
Value of: (exp_mm_from_date32)->Equals(outputs.at(3), arrow::EqualOptions().nans_equal(true))
  Actual: false
Expected: true
expected array: [
  1,
  12,
  6,
  7
] actual array: [
  1,
  12,
  7,
  7
]

There was a recent PR (#49953) that partially fixed issues in these test helpers related to time zone handling but I think it was incomplete. I also think we don't see this failure in CI because CI machines use UTC.

Component(s)

C++, Gandiva

Activity

  1. added a commit that references this issue on Jul 8, 2026
  2. amoeba commented on Jul 8, 2026

    @amoeba
    MemberAuthor

    Issue resolved by pull request 50400
    #50400

  3. added this to the 26.0.0 milestone on Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions