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

Apply needed StoragePlugins's RuleSet to the planner

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • 1.12.0
    • None
    • None

    Description

      Now once we configure Drill with more than one StoragePlugins, it will apply all the plugins's rules to user's queries even the queries not contain corresponding storage plugin. The reason is the method below of QueryContext

        public StoragePluginRegistry getStorage() {
          return drillbitContext.getStorage();
        }
      

      From QueryContext's name , the method should return the query involved storage plugin registry not all the configured storage plugins.

      So we need to identify the involved storage plugin at the parse stage, and set the collected involved storage plugins to the QueryContext. This will also benefit the work to do a schema level security control. Maybe a new method with the name getInvolvedStorage will be more accurate.

      Attachments

        Activity

          People

            weijie Weijie Tong
            weijie Weijie Tong
            Arina Ielchiieva Arina Ielchiieva
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: