Package org.apache.tajo.algebra

Examples of org.apache.tajo.algebra.Expr.toJson()


    Preconditions.checkNotNull(sqlPath, hiveqlPath);
    String sql = FileUtil.readTextFile(new File(BASE_PATH + sqlPath));
    String hiveQL = FileUtil.readTextFile(new File(BASE_PATH + hiveqlPath));
    Expr expr = parseQuery(sql);
    Expr hiveExpr = parseHiveQL(hiveQL);
    assertEquals(expr.toJson(), hiveExpr.toJson());
  }

  @Test
  public void testSelect1() throws IOException {
    compareJsonResult("select_1.sql");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.