tajo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TAJO-476) Add a test development kit for unit tests based on executions of queries
Date Tue, 07 Jan 2014 02:33:50 GMT

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

Hudson commented on TAJO-476:
-----------------------------

FAILURE: Integrated in Tajo-trunk-postcommit #666 (See [https://builds.apache.org/job/Tajo-trunk-postcommit/666/])
TAJO-476: Add a test development kit for unit tests based on executions of queries. (hyunsik:
https://git-wip-us.apache.org/repos/asf?p=incubator-tajo.git&a=commit&h=eaf0a5854bf13c3b6a767af5394d4ad100e5dbe5)
* tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/query/TestSelectQuery.java
* tajo-core/tajo-core-backend/src/test/resources/queries/default/complex_union_2.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testSelect2.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSortQuery/testSort.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestSortQuery/testSortWithAliasButOriginalName.result
* tajo-core/tajo-core-backend/src/test/queries/select_13.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/join_15.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestSortQuery/testSortAfterGroupby.result
* tajo-core/tajo-core-backend/src/test/resources/queries/TestGroupByQuery/testComplexParameter.sql
* tajo-core/tajo-core-backend/src/test/queries/insert_overwrite_into_select_2.hiveql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/select_7.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/select_3.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSortQuery/testSortAfterGroupbyWithAlias.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/select_10.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestCreateTable/create_table_various_types.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/select_8.sql
* tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/engine/planner/logical/join/GreedyHeuristicJoinOrderAlgorithm.java
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testSelectAsterik.result
* tajo-core/tajo-core-backend/src/test/resources/queries/TestBuiltinFunctions/testAvgInt.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/select_11.hiveql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestCaseByCases/testTAJO418Case.sql
* tajo-core/tajo-core-backend/src/test/queries/join_3.sql
* tajo-core/tajo-core-backend/src/test/queries/create_table_partition_by_range.sql
* tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/master/GlobalEngine.java
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testUnion1.result
* tajo-core/tajo-core-backend/src/test/resources/queries/TestJoinQuery/testCrossJoin.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestBuiltinFunctions/testMaxLong.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_partition_by_list.sql
* tajo-core/tajo-core-backend/src/test/resources/dataset/TestCreateTable/table1.tbl
* tajo-core/tajo-core-backend/src/test/resources/results/TestSortQuery/testSortWithAliasKey.result
* tajo-core/tajo-core-backend/src/test/queries/create_table_7.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/insert_overwrite_into_select_2.hiveql
* tajo-core/tajo-core-backend/src/test/queries/union_1.hiveql
* tajo-core/tajo-core-backend/src/test/queries/select_8.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testInStrClause.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestBuiltinFunctions/testSplitPartNested.result
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testNotInClause.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestGroupByQuery/testGroupBy2.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestGroupByQuery/testHavingWithNamedTarget.result
* tajo-core/tajo-core-backend/src/test/queries/select_10.hiveql
* tajo-core/tajo-core-backend/src/test/resources/results/TestGroupByQuery/testComplexParameterWithSubQuery.result
* tajo-core/tajo-core-backend/src/test/queries/tajo415_case.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_1.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testInClause.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestBuiltinFunctions/testAvgLong.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/join_2.sql
* tajo-core/tajo-core-backend/src/test/queries/join_14.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/join_13.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/select_13.hiveql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/in_subquery_2.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestBuiltinFunctions/testCount.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestTableSubQuery/testJoinSubQuery2.result
* tajo-core/tajo-core-backend/src/test/queries/create_table_various_types.sql
* tajo-core/tajo-core-backend/src/test/queries/create_table_1.hiveql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_1.hiveql
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testUnion2.result
* tajo-core/tajo-core-backend/src/test/resources/queries/default/join_5.sql
* tajo-core/tajo-core-backend/src/test/queries/set_3.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestGroupByQuery/testCountDistinct2.result
* tajo-core/tajo-core-backend/src/test/queries/select_14.sql
* tajo-core/tajo-core-backend/src/test/queries/select_11.hiveql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestGroupByQuery/testCountDistinct.sql
* tajo-core/tajo-core-backend/src/test/queries/create_table_partition_by_list.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testRealValueCompare.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestTableSubQuery/testJoinSubQuery.result
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testUnion2.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_partition_by_range.sql
* tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/function/TestBuiltinFunctions.java
* tajo-core/tajo-core-backend/src/test/resources/queries/default/select_6.sql
* tajo-core/tajo-core-backend/src/test/queries/join_4.sql
* tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/query/TestCreateTableStatement.java
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testLimit.result
* tajo-core/tajo-core-backend/src/test/resources/results/TestBuiltinFunctions/testSplitPart.result
* tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/query/TestSortQuery.java
* tajo-core/tajo-core-backend/src/test/resources/queries/default/in_subquery_1.sql
* tajo-core/tajo-core-backend/src/test/queries/table_subquery2.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/select_9.hiveql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSortQuery/testSortAfterGroupby.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testCaseWhenWithoutElse.result
* tajo-core/tajo-core-backend/src/test/resources/queries/TestGroupByQuery/testGroupBy4.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestTPCH/testQ2FourJoins.result
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testInClause.result
* tajo-core/tajo-core-backend/src/test/resources/queries/default/join_9.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSortQuery/testSortDesc.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/select_14.sql
* tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/query/TestTablePartitions.java
* tajo-core/tajo-core-backend/src/test/resources/queries/default/join_8.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSortQuery/testTopK.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSortQuery/testSortWithAliasKey.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestJoinQuery/testTPCHQ2Join.result
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testNotInStrClause.result
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testSelect3.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestTPCH/testQ1OrderBy.result
* tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/master/querymaster/Query.java
* tajo-core/tajo-core-backend/src/test/queries/create_table_2.hiveql
* tajo-core/tajo-core-backend/src/test/resources/results/TestGroupByQuery/testGroupBy3.result
* tajo-core/tajo-core-backend/src/test/resources/queries/TestGroupByQuery/testGroupBy.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestJoinQuery/testLeftOuterJoin1.result
* tajo-core/tajo-core-backend/src/test/resources/queries/TestTPCH/testTPCH14Expr.sql
* tajo-core/tajo-core-backend/src/test/queries/create_table_2.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestJoinQuery/testCrossJoin.result
* tajo-core/tajo-core-backend/src/test/resources/queries/default/select_12.hiveql
* tajo-core/tajo-core-backend/src/test/queries/create_table_10.sql
* tajo-core/tajo-core-backend/src/test/queries/create_table_partition_by_hash_1.sql
* tajo-core/tajo-core-backend/src/test/queries/set_1.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/join_1.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestGroupByQuery/testGroupBy2.result
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_6.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestTPCH/testTPCH14Expr.result
* tajo-core/tajo-core-backend/src/test/resources/results/TestJoinQuery/testJoinRefEval.result
* tajo-core/tajo-core-backend/src/test/queries/create_table_11.sql
* tajo-core/tajo-core-backend/src/test/queries/select_4.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_10.sql
* tajo-core/tajo-core-backend/src/test/queries/select_9.hiveql
* tajo-core/tajo-core-backend/src/test/queries/join_9.sql
* tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/benchmark/TestTPCH.java
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testLimit.sql
* tajo-core/tajo-core-backend/src/test/queries/create_partitioned_table_as_select.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestBuiltinFunctions/testCount.result
* tajo-core/tajo-core-backend/src/test/resources/results/TestGroupByQuery/testGroupBy4.result
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testLikeClause.sql
* tajo-core/tajo-core-backend/src/test/queries/insert_overwrite_into_select_2.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/select_10.hiveql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testCaseWhen.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestGroupByQuery/testComplexParameter2.sql
* tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/parser/TestHiveConverter.java
* tajo-core/tajo-core-backend/src/test/queries/create_table_4.sql
* tajo-core/tajo-core-backend/src/test/queries/exists_predicate_1.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/select_1.sql
* tajo-core/tajo-core-backend/src/test/queries/select_1.sql
* tajo-core/tajo-core-backend/src/test/queries/join_1.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestJoinQuery/testJoinAndCaseWhen.result
* tajo-core/tajo-core-backend/src/test/queries/join_15.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestBuiltinFunctions/testRandom.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/join_3.sql
* tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/master/TestGlobalPlanner.java
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_2.hiveql
* tajo-core/tajo-core-backend/src/test/resources/results/TestJoinQuery/testRightOuterJoin1.result
* tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/query/TestGroupByQuery.java
* tajo-core/tajo-core-backend/src/test/resources/queries/TestBuiltinFunctions/testMinLong.sql
* tajo-core/tajo-core-backend/src/test/queries/complex_union_2.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testStringCompare.result
* tajo-core/tajo-core-backend/src/test/resources/queries/default/union_1.hiveql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestJoinQuery/testJoinAndCaseWhen.sql
* tajo-core/tajo-core-backend/src/test/queries/select_5.sql
* tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/query/TestCaseByCases.java
* tajo-core/tajo-core-backend/src/test/queries/set_2.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testUnion1.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testCaseWhen.result
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_partition_by_column.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestCaseByCases/testTAJO418Case.result
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testSelect.result
* tajo-core/tajo-core-backend/src/test/resources/queries/default/join_4.sql
* tajo-core/tajo-core-backend/src/test/queries/join_8.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/complex_union_1.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestJoinQuery/testTPCHQ2Join.sql
* tajo-core/tajo-core-backend/src/test/queries/join_2.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestTableSubQuery/testJoinSubQuery2.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_partition_by_hash_2.sql
* tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/QueryTestCaseBase.java
* tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/master/querymaster/SubQuery.java
* tajo-core/tajo-core-backend/src/test/resources/queries/default/select_4.sql
* tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/planner/TestLogicalPlanner.java
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testCaseWhenWithoutElse.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testInStrClause.result
* tajo-core/tajo-core-backend/src/test/queries/join_7.sql
* tajo-core/tajo-core-backend/src/test/queries/complex_union_1.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestTableSubQuery/testTableSubquery1.result
* tajo-core/tajo-core-backend/src/test/resources/results/TestBuiltinFunctions/testAvgLong.result
* tajo-core/tajo-core-backend/src/test/resources/queries/default/insert_overwrite_into_select_2.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestGroupByQuery/testHavingWithAggFunction.sql
* tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/master/DefaultTaskScheduler.java
* tajo-core/tajo-core-backend/src/test/queries/create_table_1.sql
* tajo-core/tajo-core-backend/src/test/queries/groupby_1.sql
* tajo-core/tajo-core-backend/src/test/queries/tajo418_case.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testStringCompare.sql
* tajo-core/tajo-core-backend/src/test/queries/insert_overwrite_into_select_3.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestTPCH/testQ1OrderBy.sql
* tajo-core/tajo-core-backend/src/test/queries/set_4.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testNotEqual.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestJoinQuery/testLeftOuterJoin1.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/groupby_1.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/join_10.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testWhereCondWithAlias1.sql
* tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/master/querymaster/Repartitioner.java
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_2.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/insert_into_select_3.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestGroupByQuery/testGroupBy.result
* tajo-core/tajo-core-backend/src/test/resources/queries/default/table_subquery1.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestCaseByCases/testTAJO415Case.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/exists_predicate_1.sql
* tajo-core/tajo-core-backend/src/test/queries/create_table_5.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testCreateAfterSelect.sql
* CHANGES.txt
* tajo-core/tajo-core-backend/src/test/queries/join_12.sql
* tajo-core/tajo-core-backend/src/test/queries/create_table_9.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testSelect2.result
* tajo-core/tajo-core-backend/src/test/resources/queries/default/drop_table.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestBuiltinFunctions/testSplitPartByString.result
* tajo-core/tajo-core-backend/src/test/queries/table_subquery1.sql
* tajo-core/tajo-core-backend/src/test/queries/select_7.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testLikeClause.result
* tajo-core/tajo-core-backend/src/test/resources/queries/default/join_14.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_12.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestSortQuery/testSortDesc.result
* tajo-core/tajo-core-backend/src/test/resources/results/testBuildDDL.result
* tajo-core/tajo-core-backend/src/test/queries/select_2.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestBuiltinFunctions/testSplitPartNested.sql
* tajo-core/tajo-core-backend/src/test/queries/drop_table.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestSortQuery/testSort.result
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_9.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_11.hiveql
* tajo-core/tajo-core-backend/src/test/resources/results/TestGroupByQuery/testComplexParameter.result
* tajo-core/tajo-core-backend/src/test/resources/queries/default/join_7.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSortQuery/testSortWithAliasButOriginalName.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestGroupByQuery/testGroupBy3.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/insert_overwrite_into_select_1.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestGroupByQuery/testComplexParameterWithSubQuery.sql
* tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/query/TestJoinQuery.java
* tajo-core/tajo-core-backend/src/test/queries/tpch_q2_simplified.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestTableSubQuery/testTableSubquery1.sql
* tajo-core/tajo-core-backend/src/test/queries/create_table_6.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestJoinQuery/testCrossJoinWithExplicitJoinQual.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/set_4.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestJoinQuery/testCrossJoinWithExplicitJoinQual.result
* tajo-core/tajo-core-backend/src/test/resources/queries/TestGroupByQuery/testCountDistinct2.sql
* tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/parser/TestSQLAnalyzer.java
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testNotEqual.result
* tajo-core/tajo-core-backend/src/test/resources/results/TestGroupByQuery/testCountDistinct.result
* tajo-core/tajo-core-backend/src/test/resources/queries/default/join_11.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testSelectDistinct.sql
* tajo-core/tajo-core-backend/src/test/queries/select_9.sql
* tajo-core/tajo-core-backend/src/test/queries/create_table_3.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_partition_by_hash_1.sql
* tajo-catalog/tajo-catalog-common/src/main/java/org/apache/tajo/catalog/statistics/StatisticsUtil.java
* tajo-core/tajo-core-backend/src/test/queries/create_table_12.hiveql
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testWhereCondWithAlias1.result
* tajo-core/tajo-core-backend/src/test/resources/results/TestCaseByCases/testTAJO415Case.result
* tajo-core/tajo-core-backend/src/test/queries/create_table_12.sql
* tajo-core/tajo-core-backend/src/test/queries/select_12.hiveql
* tajo-core/tajo-core-backend/src/test/queries/join_10.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestSortQuery/testSortAfterGroupbyWithAlias.result
* tajo-core/tajo-core-backend/src/test/resources/results/TestBuiltinFunctions/testMinLong.result
* tajo-core/tajo-core-backend/src/test/resources/queries/TestBuiltinFunctions/testSplitPartByString.sql
* tajo-core/tajo-core-backend/src/test/queries/exists_predicate_2.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testSelectAsterik.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/insert_into_select_1.sql
* tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/engine/planner/global/GlobalPlanner.java
* tajo-core/tajo-core-backend/src/test/resources/queries/default/exists_predicate_2.sql
* tajo-core/tajo-core-backend/src/test/queries/select_10.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestTableSubQuery/testGroupBySubQuery.result
* tajo-core/tajo-core-backend/src/test/queries/insert_into_select_3.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestBuiltinFunctions/testAvgDouble.result
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testSelectDistinct.result
* tajo-core/tajo-core-backend/src/test/resources/queries/default/select_9.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testRealValueCompare.result
* tajo-core/tajo-core-backend/src/test/resources/queries/TestTableSubQuery/testGroupBySubQuery.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestTPCH/testQ2FourJoins.sql
* tajo-core/tajo-core-backend/src/test/queries/create_table_partition_by_column.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/select_11.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_4.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testNotInClause.result
* tajo-core/tajo-core-backend/src/test/queries/insert_into_select_1.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestSortQuery/testTopK.result
* tajo-core/tajo-core-backend/src/test/resources/queries/default/set_1.sql
* tajo-core/tajo-core-backend/src/test/queries/in_subquery_2.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestGroupByQuery/testHavingWithAggFunction.result
* tajo-core/tajo-core-backend/src/test/resources/queries/default/select_2.sql
* tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/query/TestTableSubQuery.java
* tajo-core/tajo-core-backend/src/test/queries/select_11.sql
* tajo-core/tajo-core-backend/src/test/queries/join_15.hiveql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/join_6.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestBuiltinFunctions/testMaxLong.result
* tajo-core/tajo-core-backend/src/test/queries/create_table_8.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/set_3.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testSelect.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestJoinQuery/testRightOuterJoin1.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestBuiltinFunctions/testSplitPart.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/join_15.hiveql
* tajo-core/tajo-core-backend/src/test/queries/join_11.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestJoinQuery/testJoinRefEval.sql
* tajo-core/tajo-core-backend/src/test/queries/select_3.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testNotInStrClause.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_8.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestBuiltinFunctions/testAvgInt.result
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testWhereCond1.result
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testWhereCond1.sql
* tajo-core/tajo-core-backend/src/test/queries/insert_into_select_2.sql
* tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/client/TestDDLBuilder.java
* tajo-core/tajo-core-backend/src/test/queries/join_5.sql
* tajo-core/tajo-core-backend/src/test/queries/in_subquery_1.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testWhereCondWithAlias2.result
* tajo-core/tajo-core-backend/src/test/resources/queries/TestJoinQuery/testFullOuterJoin1.sql
* tajo-core/tajo-core-backend/src/test/queries/select_13.hiveql
* tajo-core/tajo-core-backend/src/test/resources/results/TestBuiltinFunctions/testRandom.result
* tajo-core/tajo-core-backend/src/test/resources/queries/TestTableSubQuery/testJoinSubQuery.sql
* tajo-core/tajo-core-backend/src/test/queries/join_6.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/join_12.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/select_13.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_5.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/insert_overwrite_into_select_3.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestSelectQuery/testWhereCondWithAlias2.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestSelectQuery/testSelect3.result
* tajo-core/tajo-core-backend/src/test/resources/queries/default/table_subquery2.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_7.sql
* tajo-core/tajo-core-backend/src/test/queries/select_6.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_12.hiveql
* tajo-core/tajo-core-backend/src/test/queries/join_13.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_3.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/set_2.sql
* tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/query/TestCreateTable.java
* tajo-core/tajo-core-backend/src/test/queries/insert_overwrite_into_select_1.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_partitioned_table_as_select.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestBuiltinFunctions/testAvgDouble.sql
* tajo-core/tajo-core-backend/src/test/results/testBuildDDL.result
* tajo-core/tajo-core-backend/src/test/resources/queries/TestGroupByQuery/testHavingWithNamedTarget.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/TestCreateTable/table1_ddl.sql
* tajo-core/tajo-core-backend/src/test/queries/create_table_11.hiveql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/create_table_11.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestJoinQuery/testFullOuterJoin1.result
* tajo-core/tajo-core-backend/src/test/queries/create_table_partition_by_hash_2.sql
* tajo-core/tajo-core-backend/src/test/resources/queries/default/select_5.sql
* tajo-core/tajo-core-backend/src/test/resources/results/TestGroupByQuery/testComplexParameter2.result
* tajo-core/tajo-core-backend/src/test/resources/queries/default/insert_into_select_2.sql


> Add a test development kit for unit tests based on executions of queries
> ------------------------------------------------------------------------
>
>                 Key: TAJO-476
>                 URL: https://issues.apache.org/jira/browse/TAJO-476
>             Project: Tajo
>          Issue Type: Improvement
>            Reporter: Hyunsik Choi
>            Assignee: Hyunsik Choi
>             Fix For: 0.8-incubating
>
>         Attachments: TAJO-476.patch, TAJO-476_20140106_14:50:26.patch
>
>
> Relational algebra has numerous combinations, so SQL queries also have numerous cases
that we can't figure out. One nice way of various ways to make and keep Tajo stable is to
add lots of unit tests that cover many cases.
> In many unit tests, we use front-end tests which execute SQL queries and verify their
results. So far, we have implemented  Java code to verify them. I think that its productivity
is bad. It finally make us lazy to add various cases.
> This patch adds QueryCaseTestBase class to help developers to add unit tests with little
effort. QueryTestCaseBase provides useful methods to easily execute queries and verify their
results.
> It uses four resource directories:
>  * src/test/resources/dataset - contains a set of data files. It contains sub directories,
each of which corresponds each test class. All data files in each sub directory can be used
in the corresponding test class.
>  * src/test/resources/queries - This is the query directory. It contains sub directories,
each of which corresponds each test class. All query files in each sub directory can be used
in the corresponding test class.
>  * src/test/resources/results - This is the result directory. It contains sub directories,
each of which corresponds each test class. All result files in each sub directory can be used
in the corresponding test class.
> For example, if you create a test class named TestJoinQuery, you should create a pair
of query and result set directories as follows:
> {noformat}
>     src-|
>         |- resources
>               |- dataset
>               |     |- TestJoinQuery
>               |              |- table1.tbl
>               |              |- table2.tbl
>               |
>               |- queries
>               |     |- TestJoinQuery
>               |              |- TestInnerJoin.sql
>               |              |- table1_ddl.sql
>               |              |- table2_ddl.sql
>               |
>               |- results
>                     |- TestJoinQuery
>                              |- TestInnerJoin.result
> {noformat}
> QueryTestCaseBase basically provides the following methods:
> * executeQuery() - executes a corresponding query and returns an ResultSet instance
> * executeQuery(String fileName) - executes a given query file included in the corresponding
query file in the current class's query directory
> * assertResultSet() - check if the query result is equivalent to the expected result
included in the corresponding result file in the current class's result directory.
> * cleanQuery() - clean up all resources
> * executeDDL() - execute a DDL query like create or drop table.
> In order to make use of the above methods, query files and results file must be as follows:
>  *  Each query file must be located on the subdirectory whose structure must be src/resources/queries/$\{ClassName\},
where $\{ClassName\} indicates an actual test class's simple name.
>  *  Each result file must be located on the subdirectory whose structure must be src/resources/results/$\{ClassName\},
where $\{ClassName\} indicates an actual test class's simple name.
> Especially, executeQuery() and assertResultSet(ResultSet) methods automatically finds
a query file to be executed and a result to be compared, which are corresponding to the running
class and method. For them, query and result files must additionally comply the followings:
>  *  Each result file must have the file extension '.result'
>  *  Each query file must have the file extension '.sql'.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message