Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-3500

Provide additional information while registering storage plugin optimizer rules

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • None
    • None

    Description

      Currently all the optimizer rules internal to Drill have access to QueryContext. This is used by a few rules like PruneScanRule which invoke the interpreter to perform partition pruning. However the rules that belong to specific storage plugins don't have access to this information. This JIRA aims to do the following

      1. Add a new interface OptimizerRulesContext that will be implemented by QueryContext. It will contain all the information needed by the rules. This context will be passed to the storage plugin method while getting the optimizer rules specific to that storage plugin.

      2. Restrict existing internal rules to only accept OptimizerRulesContext instead of QueryContext so information in QueryContext has better encapsulation.

      Attachments

        Issue Links

          Activity

            People

              mehant Mehant Baid
              mehant Mehant Baid
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: