[
https://issues.apache.org/jira/browse/DRILL-5685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sorabh Hamirwasia resolved DRILL-5685.
--------------------------------------
Resolution: Fixed
> Provide a way to set common environment variable between sqlline and Drillbit
> differently.
> ------------------------------------------------------------------------------------------
>
> Key: DRILL-5685
> URL: https://issues.apache.org/jira/browse/DRILL-5685
> Project: Apache Drill
> Issue Type: Task
> Reporter: Sorabh Hamirwasia
> Assignee: Sorabh Hamirwasia
> Labels: ready-to-commit
> Fix For: 1.12.0
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)