forked from apache/hive
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HIVE-12346:Internally used variables in HiveConf should not be settab…
…le via command (Chaoyu Tang, reviewed by Xuefu Zhang)
- Loading branch information
1 parent
3bf280f
commit eef89a2
Showing
5 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
ql/src/test/queries/clientnegative/set_hiveconf_internal_variable0.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-- should fail: for some internal variables which should not be settable via set command | ||
desc src; | ||
|
||
set hive.added.jars.path=file://rootdir/test/added/a.jar; |
4 changes: 4 additions & 0 deletions
4
ql/src/test/queries/clientnegative/set_hiveconf_internal_variable1.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-- should fail: hive.conf.internal.variable.list is in restricted list | ||
desc src; | ||
|
||
set hive.conf.internal.variable.list=; |
11 changes: 11 additions & 0 deletions
11
ql/src/test/results/clientnegative/set_hiveconf_internal_variable0.q.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
PREHOOK: query: -- should fail: for some internal variables which should not be settable via set command | ||
desc src | ||
PREHOOK: type: DESCTABLE | ||
PREHOOK: Input: default@src | ||
POSTHOOK: query: -- should fail: for some internal variables which should not be settable via set command | ||
desc src | ||
POSTHOOK: type: DESCTABLE | ||
POSTHOOK: Input: default@src | ||
key string default | ||
value string default | ||
Query returned non-zero code: 1, cause: Cannot modify hive.added.jars.path at runtime. It is in the list of parameters that can't be modified at runtime |
11 changes: 11 additions & 0 deletions
11
ql/src/test/results/clientnegative/set_hiveconf_internal_variable1.q.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
PREHOOK: query: -- should fail: hive.conf.internal.variable.list is in restricted list | ||
desc src | ||
PREHOOK: type: DESCTABLE | ||
PREHOOK: Input: default@src | ||
POSTHOOK: query: -- should fail: hive.conf.internal.variable.list is in restricted list | ||
desc src | ||
POSTHOOK: type: DESCTABLE | ||
POSTHOOK: Input: default@src | ||
key string default | ||
value string default | ||
Query returned non-zero code: 1, cause: Cannot modify hive.conf.internal.variable.list at runtime. It is in the list of parameters that can't be modified at runtime |