Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21346

Refactor Hive DDL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Hive

    Description

      Hive DDL has multiple problems:

      • DDLTask is a huge class, needs to be cut to smaller pieces
      • DDLSemanticAnalyzer is a huge class, needs to be cut to smaller pieces
      • DDLWork has a bad structure by having a field for every possible DDL operation
      • DDLDesc subclasses are put into one package which has an endless list of classes, should be separated by subjects
      • Many DDLDesc subclasses are not immutable

      Attachments

        1.
        Break up DDLTask - extract Database related operations Sub-task Closed Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 8h
        2.
        Break up DDLTask - extract Table related operations Sub-task Closed Miklos Gergely  
        3.
        Break up DDLTask - extract View related operations Sub-task Closed Miklos Gergely  
        4.
        Break up DDLTask - extract Function related operations Sub-task Closed Miklos Gergely  
        5.
        Break up DDLTask - extract Privilege related operations Sub-task Closed Miklos Gergely  
        6.
        Break up DDLTask - extract Workload Management related operations Sub-task Closed Miklos Gergely  
        7.
        Break up DDLTask - extract Process related operations Sub-task Closed Miklos Gergely  
        8.
        Break up DDLTask - extract Partition related operations Sub-task Closed Miklos Gergely  
        9.
        Break up DDLTask - extract Column and Constraint related operations Sub-task Closed Miklos Gergely  
        10.
        Break up DDLTask - extract Storage related operations Sub-task Closed Miklos Gergely  
        11.
        Break up DDLTask - extract rest of the Alter Table operations Sub-task Closed Miklos Gergely  
        12.
        Break up DDLTask - extract rest of the operations Sub-task Closed Miklos Gergely  
        13.
        Break up DDLTask - cleanup Sub-task Closed Miklos Gergely  
        14.
        Move Function and Macro related DDL operations into the DDL framework Sub-task Closed Miklos Gergely  
        15.
        Handle each Alter Database types in a separate desc / operation Sub-task Closed Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 20m
        16.
        Move Materialized View Update under DDL Sub-task Closed Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 50m
        17.
        Clean up Concatenate and Msck DDL commands Sub-task Closed Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 2h
        18.
        Clean up CreateTableLikeOperation Sub-task Closed Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 20m
        19.
        Clean up DescTableOperation Sub-task Closed Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 40m
        20.
        Cut DropTableDesc/Operation to drop table, view and materialized view Sub-task Closed Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 0.5h
        21.
        Clean up TruncateTable operation and desc Sub-task Closed Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 20m
        22.
        Clean up ShowCreateTableOperation Sub-task Resolved Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 1h 40m
        23.
        Clean up Add Partition Sub-task Closed Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 20m
        24.
        Break up DDLSemanticAnalyzer - extract Database related analyzers Sub-task Resolved Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 2h
        25.
        Clean up Drop Partition Sub-task Closed Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 20m
        26.
        Break up DDLSemanticAnalyzer - extract Function related analyzers Sub-task Resolved Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 1.5h
        27.
        Break up DDLSemanticAnalyzer - extract Privilege related analyzers Sub-task Closed Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 1h
        28.
        Break up DDLSemanticAnalyzer - extract Process related analyzers Sub-task Resolved Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 20m
        29.
        Break up DDLSemanticAnalyzer - extract Workload Management related analyzers Sub-task Resolved Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 20m
        30.
        Break up DDLSemanticAnalyzer - extract View related analyzers Sub-task Resolved Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 1.5h
        31.
        Break up DDLSemanticAnalyzer - extract Other analyzers Sub-task Resolved Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 40m
        32.
        Break up DDLSemanticAnalyzer - extract Table creation analyzers Sub-task Resolved Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 1h 10m
        33.
        Break up DDLSemanticAnalyzer - extract Table constraints analyzers Sub-task Resolved Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 0.5h
        34.
        Break up DDLSemanticAnalyzer - extract Table column analyzers Sub-task Resolved Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 20m
        35.
        Break up DDLSemanticAnalyzer - extract Table partition analyzers Sub-task Resolved Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 20m
        36.
        Break up DDLSemanticAnalyzer - extract Table info and lock analyzers Sub-task Resolved Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 2h 40m
        37.
        Break up DDLSemanticAnalyzer - extract Table storage analyzers Sub-task Resolved Miklos Gergely  
        38.
        Break up DDLSemanticAnalyzer - extract the rest of the Alter Table analyzers Sub-task Resolved Miklos Gergely  
        39.
        Use the same PerfLogger all over Compiler Sub-task Resolved Miklos Gergely  
        40.
        Extract Create View analyzer from SemanticAnalyzer Sub-task Resolved Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 40m
        41.
        Extract Create Materialized View analyzer from SemanticAnalyzer Sub-task Open Miklos Gergely  
        42.
        Move show specific codes under DDL and cut MetaDataFormatter classes to pieces Sub-task Resolved Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 8.5h
        43.
        Clean up checkstyle violations in ddl Sub-task Resolved Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 20m
        44.
        Remove unnecessary parameter from AbstractAlterTableOperation Sub-task Resolved Miklos Gergely

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 20m

        Activity

          People

            mgergely Miklos Gergely
            mgergely Miklos Gergely
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 37.5h
                37.5h