Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
1.2.0
Description
public static boolean validateASTForUnsupportedTokens(ASTNode ast) { String astTree = ast.toStringTree(); // if any of following tokens are present in AST, bail out String[] tokens = { "TOK_CHARSETLITERAL", "TOK_TABLESPLITSAMPLE" }; for (String token : tokens) { if (astTree.contains(token)) { return false; } } return true; }
This is an issue for a SQL query which is bigger in AST form than in text (~700kb).
Attachments
Attachments
Issue Links
- links to