Repository: tajo
Updated Branches:
  refs/heads/branch-0.11.0 dd79f8c5d -> b8e947313


TAJO-1902: Add line delimiter for repair partition in TajoDump.


Project: http://git-wip-us.apache.org/repos/asf/tajo/repo
Commit: http://git-wip-us.apache.org/repos/asf/tajo/commit/b8e94731
Tree: http://git-wip-us.apache.org/repos/asf/tajo/tree/b8e94731
Diff: http://git-wip-us.apache.org/repos/asf/tajo/diff/b8e94731

Branch: refs/heads/branch-0.11.0
Commit: b8e9473131ec131e33569f316df68be5df06ebd9
Parents: dd79f8c
Author: JaeHwa Jung <[email protected]>
Authored: Thu Oct 1 07:32:10 2015 +0900
Committer: JaeHwa Jung <[email protected]>
Committed: Thu Oct 1 07:32:10 2015 +0900

----------------------------------------------------------------------
 CHANGES                                                          | 2 ++
 tajo-cli/src/main/java/org/apache/tajo/cli/tools/TajoDump.java   | 2 +-
 .../resources/results/TestTajoDump/testPartitionsDump.result     | 4 ++--
 3 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tajo/blob/b8e94731/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 8247800..f37969b 100644
--- a/CHANGES
+++ b/CHANGES
@@ -287,6 +287,8 @@ Release 0.11.0 - unreleased
 
   BUG FIXES
 
+    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)
 

http://git-wip-us.apache.org/repos/asf/tajo/blob/b8e94731/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 ce043ec..8652478 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/b8e94731/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

Reply via email to