You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by ja...@apache.org on 2014/06/12 18:35:04 UTC

[13/24] git commit: DRILL-963: Fix Hive test [TestViews.testInfoSchemaWithView()] on Windows

DRILL-963: Fix Hive test [TestViews.testInfoSchemaWithView()] on Windows


Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/2903ed3a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/2903ed3a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/2903ed3a

Branch: refs/heads/master
Commit: 2903ed3a0c129396fb50a5e60a79f632a06fc944
Parents: 4773b57
Author: Aditya Kishore <ad...@maprtech.com>
Authored: Tue Jun 10 15:52:28 2014 -0700
Committer: Jacques Nadeau <ja...@apache.org>
Committed: Wed Jun 11 16:08:16 2014 -0700

----------------------------------------------------------------------
 .../jdbc/src/test/java/org/apache/drill/jdbc/test/TestViews.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/2903ed3a/exec/jdbc/src/test/java/org/apache/drill/jdbc/test/TestViews.java
----------------------------------------------------------------------
diff --git a/exec/jdbc/src/test/java/org/apache/drill/jdbc/test/TestViews.java b/exec/jdbc/src/test/java/org/apache/drill/jdbc/test/TestViews.java
index 6591752..7dc9c30 100644
--- a/exec/jdbc/src/test/java/org/apache/drill/jdbc/test/TestViews.java
+++ b/exec/jdbc/src/test/java/org/apache/drill/jdbc/test/TestViews.java
@@ -30,6 +30,8 @@ import static org.junit.Assert.assertTrue;
 /** Contains tests for creating/droping and using views in Drill. */
 public class TestViews extends TestJdbcQuery {
 
+  private final static String NEW_LINE = System.getProperty("line.separator");
+
   /** Helper test method for view tests */
   private void testViewHelper(final String viewCreate, final String viewName,
                               final String viewQuery, final String queryResult) throws Exception{
@@ -265,7 +267,7 @@ public class TestViews extends TestJdbcQuery {
               "WHERE TABLE_NAME = 'testview3'");
           result = JdbcAssert.toString(resultSet).trim();
           resultSet.close();
-          expected = "TABLE_CATALOG=DRILL; TABLE_SCHEMA=dfs.tmp; TABLE_NAME=testview3; VIEW_DEFINITION=SELECT *\nFROM `hive`.`kv`";
+          expected = "TABLE_CATALOG=DRILL; TABLE_SCHEMA=dfs.tmp; TABLE_NAME=testview3; VIEW_DEFINITION=SELECT *"+NEW_LINE+"FROM `hive`.`kv`";
           assertTrue(String.format("Generated string:\n%s\ndoes not match:\n%s", result, expected),
               expected.equals(result));