Youwei Wang has posted comments on this change.
Change subject: IMPALA-2459: Implement next_day date/time UDF
......................................................................
Patch Set 11:
> Hi Youwei, I rebased this change to submit it. However the tests
> failed:
>
> ./be/build/debug/exprs/expr-test --gtest_filter="*TimestampFunction*"
> Running without optimization passes.
> Running without codegen
> Note: Google Test filter = *TimestampFunction*
> [==========] Running 1 test from 1 test case.
> [----------] Global test environment set-up.
> [----------] 1 test from ExprTest
> [ RUN ] ExprTest.TimestampFunctions
> be/src/exprs/expr-test.cc:239: Failure
> Value of: expect_error
> Actual: false
> Expected: true
> stmt: select next_day('2016-05-01','Sunday')
> error: 42000: AnalysisException: Database does not exist: default
>
>
> unknown file: Failure
> C++ exception with description "Year is out of valid range:
> 1400..10000" thrown in the test body.
> [ FAILED ] ExprTest.TimestampFunctions (6898 ms)
> [----------] 1 test from ExprTest (6898 ms total)
>
> [----------] Global test environment tear-down
> [==========] 1 test from 1 test case ran. (6898 ms total)
> [ PASSED ] 0 tests.
> [ FAILED ] 1 test, listed below:
> [ FAILED ] ExprTest.TimestampFunctions
>
> 1 FAILED TEST
>
> Can you please have a look? Thanks, Lars
Greetings all.
After I have rebased the code, the test unit outside the “TEST_F(ExprTest,
TimestampFunctions) {” can't compile.
The compiler complains:
“/root/Impala/be/src/exprs/expr-test.cc:3270:46: error: ‘TestTimestampValue’
was not declared in this scope
TimestampValue("1910-01-23 00:00:00", 19));
^”
But if I moved the test code inside this function:
TEST_F(ExprTest, TimestampFunctions),
the compile error disappears and all the test cases can pass.
I guess there must be something changed for this "TEST_F".
> Hi Youwei, I rebased this change to submit it. However the tests
> failed:
>
> ./be/build/debug/exprs/expr-test --gtest_filter="*TimestampFunction*"
> Running without optimization passes.
> Running without codegen
> Note: Google Test filter = *TimestampFunction*
> [==========] Running 1 test from 1 test case.
> [----------] Global test environment set-up.
> [----------] 1 test from ExprTest
> [ RUN ] ExprTest.TimestampFunctions
> be/src/exprs/expr-test.cc:239: Failure
> Value of: expect_error
> Actual: false
> Expected: true
> stmt: select next_day('2016-05-01','Sunday')
> error: 42000: AnalysisException: Database does not exist: default
>
>
> unknown file: Failure
> C++ exception with description "Year is out of valid range:
> 1400..10000" thrown in the test body.
> [ FAILED ] ExprTest.TimestampFunctions (6898 ms)
> [----------] 1 test from ExprTest (6898 ms total)
>
> [----------] Global test environment tear-down
> [==========] 1 test from 1 test case ran. (6898 ms total)
> [ PASSED ] 0 tests.
> [ FAILED ] 1 test, listed below:
> [ FAILED ] ExprTest.TimestampFunctions
>
> 1 FAILED TEST
>
> Can you please have a look? Thanks, Lars
Lars Volker
> Hi Youwei, I rebased this change to submit it. However the tests
> failed:
>
> ./be/build/debug/exprs/expr-test --gtest_filter="*TimestampFunction*"
> Running without optimization passes.
> Running without codegen
> Note: Google Test filter = *TimestampFunction*
> [==========] Running 1 test from 1 test case.
> [----------] Global test environment set-up.
> [----------] 1 test from ExprTest
> [ RUN ] ExprTest.TimestampFunctions
> be/src/exprs/expr-test.cc:239: Failure
> Value of: expect_error
> Actual: false
> Expected: true
> stmt: select next_day('2016-05-01','Sunday')
> error: 42000: AnalysisException: Database does not exist: default
>
>
> unknown file: Failure
> C++ exception with description "Year is out of valid range:
> 1400..10000" thrown in the test body.
> [ FAILED ] ExprTest.TimestampFunctions (6898 ms)
> [----------] 1 test from ExprTest (6898 ms total)
>
> [----------] Global test environment tear-down
> [==========] 1 test from 1 test case ran. (6898 ms total)
> [ PASSED ] 0 tests.
> [ FAILED ] 1 test, listed below:
> [ FAILED ] ExprTest.TimestampFunctions
>
> 1 FAILED TEST
>
> Can you please have a look? Thanks, Lars
Greetings all.
After I have rebased the code, the test unit outside the
“TEST_F(ExprTest, TimestampFunctions) {” can’t compile.
The compiler outputs:
“/root/Impala/be/src/exprs/expr-test.cc:3270:46:
error: ‘TestTimestampValue’ was not declared in this scope
TimestampValue("1910-01-23 00:00:00", 19));
^”
But if I move such test code inside the function:
"TEST_F(ExprTest, TimestampFunctions), "
the compile error disappears and all the test cases can pass.
--
To view, visit http://gerrit.cloudera.org:8080/1943
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I2721d236c096639a9e7d2df8a45ca888c6b3e83e
Gerrit-PatchSet: 11
Gerrit-Project: Impala
Gerrit-Branch: cdh5-trunk
Gerrit-Owner: Youwei Wang <[email protected]>
Gerrit-Reviewer: Henry Robinson <[email protected]>
Gerrit-Reviewer: Jim Apple <[email protected]>
Gerrit-Reviewer: Lars Volker <[email protected]>
Gerrit-Reviewer: Marcel Kornacker <[email protected]>
Gerrit-Reviewer: Youwei Wang <[email protected]>
Gerrit-HasComments: No