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

Provide a way to set common environment variable between sqlline and Drillbit differently.

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.12.0
    • Component/s: None
    • Labels:

      Description

      Drill has distrib-env.sh which is used to set any distribution specific environment consumed by both sqlline and Drillbit. These environment variables can be overridden by drill-env.sh. But there is no clean way to know if these scripts were sourced for Drillbit or for sqlline, currently all the variables will be set for both the scripts.
      With this JIRA we will introduce a separated environment variable DRILLBIT_CONTEXT which will only be set inside drillbit.sh. Based on this variable any script called later in the pipeline can make decision's to set/unset an environment variable or to set the common environment variable differently for sqlline and Drillbit.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shamirwasia Sorabh Hamirwasia
                Reporter:
                shamirwasia Sorabh Hamirwasia
                Reviewer:
                Paul Rogers
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: