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

Improve rule description for rules defined as subclasses

    XMLWordPrintableJSON

Details

    Description

      Consider the instances of HivePointLookupOptimizerRule (for joins, filters and projects).

      They use the default constructor for RelOptRule, which builds the rule description from the class name, and in case of nested classes, it takes only the inner class name.

      In this case, the names do not refer to HivePointLookupOptimizerRule and are too generic (e.g.,FilerCondition), it's hard to link them back to the rule they belong to without looking at the source code.

      This is particularly problematic now that we have more detailed logging for CBO (see HIVE-25816), where rule descriptions are printed.

      The aim of the PR is to improve the rule description by passing an explicit string whenever the rule (class) name alone is not enough.

      Attachments

        Issue Links

          Activity

            People

              asolimando Alessandro Solimando
              asolimando Alessandro Solimando
              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 - 50m
                  50m