Modifying hive query programmatically- I am parsing hive query using ParseDriver.parse() method to get the parsed ASTNode tree. The use case to add some where clauses to it for row level security.
Now that I have modified the parse tree, Is there any existing method to convert it back to hive query string? I understand modifying the parse tree can create problems because it stores indices of original string also. One method is to do manual traversal to the tree and constructing string,