hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Navis류승우 <navis....@nexr.com>
Subject Re: AST to Query Sring
Date Fri, 25 Jul 2014 01:00:11 GMT
You need TokenRewriteStream for the ASTNode. which is in Context or
ParseDriver.

String rewrite(TokenRewriteStream rewriter, ASTNode source) throws
Exception {
  // some modification..
  return rewriter.toString(source.getTokenStartIndex(),
source.getTokenStopIndex());
}

Thanks,
Navis


2014-07-25 7:17 GMT+09:00 Lin Liu <lliu.bigdata@gmail.com>:

> Hi folks,
>
> Currently I am working on a project which needs to generate query string
> based on the modified AST.
> Does Hive contain this mechanism already?
> If not, which tools would help to complete the task?
>
> Thanks in advance.
>
> Lin
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message