[ 
https://issues.apache.org/jira/browse/IMPALA-5736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Csaba Ringhofer resolved IMPALA-5736.
-------------------------------------
    Resolution: Fixed

c29ede7307040149d125b0feeb09f753ea9675e5

IMPALA-5736: Add impala-shell argument to set default query options
Query options can be set from command line and impala rc as
key=value pairs, where key is case insensitive.

Examples:
command line:
impala-shell.sh -Q MT_DOP=1 --query_option=MAX_ERRORS=200

.impalarc:
[impala.query_options]
EXPLAIN_LEVEL=2
MT_DOP=2

The options set in command line will update the ones
in impalarc one by one, so the result of the example
above will be:
EXPLAIN_LEVEL=2
MT_DOP=1
MAX_ERRORS=200

Additional changes:
- 0 and 1 are accepted as bools in section [impala] to
  make it more consistent with [impala.query_options]
- options that are expected to be bool but are not
  0/1/true/false lead to error instead of warning

Change-Id: I26a3b67230c80a99bd246b6af205d558fec9a986
Reviewed-on: http://gerrit.cloudera.org:8080/8038
Reviewed-by: Michael Brown <[email protected]>
Tested-by: Impala Public Jenkins

> Add impala-shell argument to set default query options
> ------------------------------------------------------
>
>                 Key: IMPALA-5736
>                 URL: https://issues.apache.org/jira/browse/IMPALA-5736
>             Project: IMPALA
>          Issue Type: Improvement
>          Components: Clients
>    Affects Versions: Impala 2.8.0
>            Reporter: Brad Barker
>            Assignee: Csaba Ringhofer
>            Priority: Minor
>              Labels: impala-shell, shell
>             Fix For: Impala 2.0
>
>
> The shell should allow setting default query options, e.g. via a flag and/or 
> in the impalarc file.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to