Description
SENTRY-1087 introduced a regression: the database name is not set in alter table column command.
SENTRY-1087 added a new case below, and it causes the currDB not set because its children are "TOK_TABNAME" and "TOK_ALTERTABLE_RENAMECOL" NONE IS "TOK_ALTERTABLE_SERIALIZER"
case HiveParser.TOK_ALTERTABLE: for (Node childNode : ast.getChildren()) { ASTNode childASTNode = (ASTNode) childNode; if ("TOK_ALTERTABLE_SERIALIZER".equals(childASTNode.getText())) { ASTNode serdeNode = (ASTNode) childASTNode.getChild(0); String serdeClassName = BaseSemanticAnalyzer.unescapeSQLString(serdeNode.getText()); setSerdeURI(serdeClassName); currDB = getCanonicalDb(); } } break;
Attachments
Attachments
Issue Links
- relates to
-
SENTRY-1209 Sentry does not block Hive's cross-schema table renames
- Resolved
- links to