Repository: hive
Updated Branches:
  refs/heads/master 47f45705f -> 4a33ec8fc


HIVE-18552: Split hive.strict.checks.large.query into two configs (Sahil 
Takiar, reviewed by Vihang Karajgaonkar)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/4a33ec8f
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/4a33ec8f
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/4a33ec8f

Branch: refs/heads/master
Commit: 4a33ec8fcae5f7d18105ef62e33150db6e853af5
Parents: 47f4570
Author: Sahil Takiar <stak...@cloudera.com>
Authored: Fri Feb 2 20:34:32 2018 -0600
Committer: Sahil Takiar <stak...@cloudera.com>
Committed: Fri Feb 2 20:34:32 2018 -0600

----------------------------------------------------------------------
 .../org/apache/hadoop/hive/conf/HiveConf.java   | 21 +++++++++++---------
 .../clientnegative/alter_view_failure6_2.q      |  2 +-
 .../queries/clientnegative/input_part0_neg_2.q  |  2 +-
 .../queries/clientnegative/strict_orderby_2.q   |  8 ++++++++
 .../queries/clientnegative/strict_pruning_2.q   |  4 +---
 .../clientnegative/alter_view_failure6.q.out    |  4 ++--
 .../clientnegative/alter_view_failure6_2.q.out  |  4 ++--
 .../clientnegative/compare_double_bigint.q.out  |  2 +-
 .../compare_double_bigint_2.q.out               |  2 +-
 .../clientnegative/compare_string_bigint.q.out  |  2 +-
 .../compare_string_bigint_2.q.out               |  2 +-
 ql/src/test/results/clientnegative/input4.q.out |  2 +-
 .../test/results/clientnegative/input4_2.q.out  |  2 +-
 .../clientnegative/input_part0_neg.q.out        |  2 +-
 .../clientnegative/input_part0_neg_2.q.out      |  2 +-
 .../results/clientnegative/strict_join.q.out    |  2 +-
 .../results/clientnegative/strict_join_2.q.out  |  2 +-
 .../results/clientnegative/strict_orderby.q.out |  2 +-
 .../clientnegative/strict_orderby_2.q.out       |  1 +
 .../results/clientnegative/strict_pruning.q.out |  2 +-
 .../clientnegative/strict_pruning_2.q.out       |  2 +-
 21 files changed, 41 insertions(+), 31 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
----------------------------------------------------------------------
diff --git a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java 
b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
index 4f2e6d3..99e8457 100644
--- a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
+++ b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
@@ -1096,11 +1096,14 @@ public class HiveConf extends Configuration {
         "hive.txn.valid.txns,hive.script.operator.env.blacklist",
         "Comma separated list of keys from the configuration file not to 
convert to environment " +
         "variables when invoking the script operator"),
