public class TestHiveQLAnalyzer {
private static final Log LOG = LogFactory.getLog(TestHiveQLAnalyzer.class.getName());
protected static final String BASE_PATH = "src/test/resources/queries/default/";
public static Expr parseQuery(String sql) {
ANTLRInputStream input = new ANTLRInputStream(sql);
SQLLexer lexer = new SQLLexer(input);
CommonTokenStream tokens = new CommonTokenStream(lexer);
SQLParser parser = new SQLParser(tokens);
parser.setBuildParseTree(true);
SQLAnalyzer visitor = new SQLAnalyzer();