hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Phillips (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HIVE-209) Enable assertions for unit tests
Date Mon, 05 Jan 2009 22:45:44 GMT

    [ https://issues.apache.org/jira/browse/HIVE-209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660969#action_12660969
] 

David Phillips commented on HIVE-209:
-------------------------------------

This change to HiveConf.java

{noformat}
-    HADOOPNUMREDUCERS("mapred.reduce.tasks", "1"),
+    HADOOPNUMREDUCERS("mapred.reduce.tasks", 1),
{noformat}

exposes an assertion in DynamicSerDeFieldList.java:

{noformat}
  assert(field.type == TType.STOP);
{noformat}

Use this (happens with many other tests too): ant -Dtestcase=TestCliDriver -Dqfile=join1.q
test

> Enable assertions for unit tests
> --------------------------------
>
>                 Key: HIVE-209
>                 URL: https://issues.apache.org/jira/browse/HIVE-209
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Testing Infrastructure
>            Reporter: David Phillips
>         Attachments: hive-junit-assert.patch
>
>
> We should enable assertions while running unit tests.  Many assertions currently fail
while running tests.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message