Exemple #1
0
 @Test
 public void testCopy1() {
   CopyStmt copyStmt = (CopyStmt) analyzer.parse(CopyStmt[0]).getParseTree();
   assertEquals("lineitem", copyStmt.getTableName());
   assertEquals(new Path("/tmp/tpch/lineitem"), copyStmt.getPath());
   assertEquals(StoreType.RCFILE, copyStmt.getStoreType());
   assertFalse(copyStmt.hasParams());
 }
Exemple #2
0
 @Test
 public void testCopy2() {
   CopyStmt copyStmt = (CopyStmt) analyzer.parse(CopyStmt[1]).getParseTree();
   assertEquals("lineitem", copyStmt.getTableName());
   assertEquals(new Path("/tmp/tpch/lineitem"), copyStmt.getPath());
   assertEquals(StoreType.CSV, copyStmt.getStoreType());
   assertTrue(copyStmt.hasParams());
   assertEquals("|", copyStmt.getParams().get("csv.delimiter"));
 }