[ https://issues.apache.org/jira/browse/HIVE-2174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13036703#comment-13036703 ]
Ning Zhang commented on HIVE-2174: ---------------------------------- @Patrick, thanks for fixing the wiki! @Carl, fixing the test.classpath would work too. Currently without 'ant package' (which is actually the installation process) there is no build/dist/lib created. If we can make test.classpath depend on build/dist/lib, that should implicitly make 'ant test' dependent on 'ant package', but without running 'ant package' every time 'ant test' is run. > unit tests fail consistently when run according to instructions on "hive how > to contribute" page. > ------------------------------------------------------------------------------------------------- > > Key: HIVE-2174 > URL: https://issues.apache.org/jira/browse/HIVE-2174 > Project: Hive > Issue Type: Bug > Components: Build Infrastructure, Testing Infrastructure > Affects Versions: 0.7.1, 0.8.0 > Reporter: Patrick Hunt > Assignee: Patrick Hunt > Priority: Critical > > The unit tests fail consistently when run according to the doc on hive how to > contribute page. Specifically if you: > 1) checkout the code afresh (or 'git clean -xdf' - basically be sure to start > with a _very_ clean slate) > 2) ant clean test tar -logfile ant.log > the tests will fail (you can run just bucketmapjoin1.q instead of all the > tests, it exhibits this behavior). However if you instead do the following > 2) ant clean package test tar -logfile ant.log > the tests pass (notice the addition to package to the targets). > I've tried this on 5 different systems (mix of linux 32/64 bit) and the > result is consistent. > Running > ant clean test -Dtestcase=TestCliDriver -Dqfile=bucketmapjoin1.q > I see the following reason for failure > {quote} > [junit] 743c743 > [junit] < numRows 0 > [junit] --- > [junit] > numRows 464 > [junit] 773c773 > [junit] < numRows 0 > [junit] --- > [junit] > numRows 464 > [junit] 793c793 > [junit] < numRows 0 > [junit] --- > [junit] > numRows 464 > {quote} > which leads me to believe it's a metastore issue (statistics?) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira