Repository: tajo Updated Branches: refs/heads/master 4564c37fa -> ef94bb38d
TAJO-1902: Add line delimiter for repair partition in TajoDump. Closes #795 Project: http://git-wip-us.apache.org/repos/asf/tajo/repo Commit: http://git-wip-us.apache.org/repos/asf/tajo/commit/ef94bb38 Tree: http://git-wip-us.apache.org/repos/asf/tajo/tree/ef94bb38 Diff: http://git-wip-us.apache.org/repos/asf/tajo/diff/ef94bb38 Branch: refs/heads/master Commit: ef94bb38d225deaff2d1eeb3d916fbe765412c3a Parents: 4564c37 Author: JaeHwa Jung <[email protected]> Authored: Thu Oct 1 07:29:29 2015 +0900 Committer: JaeHwa Jung <[email protected]> Committed: Thu Oct 1 07:29:29 2015 +0900 ---------------------------------------------------------------------- CHANGES | 4 +++- tajo-cli/src/main/java/org/apache/tajo/cli/tools/TajoDump.java | 2 +- .../resources/results/TestTajoDump/testPartitionsDump.result | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tajo/blob/ef94bb38/CHANGES ---------------------------------------------------------------------- diff --git a/CHANGES b/CHANGES index ed11b5f..83c1790 100644 --- a/CHANGES +++ b/CHANGES @@ -303,7 +303,9 @@ Release 0.11.0 - unreleased BUG FIXES - TAJO-1889: UndefinedColumnException when a query with table subquery is + TAJO-1902: Add line delimiter for repair partition in TajoDump. (jaehwa) + + TAJO-1889: UndefinedColumnException when a query with table subquery is executed on self-describing tables. (jihoon) TAJO-1894: Filter condition is ignored when a query involves multiple http://git-wip-us.apache.org/repos/asf/tajo/blob/ef94bb38/tajo-cli/src/main/java/org/apache/tajo/cli/tools/TajoDump.java ---------------------------------------------------------------------- diff --git a/tajo-cli/src/main/java/org/apache/tajo/cli/tools/TajoDump.java b/tajo-cli/src/main/java/org/apache/tajo/cli/tools/TajoDump.java index 3204a88..fcfee70 100644 --- a/tajo-cli/src/main/java/org/apache/tajo/cli/tools/TajoDump.java +++ b/tajo-cli/src/main/java/org/apache/tajo/cli/tools/TajoDump.java @@ -196,7 +196,7 @@ public class TajoDump { // for (PartitionDescProto eachPartitionProto : partitionProtos) { // writer.write(DDLBuilder.buildDDLForAddPartition(table, eachPartitionProto)); // } - writer.write(String.format("ALTER TABLE %s REPAIR PARTITION", + writer.write(String.format("ALTER TABLE %s REPAIR PARTITION;", CatalogUtil.denormalizeIdentifier(databaseName) + "." + CatalogUtil.denormalizeIdentifier(tableName))); writer.write("\n\n"); http://git-wip-us.apache.org/repos/asf/tajo/blob/ef94bb38/tajo-core-tests/src/test/resources/results/TestTajoDump/testPartitionsDump.result ---------------------------------------------------------------------- diff --git a/tajo-core-tests/src/test/resources/results/TestTajoDump/testPartitionsDump.result b/tajo-core-tests/src/test/resources/results/TestTajoDump/testPartitionsDump.result index d678f89..677b5f2 100644 --- a/tajo-core-tests/src/test/resources/results/TestTajoDump/testPartitionsDump.result +++ b/tajo-core-tests/src/test/resources/results/TestTajoDump/testPartitionsDump.result @@ -17,7 +17,7 @@ CREATE TABLE "TestTajoDump"."TableName3" (col1 INT4, col2 INT4) USING TEXT WITH -- -- Table Partitions: TableName3 -- -ALTER TABLE "TestTajoDump"."TableName3" REPAIR PARTITION +ALTER TABLE "TestTajoDump"."TableName3" REPAIR PARTITION; @@ -29,4 +29,4 @@ CREATE TABLE "TestTajoDump"."TableName4" (col1 INT4, col2 INT4) USING TEXT WITH -- -- Table Partitions: TableName4 -- -ALTER TABLE "TestTajoDump"."TableName4" REPAIR PARTITION \ No newline at end of file +ALTER TABLE "TestTajoDump"."TableName4" REPAIR PARTITION; \ No newline at end of file
