hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <>
Subject [jira] [Work logged] (HIVE-22747) Break up DDLSemanticAnalyzer - extract Table info and lock analyzers
Date Tue, 11 Feb 2020 18:16:00 GMT


ASF GitHub Bot logged work on HIVE-22747:

                Author: ASF GitHub Bot
            Created on: 11/Feb/20 18:15
            Start Date: 11/Feb/20 18:15
    Worklog Time Spent: 10m 
      Work Description: miklosgergely commented on pull request #882: HIVE-22747 Break up
DDLSemanticAnalyzer - extract Table info and lock analyzers

 File path: ql/src/java/org/apache/hadoop/hive/ql/ddl/
 @@ -219,4 +220,21 @@ private static String getHS2Host(HiveConf conf) throws SemanticException
     throw new SemanticException("Kill query is only supported in HiveServer2 (not hive cli)");
+  /**
+   * Get the fully qualified name in the node.
+   * E.g. the node of the form ^(DOT ^(DOT a b) c) will generate a name of the form "a.b.c".
+   */
+  public static String getFQName(ASTNode node) {
 Review comment:
   The original code for this was not removed yet, as it is still used by some other analyzers
which are still in DDLSemanticAnalyzer, see the static class QualifiedNameUtil.  I don't see
why wouldn't it work in quoted case, I guess the quotes are removed before building the ASTTree,
isn't that the case?
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

Issue Time Tracking

    Worklog Id:     (was: 385331)
    Time Spent: 50m  (was: 40m)

> Break up DDLSemanticAnalyzer - extract Table info and lock analyzers
> --------------------------------------------------------------------
>                 Key: HIVE-22747
>                 URL:
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Miklos Gergely
>            Assignee: Miklos Gergely
>            Priority: Major
>              Labels: pull-request-available, refactor-ddl
>         Attachments: HIVE-22747.01.patch, HIVE-22747.02.patch
>          Time Spent: 50m
>  Remaining Estimate: 0h
> DDLSemanticAnalyzer is a huge class, more than 4000 lines long. The goal is to refactor
it in order to have everything cut into more handleable classes under the packageĀ  org.apache.hadoop.hive.ql.exec.ddl:
>  * have a separate class for each analyzers
>  * have a package for each operation, containing an analyzer, a description, and an operation,
so the amount of classes under a package is more manageable
> Step #13: extract the table info and lock related analyzers from DDLSemanticAnalyzer,
and move them under the new package.

This message was sent by Atlassian Jira

View raw message