You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tajo.apache.org by bl...@apache.org on 2015/01/19 02:45:33 UTC

tajo git commit: TAJO-1225: Fix wrong schema name in JDBC driver. (jaehwa)

Repository: tajo
Updated Branches:
  refs/heads/master 1bf71f6f5 -> 76ece8b87


TAJO-1225: Fix wrong schema name in JDBC driver. (jaehwa)

Closes #330


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

Branch: refs/heads/master
Commit: 76ece8b874f4a0c5554e784d7bfcc1474b217c47
Parents: 1bf71f6
Author: JaeHwa Jung <bl...@apache.org>
Authored: Mon Jan 19 10:44:03 2015 +0900
Committer: JaeHwa Jung <bl...@apache.org>
Committed: Mon Jan 19 10:44:03 2015 +0900

----------------------------------------------------------------------
 CHANGES                                                          | 2 ++
 tajo-common/src/main/java/org/apache/tajo/TajoConstants.java     | 2 +-
 .../results/TestTajoDatabaseMetaData/getSchemas1.result          | 2 +-
 .../results/TestTajoDatabaseMetaData/getSchemas2.result          | 2 +-
 .../resources/results/TestTajoDatabaseMetaData/getTables1.result | 4 ++--
 .../resources/results/TestTajoDatabaseMetaData/getTables2.result | 4 ++--
 6 files changed, 9 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tajo/blob/76ece8b8/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index e33ca6f..212131d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -164,6 +164,8 @@ Release 0.9.1 - unreleased
 
   BUG FIXES
 
+    TAJO-1225: Fix wrong schema name in JDBC driver. (jaehwa)
+
     TAJO-1304: Can not found TextFile in catalog. (jinho)
 
     TAJO-1299: TB and PB representations in StorageUnit are overflow.

http://git-wip-us.apache.org/repos/asf/tajo/blob/76ece8b8/tajo-common/src/main/java/org/apache/tajo/TajoConstants.java
----------------------------------------------------------------------
diff --git a/tajo-common/src/main/java/org/apache/tajo/TajoConstants.java b/tajo-common/src/main/java/org/apache/tajo/TajoConstants.java
index 15336bb..e6fc89b 100644
--- a/tajo-common/src/main/java/org/apache/tajo/TajoConstants.java
+++ b/tajo-common/src/main/java/org/apache/tajo/TajoConstants.java
@@ -29,7 +29,7 @@ public class TajoConstants {
 
   public static final String DEFAULT_TABLESPACE_NAME = "default";
   public static final String DEFAULT_DATABASE_NAME = "default";
-  public static final String DEFAULT_SCHEMA_NAME = "public";
+  public static final String DEFAULT_SCHEMA_NAME = "";
 
   /** Java 6 only recognize GMT instead of UTC. So, we should keep using GMT. */
   public static final String DEFAULT_SYSTEM_TIMEZONE = "GMT";

http://git-wip-us.apache.org/repos/asf/tajo/blob/76ece8b8/tajo-core/src/test/resources/results/TestTajoDatabaseMetaData/getSchemas1.result
----------------------------------------------------------------------
diff --git a/tajo-core/src/test/resources/results/TestTajoDatabaseMetaData/getSchemas1.result b/tajo-core/src/test/resources/results/TestTajoDatabaseMetaData/getSchemas1.result
index f922ad7..0a013d9 100644
--- a/tajo-core/src/test/resources/results/TestTajoDatabaseMetaData/getSchemas1.result
+++ b/tajo-core/src/test/resources/results/TestTajoDatabaseMetaData/getSchemas1.result
@@ -1,3 +1,3 @@
 TABLE_SCHEM,TABLE_CATALOG
 -------------------------------
-public,jdbc_test1
\ No newline at end of file
+,jdbc_test1
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/tajo/blob/76ece8b8/tajo-core/src/test/resources/results/TestTajoDatabaseMetaData/getSchemas2.result
----------------------------------------------------------------------
diff --git a/tajo-core/src/test/resources/results/TestTajoDatabaseMetaData/getSchemas2.result b/tajo-core/src/test/resources/results/TestTajoDatabaseMetaData/getSchemas2.result
index f922ad7..0a013d9 100644
--- a/tajo-core/src/test/resources/results/TestTajoDatabaseMetaData/getSchemas2.result
+++ b/tajo-core/src/test/resources/results/TestTajoDatabaseMetaData/getSchemas2.result
@@ -1,3 +1,3 @@
 TABLE_SCHEM,TABLE_CATALOG
 -------------------------------
-public,jdbc_test1
\ No newline at end of file
+,jdbc_test1
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/tajo/blob/76ece8b8/tajo-core/src/test/resources/results/TestTajoDatabaseMetaData/getTables1.result
----------------------------------------------------------------------
diff --git a/tajo-core/src/test/resources/results/TestTajoDatabaseMetaData/getTables1.result b/tajo-core/src/test/resources/results/TestTajoDatabaseMetaData/getTables1.result
index 2ed02c8..201d325 100644
--- a/tajo-core/src/test/resources/results/TestTajoDatabaseMetaData/getTables1.result
+++ b/tajo-core/src/test/resources/results/TestTajoDatabaseMetaData/getTables1.result
@@ -1,4 +1,4 @@
 TABLE_CAT,TABLE_SCHEM,TABLE_NAME,TABLE_TYPE,REMARKS
 -------------------------------
-jdbc_test3,public,table1,TABLE,
-jdbc_test3,public,table2,TABLE,
\ No newline at end of file
+jdbc_test3,,table1,TABLE,
+jdbc_test3,,table2,TABLE,
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/tajo/blob/76ece8b8/tajo-core/src/test/resources/results/TestTajoDatabaseMetaData/getTables2.result
----------------------------------------------------------------------
diff --git a/tajo-core/src/test/resources/results/TestTajoDatabaseMetaData/getTables2.result b/tajo-core/src/test/resources/results/TestTajoDatabaseMetaData/getTables2.result
index 4c8d39f..65cde70 100644
--- a/tajo-core/src/test/resources/results/TestTajoDatabaseMetaData/getTables2.result
+++ b/tajo-core/src/test/resources/results/TestTajoDatabaseMetaData/getTables2.result
@@ -1,4 +1,4 @@
 TABLE_CAT,TABLE_SCHEM,TABLE_NAME,TABLE_TYPE,REMARKS
 -------------------------------
-Jdbc_Test4,public,table3,TABLE,
-Jdbc_Test4,public,table4,TABLE,
\ No newline at end of file
+Jdbc_Test4,,table3,TABLE,
+Jdbc_Test4,,table4,TABLE,
\ No newline at end of file