You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hawq.apache.org by "Shubham Sharma (JIRA)" <ji...@apache.org> on 2017/07/03 23:54:02 UTC

[jira] [Commented] (HAWQ-1495) TestRowTypes.BasicTest fails due to wrong answer file

    [ https://issues.apache.org/jira/browse/HAWQ-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16072982#comment-16072982 ] 

Shubham Sharma commented on HAWQ-1495:
--------------------------------------

In *src/test/feature/query/sql/rowtypes.sql* the value inserted into the table is `"insert into people values ('(Joe,Blow)', '1984-01-10');"`, where date is in the format - `1984-01-10`. But in `*src/test/feature/query/ans/rowtypes.ans*`, whenever doing a "select * from people" the answer is stored as `01-10-1984`. This causes the test to fail. Corrected the date format and test executes successfully. 

Submitted [pull request|https://github.com/apache/incubator-hawq/pull/1263] to address this issue.

> TestRowTypes.BasicTest fails due to wrong answer file
> -----------------------------------------------------
>
>                 Key: HAWQ-1495
>                 URL: https://issues.apache.org/jira/browse/HAWQ-1495
>             Project: Apache HAWQ
>          Issue Type: Bug
>          Components: Tests
>            Reporter: Shubham Sharma
>            Assignee: Jiali Yao
>
> While running feature test TestRowTypes, it fails with following error
> {code}
> [gpadmin@centos7-namenode feature]$ ./feature-test --gtest_filter="TestRowTypes*"
> Note: Google Test filter = TestRowTypes*
> [==========] Running 1 test from 1 test case.
> [----------] Global test environment set-up.
> [----------] 1 test from TestRowTypes
> [ RUN      ] TestRowTypes.BasicTest
> COPY tenk1 FROM '/data/hawq/src/test/feature/query/data/tenk.data'
> lib/sql_util.cpp:197: Failure
> Value of: is_sql_ans_diff
>   Actual: true
> Expected: false
> lib/sql_util.cpp:203: Failure
> Value of: true
>   Actual: true
> Expected: false
> [  FAILED  ] TestRowTypes.BasicTest (9493 ms)
> [----------] 1 test from TestRowTypes (9493 ms total)
> [----------] Global test environment tear-down
> [==========] 1 test from 1 test case ran. (9493 ms total)
> [  PASSED  ] 0 tests.
> [  FAILED  ] 1 test, listed below:
> [  FAILED  ] TestRowTypes.BasicTest
>  1 FAILED TEST
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)