use of org.apache.hadoop.hive.ql.tools.LineageInfo in project hive by apache.
the class TestLineageInfo method testSimpleQuery2.
public void testSimpleQuery2() {
LineageInfo lep = new LineageInfo();
try {
lep.getLineageInfo("FROM (FROM src select src.key, src.value " + "WHERE src.key < 10 UNION ALL FROM src SELECT src.* WHERE src.key > 10 ) unioninput " + "INSERT OVERWRITE DIRECTORY '../../../../build/contrib/hive/ql/test/data/warehouse/union.out' " + "SELECT unioninput.*");
TreeSet<String> i = new TreeSet<String>();
TreeSet<String> o = new TreeSet<String>();
i.add("src");
checkOutput(lep, i, o);
} catch (Exception e) {
e.printStackTrace();
fail("Failed");
}
}
Aggregations