-    HIVE_STRICT_CHECKS_LARGE_QUERY("hive.strict.checks.large.query", false,
+    HIVE_STRICT_CHECKS_ORDERBY_NO_LIMIT("hive.strict.checks.orderby.no.limit", 
false,
         "Enabling strict large query checks disallows the following:\n" +
         "  Orderby without limit.\n" +
+        "Note that this check currently does not consider data size, only the 
query pattern."),
+    
HIVE_STRICT_CHECKS_NO_PARTITION_FILTER("hive.strict.checks.no.partition.filter",
 false,
+        "Enabling strict large query checks disallows the following:\n" +
         "  No partition being picked up for a query against partitioned 
table.\n" +
-        "Note that these checks currently do not consider data size, only the 
query pattern."),
+        "Note that this check currently does not consider data size, only the 
query pattern."),
     HIVE_STRICT_CHECKS_TYPE_SAFETY("hive.strict.checks.type.safety", true,
         "Enabling strict type safety checks disallows the following:\n" +
         "  Comparing bigints and strings.\n" +
@@ -4971,10 +4974,10 @@ public class HiveConf extends Configuration {
   public static class StrictChecks {
 
     private static final String NO_LIMIT_MSG = makeMessage(
-        "Order by-s without limit", ConfVars.HIVE_STRICT_CHECKS_LARGE_QUERY);
+        "Order by-s without limit", 
ConfVars.HIVE_STRICT_CHECKS_ORDERBY_NO_LIMIT);
     public static final String NO_PARTITIONLESS_MSG = makeMessage(
         "Queries against partitioned tables without a partition filter",
-        ConfVars.HIVE_STRICT_CHECKS_LARGE_QUERY);
+        ConfVars.HIVE_STRICT_CHECKS_NO_PARTITION_FILTER);
     private static final String NO_COMPARES_MSG = makeMessage(
         "Unsafe compares between different types", 
ConfVars.HIVE_STRICT_CHECKS_TYPE_SAFETY);
     private static final String NO_CARTESIAN_MSG = makeMessage(
@@ -4984,17 +4987,17 @@ public class HiveConf extends Configuration {
 
     private static String makeMessage(String what, ConfVars setting) {
       return what + " are disabled for safety reasons. If you know what you 
are doing, please set "
-          + setting.varname + " to false and that " + 
ConfVars.HIVEMAPREDMODE.varname + " is not"
-          + " set to 'strict' to proceed. Note that if you may get errors or 
incorrect results if"
-          + " you make a mistake while using some of the unsafe features.";
+          + setting.varname + " to false and make sure that " + 
ConfVars.HIVEMAPREDMODE.varname +
+              " is not set to 'strict' to proceed. Note that you may get 
errors or incorrect " +
+              "results if you make a mistake while using some of the unsafe 
features.";
     }
 
     public static String checkNoLimit(Configuration conf) {
-      return isAllowed(conf, ConfVars.HIVE_STRICT_CHECKS_LARGE_QUERY) ? null : 
NO_LIMIT_MSG;
+      return isAllowed(conf, ConfVars.HIVE_STRICT_CHECKS_ORDERBY_NO_LIMIT) ? 
null : NO_LIMIT_MSG;
     }
 
     public static String checkNoPartitionFilter(Configuration conf) {
-      return isAllowed(conf, ConfVars.HIVE_STRICT_CHECKS_LARGE_QUERY)
+      return isAllowed(conf, ConfVars.HIVE_STRICT_CHECKS_NO_PARTITION_FILTER)
           ? null : NO_PARTITIONLESS_MSG;
     }
 

http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/ql/src/test/queries/clientnegative/alter_view_failure6_2.q
----------------------------------------------------------------------
diff --git a/ql/src/test/queries/clientnegative/alter_view_failure6_2.q 
b/ql/src/test/queries/clientnegative/alter_view_failure6_2.q
index aea2624..730a8f5 100644
--- a/ql/src/test/queries/clientnegative/alter_view_failure6_2.q
+++ b/ql/src/test/queries/clientnegative/alter_view_failure6_2.q
@@ -7,7 +7,7 @@ AS
 SELECT hr,key FROM srcpart;
 
 RESET hive.mapred.mode;
-SET hive.strict.checks.large.query=true;
+SET hive.strict.checks.no.partition.filter=true;
 
 -- strict mode should cause this to fail since view partition
 -- predicate does not correspond to an underlying table partition predicate

http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/ql/src/test/queries/clientnegative/input_part0_neg_2.q
----------------------------------------------------------------------
diff --git a/ql/src/test/queries/clientnegative/input_part0_neg_2.q 
b/ql/src/test/queries/clientnegative/input_part0_neg_2.q
index 47348de..9170744 100644
--- a/ql/src/test/queries/clientnegative/input_part0_neg_2.q
+++ b/ql/src/test/queries/clientnegative/input_part0_neg_2.q
@@ -1,6 +1,6 @@
 set hive.strict.checks.bucketing=false; 
 
 reset hive.mapred.mode;
-set hive.strict.checks.large.query=true;
+set hive.strict.checks.no.partition.filter=true;
 
 SELECT x.* FROM SRCPART x WHERE key = '2008-04-08';

http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/ql/src/test/queries/clientnegative/strict_orderby_2.q
----------------------------------------------------------------------
diff --git a/ql/src/test/queries/clientnegative/strict_orderby_2.q 
b/ql/src/test/queries/clientnegative/strict_orderby_2.q
new file mode 100644
index 0000000..0a93af7
--- /dev/null
+++ b/ql/src/test/queries/clientnegative/strict_orderby_2.q
@@ -0,0 +1,8 @@
+reset hive.mapred.mode;
+set hive.strict.checks.orderby.no.limit=true;
+
+EXPLAIN
+SELECT src.key, src.value from src order by src.key;
+
+SELECT src.key, src.value from src order by src.key;
+

http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/ql/src/test/queries/clientnegative/strict_pruning_2.q
----------------------------------------------------------------------
diff --git a/ql/src/test/queries/clientnegative/strict_pruning_2.q 
b/ql/src/test/queries/clientnegative/strict_pruning_2.q
index 393ef74..718566d 100644
--- a/ql/src/test/queries/clientnegative/strict_pruning_2.q
+++ b/ql/src/test/queries/clientnegative/strict_pruning_2.q
@@ -1,7 +1,5 @@
-set hive.strict.checks.bucketing=false; 
-
 reset hive.mapred.mode;
-set hive.strict.checks.large.query=true;
+set hive.strict.checks.no.partition.filter=true;
 
 EXPLAIN
 SELECT count(1) FROM srcPART;

http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/ql/src/test/results/clientnegative/alter_view_failure6.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientnegative/alter_view_failure6.q.out 
b/ql/src/test/results/clientnegative/alter_view_failure6.q.out
index 0227ba7..f295543 100644
--- a/ql/src/test/results/clientnegative/alter_view_failure6.q.out
+++ b/ql/src/test/results/clientnegative/alter_view_failure6.q.out
@@ -19,5 +19,5 @@ POSTHOOK: Input: default@srcpart
 POSTHOOK: Output: database:default
 POSTHOOK: Output: default@xxx7
 POSTHOOK: Lineage: xxx7.hr SIMPLE [(srcpart)srcpart.FieldSchema(name:hr, 
type:string, comment:null), ]
-FAILED: SemanticException [Error 10056]: Queries against partitioned tables 
without a partition filter are disabled for safety reasons. If you know what 
you are doing, please set hive.strict.checks.large.query to false and that 
hive.mapred.mode is not set to 'strict' to proceed. Note that if you may get 
errors or incorrect results if you make a mistake while using some of the 
unsafe features. No partition predicate for Alias "default.srcpart" Table 
"srcpart"
-FAILED: SemanticException [Error 10056]: Queries against partitioned tables 
without a partition filter are disabled for safety reasons. If you know what 
you are doing, please set hive.strict.checks.large.query to false and that 
hive.mapred.mode is not set to 'strict' to proceed. Note that if you may get 
errors or incorrect results if you make a mistake while using some of the 
unsafe features.
+FAILED: SemanticException [Error 10056]: Queries against partitioned tables 
without a partition filter are disabled for safety reasons. If you know what 
you are doing, please set hive.strict.checks.no.partition.filter to false and 
make sure that hive.mapred.mode is not set to 'strict' to proceed. Note that 
you may get errors or incorrect results if you make a mistake while using some 
of the unsafe features. No partition predicate for Alias "default.srcpart" 
Table "srcpart"
+FAILED: SemanticException [Error 10056]: Queries against partitioned tables 
without a partition filter are disabled for safety reasons. If you know what 
you are doing, please set hive.strict.checks.no.partition.filter to false and 
make sure that hive.mapred.mode is not set to 'strict' to proceed. Note that 
you may get errors or incorrect results if you make a mistake while using some 
of the unsafe features.

http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/ql/src/test/results/clientnegative/alter_view_failure6_2.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientnegative/alter_view_failure6_2.q.out 
b/ql/src/test/results/clientnegative/alter_view_failure6_2.q.out
index 0227ba7..f295543 100644
--- a/ql/src/test/results/clientnegative/alter_view_failure6_2.q.out
+++ b/ql/src/test/results/clientnegative/alter_view_failure6_2.q.out
@@ -19,5 +19,5 @@ POSTHOOK: Input: default@srcpart
 POSTHOOK: Output: database:default
 POSTHOOK: Output: default@xxx7
 POSTHOOK: Lineage: xxx7.hr SIMPLE [(srcpart)srcpart.FieldSchema(name:hr, 
type:string, comment:null), ]
-FAILED: SemanticException [Error 10056]: Queries against partitioned tables 
without a partition filter are disabled for safety reasons. If you know what 
you are doing, please set hive.strict.checks.large.query to false and that 
hive.mapred.mode is not set to 'strict' to proceed. Note that if you may get 
errors or incorrect results if you make a mistake while using some of the 
unsafe features. No partition predicate for Alias "default.srcpart" Table 
"srcpart"
-FAILED: SemanticException [Error 10056]: Queries against partitioned tables 
without a partition filter are disabled for safety reasons. If you know what 
you are doing, please set hive.strict.checks.large.query to false and that 
hive.mapred.mode is not set to 'strict' to proceed. Note that if you may get 
errors or incorrect results if you make a mistake while using some of the 
unsafe features.
+FAILED: SemanticException [Error 10056]: Queries against partitioned tables 
without a partition filter are disabled for safety reasons. If you know what 
you are doing, please set hive.strict.checks.no.partition.filter to false and 
make sure that hive.mapred.mode is not set to 'strict' to proceed. Note that 
you may get errors or incorrect results if you make a mistake while using some 
of the unsafe features. No partition predicate for Alias "default.srcpart" 
Table "srcpart"
+FAILED: SemanticException [Error 10056]: Queries against partitioned tables 
without a partition filter are disabled for safety reasons. If you know what 
you are doing, please set hive.strict.checks.no.partition.filter to false and 
make sure that hive.mapred.mode is not set to 'strict' to proceed. Note that 
you may get errors or incorrect results if you make a mistake while using some 
of the unsafe features.

http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/ql/src/test/results/clientnegative/compare_double_bigint.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientnegative/compare_double_bigint.q.out 
b/ql/src/test/results/clientnegative/compare_double_bigint.q.out
index 39d1717..a577f0e 100644
--- a/ql/src/test/results/clientnegative/compare_double_bigint.q.out
+++ b/ql/src/test/results/clientnegative/compare_double_bigint.q.out
@@ -1 +1 @@
-FAILED: SemanticException Line 0:-1 Wrong arguments '1.0': Unsafe compares 
between different types are disabled for safety reasons. If you know what you 
are doing, please set hive.strict.checks.type.safety to false and that 
hive.mapred.mode is not set to 'strict' to proceed. Note that if you may get 
errors or incorrect results if you make a mistake while using some of the 
unsafe features.
+FAILED: SemanticException Line 0:-1 Wrong arguments '1.0': Unsafe compares 
between different types are disabled for safety reasons. If you know what you 
are doing, please set hive.strict.checks.type.safety to false and make sure 
that hive.mapred.mode is not set to 'strict' to proceed. Note that you may get 
errors or incorrect results if you make a mistake while using some of the 
unsafe features.

http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/ql/src/test/results/clientnegative/compare_double_bigint_2.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientnegative/compare_double_bigint_2.q.out 
b/ql/src/test/results/clientnegative/compare_double_bigint_2.q.out
index 39d1717..a577f0e 100644
--- a/ql/src/test/results/clientnegative/compare_double_bigint_2.q.out
+++ b/ql/src/test/results/clientnegative/compare_double_bigint_2.q.out
@@ -1 +1 @@
-FAILED: SemanticException Line 0:-1 Wrong arguments '1.0': Unsafe compares 
between different types are disabled for safety reasons. If you know what you 
are doing, please set hive.strict.checks.type.safety to false and that 
hive.mapred.mode is not set to 'strict' to proceed. Note that if you may get 
errors or incorrect results if you make a mistake while using some of the 
unsafe features.
+FAILED: SemanticException Line 0:-1 Wrong arguments '1.0': Unsafe compares 
between different types are disabled for safety reasons. If you know what you 
are doing, please set hive.strict.checks.type.safety to false and make sure 
that hive.mapred.mode is not set to 'strict' to proceed. Note that you may get 
errors or incorrect results if you make a mistake while using some of the 
unsafe features.

http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/ql/src/test/results/clientnegative/compare_string_bigint.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientnegative/compare_string_bigint.q.out 
b/ql/src/test/results/clientnegative/compare_string_bigint.q.out
index 32bfef4..01ea35c 100644
--- a/ql/src/test/results/clientnegative/compare_string_bigint.q.out
+++ b/ql/src/test/results/clientnegative/compare_string_bigint.q.out
@@ -1 +1 @@
-FAILED: SemanticException Line 0:-1 Wrong arguments ''1'': Unsafe compares 
between different types are disabled for safety reasons. If you know what you 
are doing, please set hive.strict.checks.type.safety to false and that 
hive.mapred.mode is not set to 'strict' to proceed. Note that if you may get 
errors or incorrect results if you make a mistake while using some of the 
unsafe features.
+FAILED: SemanticException Line 0:-1 Wrong arguments ''1'': Unsafe compares 
between different types are disabled for safety reasons. If you know what you 
are doing, please set hive.strict.checks.type.safety to false and make sure 
that hive.mapred.mode is not set to 'strict' to proceed. Note that you may get 
errors or incorrect results if you make a mistake while using some of the 
unsafe features.

http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/ql/src/test/results/clientnegative/compare_string_bigint_2.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientnegative/compare_string_bigint_2.q.out 
b/ql/src/test/results/clientnegative/compare_string_bigint_2.q.out
index 32bfef4..01ea35c 100644
--- a/ql/src/test/results/clientnegative/compare_string_bigint_2.q.out
+++ b/ql/src/test/results/clientnegative/compare_string_bigint_2.q.out
@@ -1 +1 @@
-FAILED: SemanticException Line 0:-1 Wrong arguments ''1'': Unsafe compares 
between different types are disabled for safety reasons. If you know what you 
are doing, please set hive.strict.checks.type.safety to false and that 
hive.mapred.mode is not set to 'strict' to proceed. Note that if you may get 
errors or incorrect results if you make a mistake while using some of the 
unsafe features.
+FAILED: SemanticException Line 0:-1 Wrong arguments ''1'': Unsafe compares 
between different types are disabled for safety reasons. If you know what you 
are doing, please set hive.strict.checks.type.safety to false and make sure 
that hive.mapred.mode is not set to 'strict' to proceed. Note that you may get 
errors or incorrect results if you make a mistake while using some of the 
unsafe features.

http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/ql/src/test/results/clientnegative/input4.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientnegative/input4.q.out 
b/ql/src/test/results/clientnegative/input4.q.out
index 776a1ec..c857f92 100644
--- a/ql/src/test/results/clientnegative/input4.q.out
+++ b/ql/src/test/results/clientnegative/input4.q.out
@@ -1 +1 @@
-FAILED: SemanticException Cartesian products are disabled for safety reasons. 
If you know what you are doing, please set hive.strict.checks.cartesian.product 
to false and that hive.mapred.mode is not set to 'strict' to proceed. Note that 
if you may get errors or incorrect results if you make a mistake while using 
some of the unsafe features.
+FAILED: SemanticException Cartesian products are disabled for safety reasons. 
If you know what you are doing, please set hive.strict.checks.cartesian.product 
to false and make sure that hive.mapred.mode is not set to 'strict' to proceed. 
Note that you may get errors or incorrect results if you make a mistake while 
using some of the unsafe features.

http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/ql/src/test/results/clientnegative/input4_2.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientnegative/input4_2.q.out 
b/ql/src/test/results/clientnegative/input4_2.q.out
index 776a1ec..c857f92 100644
--- a/ql/src/test/results/clientnegative/input4_2.q.out
+++ b/ql/src/test/results/clientnegative/input4_2.q.out
@@ -1 +1 @@
-FAILED: SemanticException Cartesian products are disabled for safety reasons. 
If you know what you are doing, please set hive.strict.checks.cartesian.product 
to false and that hive.mapred.mode is not set to 'strict' to proceed. Note that 
if you may get errors or incorrect results if you make a mistake while using 
some of the unsafe features.
+FAILED: SemanticException Cartesian products are disabled for safety reasons. 
If you know what you are doing, please set hive.strict.checks.cartesian.product 
to false and make sure that hive.mapred.mode is not set to 'strict' to proceed. 
Note that you may get errors or incorrect results if you make a mistake while 
using some of the unsafe features.

http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/ql/src/test/results/clientnegative/input_part0_neg.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientnegative/input_part0_neg.q.out 
b/ql/src/test/results/clientnegative/input_part0_neg.q.out
index 1e812d8..85c16b9 100644
--- a/ql/src/test/results/clientnegative/input_part0_neg.q.out
+++ b/ql/src/test/results/clientnegative/input_part0_neg.q.out
@@ -1 +1 @@
-FAILED: SemanticException [Error 10056]: Queries against partitioned tables 
without a partition filter are disabled for safety reasons. If you know what 
you are doing, please set hive.strict.checks.large.query to false and that 
hive.mapred.mode is not set to 'strict' to proceed. Note that if you may get 
errors or incorrect results if you make a mistake while using some of the 
unsafe features. No partition predicate for Alias "default.srcpart" Table 
"srcpart"
+FAILED: SemanticException [Error 10056]: Queries against partitioned tables 
without a partition filter are disabled for safety reasons. If you know what 
you are doing, please set hive.strict.checks.no.partition.filter to false and 
make sure that hive.mapred.mode is not set to 'strict' to proceed. Note that 
you may get errors or incorrect results if you make a mistake while using some 
of the unsafe features. No partition predicate for Alias "default.srcpart" 
Table "srcpart"

http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/ql/src/test/results/clientnegative/input_part0_neg_2.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientnegative/input_part0_neg_2.q.out 
b/ql/src/test/results/clientnegative/input_part0_neg_2.q.out
index 1e812d8..85c16b9 100644
--- a/ql/src/test/results/clientnegative/input_part0_neg_2.q.out
+++ b/ql/src/test/results/clientnegative/input_part0_neg_2.q.out
@@ -1 +1 @@
-FAILED: SemanticException [Error 10056]: Queries against partitioned tables 
without a partition filter are disabled for safety reasons. If you know what 
you are doing, please set hive.strict.checks.large.query to false and that 
hive.mapred.mode is not set to 'strict' to proceed. Note that if you may get 
errors or incorrect results if you make a mistake while using some of the 
unsafe features. No partition predicate for Alias "default.srcpart" Table 
"srcpart"
+FAILED: SemanticException [Error 10056]: Queries against partitioned tables 
without a partition filter are disabled for safety reasons. If you know what 
you are doing, please set hive.strict.checks.no.partition.filter to false and 
make sure that hive.mapred.mode is not set to 'strict' to proceed. Note that 
you may get errors or incorrect results if you make a mistake while using some 
of the unsafe features. No partition predicate for Alias "default.srcpart" 
Table "srcpart"

http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/ql/src/test/results/clientnegative/strict_join.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientnegative/strict_join.q.out 
b/ql/src/test/results/clientnegative/strict_join.q.out
index 776a1ec..c857f92 100644
--- a/ql/src/test/results/clientnegative/strict_join.q.out
+++ b/ql/src/test/results/clientnegative/strict_join.q.out
@@ -1 +1 @@
-FAILED: SemanticException Cartesian products are disabled for safety reasons. 
If you know what you are doing, please set hive.strict.checks.cartesian.product 
to false and that hive.mapred.mode is not set to 'strict' to proceed. Note that 
if you may get errors or incorrect results if you make a mistake while using 
some of the unsafe features.
+FAILED: SemanticException Cartesian products are disabled for safety reasons. 
If you know what you are doing, please set hive.strict.checks.cartesian.product 
to false and make sure that hive.mapred.mode is not set to 'strict' to proceed. 
Note that you may get errors or incorrect results if you make a mistake while 
using some of the unsafe features.

http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/ql/src/test/results/clientnegative/strict_join_2.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientnegative/strict_join_2.q.out 
b/ql/src/test/results/clientnegative/strict_join_2.q.out
index 776a1ec..c857f92 100644
--- a/ql/src/test/results/clientnegative/strict_join_2.q.out
+++ b/ql/src/test/results/clientnegative/strict_join_2.q.out
@@ -1 +1 @@
-FAILED: SemanticException Cartesian products are disabled for safety reasons. 
If you know what you are doing, please set hive.strict.checks.cartesian.product 
to false and that hive.mapred.mode is not set to 'strict' to proceed. Note that 
if you may get errors or incorrect results if you make a mistake while using 
some of the unsafe features.
+FAILED: SemanticException Cartesian products are disabled for safety reasons. 
If you know what you are doing, please set hive.strict.checks.cartesian.product 
to false and make sure that hive.mapred.mode is not set to 'strict' to proceed. 
Note that you may get errors or incorrect results if you make a mistake while 
using some of the unsafe features.

http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/ql/src/test/results/clientnegative/strict_orderby.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientnegative/strict_orderby.q.out 
b/ql/src/test/results/clientnegative/strict_orderby.q.out
index a4f50d1..3f7ae26 100644
--- a/ql/src/test/results/clientnegative/strict_orderby.q.out
+++ b/ql/src/test/results/clientnegative/strict_orderby.q.out
@@ -1 +1 @@
-FAILED: SemanticException 4:47 Order by-s without limit are disabled for 
safety reasons. If you know what you are doing, please set 
hive.strict.checks.large.query to false and that hive.mapred.mode is not set to 
'strict' to proceed. Note that if you may get errors or incorrect results if 
you make a mistake while using some of the unsafe features.. Error encountered 
near token 'key'
+FAILED: SemanticException 4:47 Order by-s without limit are disabled for 
safety reasons. If you know what you are doing, please set 
hive.strict.checks.orderby.no.limit to false and make sure that 
hive.mapred.mode is not set to 'strict' to proceed. Note that you may get 
errors or incorrect results if you make a mistake while using some of the 
unsafe features.. Error encountered near token 'key'

http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/ql/src/test/results/clientnegative/strict_orderby_2.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientnegative/strict_orderby_2.q.out 
b/ql/src/test/results/clientnegative/strict_orderby_2.q.out
new file mode 100644
index 0000000..3f7ae26
--- /dev/null
+++ b/ql/src/test/results/clientnegative/strict_orderby_2.q.out
@@ -0,0 +1 @@
+FAILED: SemanticException 4:47 Order by-s without limit are disabled for 
safety reasons. If you know what you are doing, please set 
hive.strict.checks.orderby.no.limit to false and make sure that 
hive.mapred.mode is not set to 'strict' to proceed. Note that you may get 
errors or incorrect results if you make a mistake while using some of the 
unsafe features.. Error encountered near token 'key'

http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/ql/src/test/results/clientnegative/strict_pruning.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientnegative/strict_pruning.q.out 
b/ql/src/test/results/clientnegative/strict_pruning.q.out
index 4fad801..b50d411 100644
--- a/ql/src/test/results/clientnegative/strict_pruning.q.out
+++ b/ql/src/test/results/clientnegative/strict_pruning.q.out
@@ -1 +1 @@
-FAILED: SemanticException [Error 10056]: Queries against partitioned tables 
without a partition filter are disabled for safety reasons. If you know what 
you are doing, please set hive.strict.checks.large.query to false and that 
hive.mapred.mode is not set to 'strict' to proceed. Note that if you may get 
errors or incorrect results if you make a mistake while using some of the 
unsafe features. No partition predicate for Alias "srcpart" Table "srcpart"
+FAILED: SemanticException [Error 10056]: Queries against partitioned tables 
without a partition filter are disabled for safety reasons. If you know what 
you are doing, please set hive.strict.checks.no.partition.filter to false and 
make sure that hive.mapred.mode is not set to 'strict' to proceed. Note that 
you may get errors or incorrect results if you make a mistake while using some 
of the unsafe features. No partition predicate for Alias "srcpart" Table 
"srcpart"

http://git-wip-us.apache.org/repos/asf/hive/blob/4a33ec8f/ql/src/test/results/clientnegative/strict_pruning_2.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientnegative/strict_pruning_2.q.out 
b/ql/src/test/results/clientnegative/strict_pruning_2.q.out
index 4fad801..b50d411 100644
--- a/ql/src/test/results/clientnegative/strict_pruning_2.q.out
+++ b/ql/src/test/results/clientnegative/strict_pruning_2.q.out
@@ -1 +1 @@
-FAILED: SemanticException [Error 10056]: Queries against partitioned tables 
without a partition filter are disabled for safety reasons. If you know what 
you are doing, please set hive.strict.checks.large.query to false and that 
hive.mapred.mode is not set to 'strict' to proceed. Note that if you may get 
errors or incorrect results if you make a mistake while using some of the 
unsafe features. No partition predicate for Alias "srcpart" Table "srcpart"
+FAILED: SemanticException [Error 10056]: Queries against partitioned tables 
without a partition filter are disabled for safety reasons. If you know what 
you are doing, please set hive.strict.checks.no.partition.filter to false and 
make sure that hive.mapred.mode is not set to 'strict' to proceed. Note that 
you may get errors or incorrect results if you make a mistake while using some 
of the unsafe features. No partition predicate for Alias "srcpart" Table 
"srcpart"

Reply via email to