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

Refactor HiveOpConverter

    XMLWordPrintableJSON

Details

    Description

      HiveOpConverter is on it's way to become a monster class. It is already ~1300 lines long, and expected to grow. It should be refactored, cut into multiple classes in a reasonable way. It is a natural way to do this is to create separate visitor classes for the different RelNodes, which are already handled in different functions within HiveOpConverter. That way HiveOpConverter can be the dispatcher among those visitor classes, while each of them are handling some specific work, potentially requesting sub nodes to be dispatched by HiveOpConverter. The functions used by multiple visitors should be put into some utility class.

      Attachments

        1. HIVE-22525.02.patch
          148 kB
          Miklos Gergely
        2. HIVE-22525.01.patch
          144 kB
          Miklos Gergely

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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