Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-5709

[C++] gandiva-date_time_test failure on Windows

    Details

      Description

      I get the following failure on Windows:

      Running main() from C:\t\arrow\cpp\build-release\googletest_ep-prefix\src\googletest_ep\googletest\src\gtest_main.cc
      [==========] Running 5 tests from 1 test case.
      [----------] Global test environment set-up.
      [----------] 5 tests from TestProjector
      [ RUN      ] TestProjector.TestIsNull
      [       OK ] TestProjector.TestIsNull (47 ms)
      [ RUN      ] TestProjector.TestDateTime
      ..\src\gandiva\tests\date_time_test.cc(181): error: Value of: (exp_yy_from_date)->Equals(outputs.at(0), arrow::EqualOptions().nans_equal(true))
        Actual: false
      Expected: true
      expected array: [
        2000,
        1999,
        2015,
        2015
      ] actual array: [
        1970,
        1970,
        1970,
        1970
      ]
      ..\src\gandiva\tests\date_time_test.cc(182): error: Value of: (exp_mm_from_date)->Equals(outputs.at(1), arrow::EqualOptions().nans_equal(true))
        Actual: false
      Expected: true
      expected array: [
        1,
        12,
        6,
        7
      ] actual array: [
        1,
        1,
        1,
        1
      ]
      ..\src\gandiva\tests\date_time_test.cc(183): error: Value of: (exp_mm_from_ts)->Equals(outputs.at(2), arrow::EqualOptions().nans_equal(true))
        Actual: false
      Expected: true
      expected array: [
        12,
        1,
        7,
        6
      ] actual array: [
        1,
        1,
        1,
        1
      ]
      ..\src\gandiva\tests\date_time_test.cc(184): error: Value of: (exp_dd_from_ts)->Equals(outputs.at(3), arrow::EqualOptions().nans_equal(true))
        Actual: false
      Expected: true
      expected array: [
        31,
        2,
        1,
        29
      ] actual array: [
        1,
        1,
        1,
        1
      ]
      [  FAILED  ] TestProjector.TestDateTime (62 ms)
      [ RUN      ] TestProjector.TestTime
      [       OK ] TestProjector.TestTime (31 ms)
      [ RUN      ] TestProjector.TestTimestampDiff
      ..\src\gandiva\tests\date_time_test.cc(327): error: Value of: (exp_output.at(i))->Equals(outputs.at(i), arrow::EqualOptions().nans_equal(true))
        Actual: false
      Expected: true
      expected array: [
        48996077,
        -48996077,
        0,
        -82800
      ] actual array: [
        0,
        0,
        0,
        0
      ]
      ..\src\gandiva\tests\date_time_test.cc(327): error: Value of: (exp_output.at(i))->Equals(outputs.at(i), arrow::EqualOptions().nans_equal(true))
        Actual: false
      Expected: true
      expected array: [
        816601,
        -816601,
        0,
        -1380
      ] actual array: [
        0,
        0,
        0,
        0
      ]
      ..\src\gandiva\tests\date_time_test.cc(327): error: Value of: (exp_output.at(i))->Equals(outputs.at(i), arrow::EqualOptions().nans_equal(true))
        Actual: false
      Expected: true
      expected array: [
        13610,
        -13610,
        0,
        -23
      ] actual array: [
        0,
        0,
        0,
        0
      ]
      ..\src\gandiva\tests\date_time_test.cc(327): error: Value of: (exp_output.at(i))->Equals(outputs.at(i), arrow::EqualOptions().nans_equal(true))
        Actual: false
      Expected: true
      expected array: [
        567,
        -567,
        0,
        0
      ] actual array: [
        0,
        0,
        0,
        0
      ]
      ..\src\gandiva\tests\date_time_test.cc(327): error: Value of: (exp_output.at(i))->Equals(outputs.at(i), arrow::EqualOptions().nans_equal(true))
        Actual: false
      Expected: true
      expected array: [
        81,
        -81,
        0,
        0
      ] actual array: [
        0,
        0,
        0,
        0
      ]
      ..\src\gandiva\tests\date_time_test.cc(327): error: Value of: (exp_output.at(i))->Equals(outputs.at(i), arrow::EqualOptions().nans_equal(true))
        Actual: false
      Expected: true
      expected array: [
        18,
        -18,
        0,
        0
      ] actual array: [
        0,
        0,
        0,
        0
      ]
      ..\src\gandiva\tests\date_time_test.cc(327): error: Value of: (exp_output.at(i))->Equals(outputs.at(i), arrow::EqualOptions().nans_equal(true))
        Actual: false
      Expected: true
      expected array: [
        6,
        -6,
        0,
        0
      ] actual array: [
        0,
        0,
        0,
        0
      ]
      ..\src\gandiva\tests\date_time_test.cc(327): error: Value of: (exp_output.at(i))->Equals(outputs.at(i), arrow::EqualOptions().nans_equal(true))
        Actual: false
      Expected: true
      expected array: [
        1,
        -1,
        0,
        0
      ] actual array: [
        0,
        0,
        0,
        0
      ]
      [  FAILED  ] TestProjector.TestTimestampDiff (204 ms)
      [ RUN      ] TestProjector.TestMonthsBetween
      ..\src\gandiva\tests\date_time_test.cc(389): error: Value of: (exp_output)->Equals(outputs.at(0), arrow::EqualOptions().nans_equal(true))
        Actual: false
      Expected: true
      expected array: [
        1,
        -1,
        1,
        1
      ] actual array: [
        0,
        0,
        0,
        0
      ]
      [  FAILED  ] TestProjector.TestMonthsBetween (93 ms)
      [----------] 5 tests from TestProjector (437 ms total)
      
      [----------] Global test environment tear-down
      [==========] 5 tests from 1 test case ran. (437 ms total)
      [  PASSED  ] 2 tests.
      [  FAILED  ] 3 tests, listed below:
      [  FAILED  ] TestProjector.TestDateTime
      [  FAILED  ] TestProjector.TestTimestampDiff
      [  FAILED  ] TestProjector.TestMonthsBetween
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pitrou Antoine Pitrou
                Reporter:
                pitrou Antoine Pitrou
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h