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

Move Function to Access Drill Temp Directory to Utility Library

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.17.0
    • Fix Version/s: 1.18.0
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: