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

Move Function to Access Drill Temp Directory to Utility Library

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.17.0
    • 1.18.0
    • None
    • None

    Description

      In the codebase there are several instances in which plugins use the DRILL_TEMP_DIRECTORY.  These instances all use cut/paste code seen below.  This Jira will create a utility function to do this, and replace all instances of this cut/paste code with a function call.

       

      {{ if (context.getOptions().getOption(ExecConstants.DRILL_TMP_DIR) != null)

      { drillTempDir = context.getOptions().getOption(ExecConstants.DRILL_TMP_DIR).string_val; }

      else

      { drillTempDir = System.getenv("DRILL_TMP_DIR"); }

      }}

      Attachments

        Issue Links

          Activity

            People

              cgivre Charles Givre
              cgivre Charles Givre
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: