-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HIVE-24601: Control CBO fallback behavior via property (#1875) (Stama…
…tis Zampetakis reviewed by Zoltan Haindrich)
- Loading branch information
Showing
47 changed files
with
321 additions
and
37 deletions.
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
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
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
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
76 changes: 76 additions & 0 deletions
76
ql/src/java/org/apache/hadoop/hive/ql/parse/CBOFallbackStrategy.java
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,76 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.apache.hadoop.hive.ql.parse; | ||
|
||
import org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSemanticException; | ||
import org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubqueryRuntimeException; | ||
import org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubquerySemanticException; | ||
import org.apache.hadoop.hive.ql.optimizer.calcite.CalciteViewSemanticException; | ||
|
||
/** | ||
* A strategy defining when CBO fallbacks to the legacy optimizer. | ||
*/ | ||
enum CBOFallbackStrategy { | ||
/** | ||
* Never use the legacy optimizer, all CBO errors are fatal. | ||
*/ | ||
NEVER { | ||
@Override | ||
boolean isFatal(Exception e) { | ||
return true; | ||
} | ||
}, | ||
/** | ||
* Use the legacy optimizer only when the CBO exception is not related to subqueries and views. | ||
*/ | ||
CONSERVATIVE { | ||
@Override | ||
boolean isFatal(Exception e) { | ||
// Non-CBO path for the following exceptions fail with completely different error and mask the original failure | ||
return e instanceof CalciteSubquerySemanticException || e instanceof CalciteViewSemanticException | ||
|| e instanceof CalciteSubqueryRuntimeException; | ||
} | ||
}, | ||
/** | ||
* Always use the legacy optimizer, CBO errors are not fatal. | ||
*/ | ||
ALWAYS { | ||
@Override | ||
boolean isFatal(Exception e) { | ||
return false; | ||
} | ||
}, | ||
/** | ||
* Specific strategy only for tests. | ||
*/ | ||
TEST { | ||
@Override | ||
boolean isFatal(Exception e) { | ||
if (e instanceof CalciteSubquerySemanticException || e instanceof CalciteViewSemanticException | ||
|| e instanceof CalciteSubqueryRuntimeException) { | ||
return true; | ||
} | ||
return !(e instanceof CalciteSemanticException); | ||
} | ||
}; | ||
|
||
/** | ||
* Returns true if the specified exception is fatal (must not fallback to legacy optimizer), and false otherwise. | ||
*/ | ||
abstract boolean isFatal(Exception e); | ||
} |
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
6 changes: 6 additions & 0 deletions
6
ql/src/test/queries/clientnegative/cbo_fallback_conservative_subquery_exception.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,6 @@ | ||
--! qt:dataset:part | ||
-- =ALL is not allowed and initially triggers a CalciteSubquerySemanticException | ||
set hive.cbo.fallback.strategy=CONSERVATIVE; | ||
-- In CONSERVATIVE mode CalciteSubquerySemanticException is fatal | ||
-- and should be present in the error message | ||
explain select * from part where p_type = ALL(select max(p_type) from part); |
5 changes: 5 additions & 0 deletions
5
ql/src/test/queries/clientnegative/cbo_fallback_never_semantic_exception.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,5 @@ | ||
--! qt:dataset:src | ||
set hive.cbo.fallback.strategy=NEVER; | ||
-- The query generates initially a CalciteSemanticException on CBO but can be handled by the legacy optimizer | ||
-- In NEVER mode we never fallback so the error should contain the CalciteSemanticException | ||
select count(*) from src where key <=> 100; |
5 changes: 5 additions & 0 deletions
5
ql/src/test/queries/clientnegative/cbo_fallback_never_subquery_exception.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,5 @@ | ||
--! qt:dataset:part | ||
-- =ALL is not allowed and initially triggers a CalciteSubquerySemanticException | ||
set hive.cbo.fallback.strategy=NEVER; | ||
-- In NEVER mode we don't retry on CBO failure so CalciteSubquerySemanticException should appear in the error | ||
explain select * from part where p_type = ALL(select max(p_type) from part); |
2 changes: 2 additions & 0 deletions
2
ql/src/test/queries/clientnegative/cbo_fallback_strategy_illegal_00.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,2 @@ | ||
-- Invalid value due to case sensitivity | ||
set hive.cbo.fallback.strategy=never; |
2 changes: 2 additions & 0 deletions
2
ql/src/test/queries/clientnegative/cbo_fallback_strategy_illegal_01.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,2 @@ | ||
-- Invalid value not present in StringSet | ||
set hive.cbo.fallback.strategy=NONE; |
6 changes: 6 additions & 0 deletions
6
ql/src/test/queries/clientnegative/cbo_fallback_test_subquery_exception.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,6 @@ | ||
--! qt:dataset:part | ||
-- =ALL is not allowed and initially triggers a CalciteSubquerySemanticException | ||
set hive.cbo.fallback.strategy=TEST; | ||
-- In TEST mode CalciteSubquerySemanticException is fatal | ||
-- and should be present in the error message | ||
explain select * from part where p_type = ALL(select max(p_type) from part); |
6 changes: 6 additions & 0 deletions
6
ql/src/test/queries/clientpositive/cbo_fallback_always_semantic_exception.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,6 @@ | ||
--! qt:dataset:src | ||
set hive.explain.user=true; | ||
set hive.cbo.fallback.strategy=ALWAYS; | ||
-- The query generates initially a CalciteSemanticException on CBO but can be handled by the legacy optimizer | ||
-- The fact that CBO fails should be reflected in the plan | ||
explain select count(*) from src where key <=> 100; |
8 changes: 8 additions & 0 deletions
8
ql/src/test/queries/clientpositive/cbo_fallback_always_subquery_exception.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,8 @@ | ||
--! qt:dataset:part | ||
-- =ALL is not allowed and initially triggers a CalciteSubquerySemanticException | ||
set hive.explain.user=true; | ||
set hive.cbo.fallback.strategy=ALWAYS; | ||
-- The query generates initially a CalciteSubquerySemanticException on CBO but can be handled by the legacy optimizer | ||
-- It is not guaranteed that the resulting plan is correct whatsoever. | ||
-- The fact that CBO fails should be reflected in the plan | ||
explain select * from part where p_type = ALL(select max(p_type) from part); |
6 changes: 6 additions & 0 deletions
6
ql/src/test/queries/clientpositive/cbo_fallback_conservative_semantic_exception.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,6 @@ | ||
--! qt:dataset:src | ||
set hive.explain.user=true; | ||
set hive.cbo.fallback.strategy=CONSERVATIVE; | ||
-- The query generates initially a CalciteSemanticException on CBO but can be handled by the legacy optimizer | ||
-- The fact that CBO fails should be reflected in the plan | ||
explain select count(*) from src where key <=> 100; |
6 changes: 6 additions & 0 deletions
6
ql/src/test/queries/clientpositive/cbo_fallback_test_semantic_exception.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,6 @@ | ||
--! qt:dataset:src | ||
set hive.explain.user=true; | ||
set hive.cbo.fallback.strategy=TEST; | ||
-- The query generates initially a CalciteSemanticException on CBO but can be handled by the legacy optimizer | ||
-- The fact that CBO fails should be reflected in the plan | ||
explain select count(*) from src where key <=> 100; |
1 change: 1 addition & 0 deletions
1
ql/src/test/results/clientnegative/cbo_fallback_conservative_subquery_exception.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 @@ | ||
FAILED: CalciteSubquerySemanticException [Error 10250]: Invalid SubQuery expression Invalid operator:= |
1 change: 1 addition & 0 deletions
1
ql/src/test/results/clientnegative/cbo_fallback_never_semantic_exception.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 @@ | ||
FAILED: CalciteSemanticException <=> is not yet supported for cbo. |
1 change: 1 addition & 0 deletions
1
ql/src/test/results/clientnegative/cbo_fallback_never_subquery_exception.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 @@ | ||
FAILED: CalciteSubquerySemanticException [Error 10250]: Invalid SubQuery expression Invalid operator:= |
1 change: 1 addition & 0 deletions
1
ql/src/test/results/clientnegative/cbo_fallback_strategy_illegal_00.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 @@ | ||
Query returned non-zero code: 1, cause: 'SET hive.cbo.fallback.strategy=never' FAILED in validation : Invalid value.. expects one of [NEVER, CONSERVATIVE, ALWAYS, TEST]. |
1 change: 1 addition & 0 deletions
1
ql/src/test/results/clientnegative/cbo_fallback_strategy_illegal_01.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 @@ | ||
Query returned non-zero code: 1, cause: 'SET hive.cbo.fallback.strategy=NONE' FAILED in validation : Invalid value.. expects one of [NEVER, CONSERVATIVE, ALWAYS, TEST]. |
1 change: 1 addition & 0 deletions
1
ql/src/test/results/clientnegative/cbo_fallback_test_subquery_exception.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 @@ | ||
FAILED: CalciteSubquerySemanticException [Error 10250]: Invalid SubQuery expression Invalid operator:= |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
FAILED: SemanticException org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubquerySemanticException: Invalid SubQuery expression Invalid operator:= | ||
FAILED: CalciteSubquerySemanticException [Error 10250]: Invalid SubQuery expression Invalid operator:= |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
FAILED: SemanticException org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubquerySemanticException: Invalid SubQuery expression Invalid operator:<> | ||
FAILED: CalciteSubquerySemanticException [Error 10250]: Invalid SubQuery expression Invalid operator:<> |
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 |
---|---|---|
@@ -1 +1 @@ | ||
FAILED: SemanticException [Error 10004]: org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubquerySemanticException: Line 4:113 Invalid table alias or column reference 'po': (possible column names are: p_partkey, p_name, p_mfgr, p_brand, p_type, p_size, p_container, p_retailprice, p_comment) | ||
FAILED: CalciteSubquerySemanticException [Error 10004]: Line 4:113 Invalid table alias or column reference 'po': (possible column names are: p_partkey, p_name, p_mfgr, p_brand, p_type, p_size, p_container, p_retailprice, p_comment) |
2 changes: 1 addition & 1 deletion
2
ql/src/test/results/clientnegative/subquery_corr_grandparent.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 |
---|---|---|
@@ -1 +1 @@ | ||
FAILED: SemanticException [Error 10004]: org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubquerySemanticException: Line 5:95 Invalid table alias or column reference 'x': (possible column names are: p_partkey, p_name, p_mfgr, p_brand, p_type, p_size, p_container, p_retailprice, p_comment) | ||
FAILED: CalciteSubquerySemanticException [Error 10004]: Line 5:95 Invalid table alias or column reference 'x': (possible column names are: p_partkey, p_name, p_mfgr, p_brand, p_type, p_size, p_container, p_retailprice, p_comment) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
FAILED: SemanticException [Error 10004]: org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubquerySemanticException: Line 3:54 Invalid table alias or column reference 'po': (possible column names are: p_partkey, p_name, p_mfgr, p_brand, p_type, p_size, p_container, p_retailprice, p_comment) | ||
FAILED: CalciteSubquerySemanticException [Error 10004]: Line 3:54 Invalid table alias or column reference 'po': (possible column names are: p_partkey, p_name, p_mfgr, p_brand, p_type, p_size, p_container, p_retailprice, p_comment) |
2 changes: 1 addition & 1 deletion
2
ql/src/test/results/clientnegative/subquery_correlated_grand_parent.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 |
---|---|---|
@@ -1 +1 @@ | ||
FAILED: SemanticException [Error 10004]: org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubquerySemanticException: Line 4:89 Invalid table alias or column reference 't1': (possible column names are: t3.p_partkey, t3.p_name, t3.p_mfgr, t3.p_brand, t3.p_type, t3.p_size, t3.p_container, t3.p_retailprice, t3.p_comment, t4.p_partkey, t4.p_name, t4.p_mfgr, t4.p_brand, t4.p_type, t4.p_size, t4.p_container, t4.p_retailprice, t4.p_comment) | ||
FAILED: CalciteSubquerySemanticException [Error 10004]: Line 4:89 Invalid table alias or column reference 't1': (possible column names are: t3.p_partkey, t3.p_name, t3.p_mfgr, t3.p_brand, t3.p_type, t3.p_size, t3.p_container, t3.p_retailprice, t3.p_comment, t4.p_partkey, t4.p_name, t4.p_mfgr, t4.p_brand, t4.p_type, t4.p_size, t4.p_container, t4.p_retailprice, t4.p_comment) |
2 changes: 1 addition & 1 deletion
2
ql/src/test/results/clientnegative/subquery_exists_implicit_gby.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 |
---|---|---|
@@ -1 +1 @@ | ||
FAILED: SemanticException [Error 10250]: org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubquerySemanticException: Line 8:7 Invalid SubQuery expression ''val_9'': A predicate on EXISTS/NOT EXISTS SubQuery with implicit Aggregation(no Group By clause) cannot be rewritten. | ||
FAILED: CalciteSubquerySemanticException [Error 10250]: Line 8:7 Invalid SubQuery expression ''val_9'': A predicate on EXISTS/NOT EXISTS SubQuery with implicit Aggregation(no Group By clause) cannot be rewritten. |
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 |
---|---|---|
@@ -1 +1 @@ | ||
FAILED: SemanticException org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubquerySemanticException: Unsupported SubQuery Expression Currently SubQuery expressions are only allowed as Where and Having Clause predicates | ||
FAILED: CalciteSubquerySemanticException [Error 10249]: Unsupported SubQuery Expression Currently SubQuery expressions are only allowed as Where and Having Clause predicates |
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 |
---|---|---|
@@ -1 +1 @@ | ||
FAILED: SemanticException org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubquerySemanticException: Line 0:-1 Unsupported SubQuery Expression 'p_size': SubQuery on left hand side is not supported. | ||
FAILED: CalciteSubquerySemanticException Line 0:-1 Unsupported SubQuery Expression 'p_size': SubQuery on left hand side is not supported. |
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 |
---|---|---|
@@ -1 +1 @@ | ||
FAILED: SemanticException org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubquerySemanticException: 3:77 Unsupported SubQuery Expression Currently SubQuery expressions are only allowed as Where and Having Clause predicates. Error encountered near token 'p2' | ||
FAILED: CalciteSubquerySemanticException 3:77 Unsupported SubQuery Expression Currently SubQuery expressions are only allowed as Where and Having Clause predicates. Error encountered near token 'p2' |
2 changes: 1 addition & 1 deletion
2
ql/src/test/results/clientnegative/subquery_multiple_cols_in_select.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 |
---|---|---|
@@ -1 +1 @@ | ||
FAILED: SemanticException org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubquerySemanticException: Invalid SubQuery expression SubQuery can contain only 1 item in Select List. | ||
FAILED: CalciteSubquerySemanticException [Error 10250]: Invalid SubQuery expression SubQuery can contain only 1 item in Select List. |
2 changes: 1 addition & 1 deletion
2
ql/src/test/results/clientnegative/subquery_non_exisiting_column.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 |
---|---|---|
@@ -1 +1 @@ | ||
FAILED: SemanticException [Error 10002]: org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubquerySemanticException: Line 4:104 Invalid column reference 'non_exisiting_column' | ||
FAILED: CalciteSubquerySemanticException [Error 10002]: Line 4:104 Invalid column reference 'non_exisiting_column' |
2 changes: 1 addition & 1 deletion
2
ql/src/test/results/clientnegative/subquery_notexists_implicit_gby.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 |
---|---|---|
@@ -1 +1 @@ | ||
FAILED: SemanticException [Error 10250]: org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubquerySemanticException: Line 8:7 Invalid SubQuery expression ''val_9'': A predicate on EXISTS/NOT EXISTS SubQuery with implicit Aggregation(no Group By clause) cannot be rewritten. | ||
FAILED: CalciteSubquerySemanticException [Error 10250]: Line 8:7 Invalid SubQuery expression ''val_9'': A predicate on EXISTS/NOT EXISTS SubQuery with implicit Aggregation(no Group By clause) cannot be rewritten. |
2 changes: 1 addition & 1 deletion
2
ql/src/test/results/clientnegative/subquery_scalar_multi_columns.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
FAILED: SemanticException org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubquerySemanticException: Line 2:67 Invalid SubQuery expression 'p_type' in definition of SubQuery sq_1 [ | ||
FAILED: CalciteSubquerySemanticException Line 2:67 Invalid SubQuery expression 'p_type' in definition of SubQuery sq_1 [ | ||
(select p_size, p_type from part) | ||
] used as sq_1 at Line 0:-1: SubQuery can contain only 1 item in Select List. |
2 changes: 1 addition & 1 deletion
2
ql/src/test/results/clientnegative/subquery_select_aggregate.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 |
---|---|---|
@@ -1 +1 @@ | ||
FAILED: SemanticException org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubquerySemanticException: Unsupported SubQuery Expression Invalid subquery. Subquery in UDAF is not allowed. | ||
FAILED: CalciteSubquerySemanticException [Error 10249]: Unsupported SubQuery Expression Invalid subquery. Subquery in UDAF is not allowed. |
2 changes: 1 addition & 1 deletion
2
ql/src/test/results/clientnegative/subquery_select_distinct.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 |
---|---|---|
@@ -1 +1 @@ | ||
FAILED: SemanticException org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubquerySemanticException: Unsupported SubQuery Expression Invalid subquery. Subquery with DISTINCT clause is not supported! | ||
FAILED: CalciteSubquerySemanticException [Error 10249]: Unsupported SubQuery Expression Invalid subquery. Subquery with DISTINCT clause is not supported! |
2 changes: 1 addition & 1 deletion
2
ql/src/test/results/clientnegative/subquery_select_distinct2.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 |
---|---|---|
@@ -1 +1 @@ | ||
FAILED: SemanticException org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubquerySemanticException: Unsupported SubQuery Expression Invalid subquery. Subquery with DISTINCT clause is not supported! | ||
FAILED: CalciteSubquerySemanticException [Error 10249]: Unsupported SubQuery Expression Invalid subquery. Subquery with DISTINCT clause is not supported! |
2 changes: 1 addition & 1 deletion
2
ql/src/test/results/clientnegative/subquery_subquery_chain_exists.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 |
---|---|---|
@@ -1 +1 @@ | ||
FAILED: SemanticException [Error 10249]: org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubquerySemanticException: Line 5:7 Unsupported SubQuery Expression 'key': SubQuery on left hand side is not supported. | ||
FAILED: CalciteSubquerySemanticException [Error 10249]: Line 5:7 Unsupported SubQuery Expression 'key': SubQuery on left hand side is not supported. |
2 changes: 1 addition & 1 deletion
2
ql/src/test/results/clientnegative/subquery_windowing_corr.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 |
---|---|---|
@@ -1 +1 @@ | ||
FAILED: SemanticException [Error 10249]: org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSubquerySemanticException: Line 7:8 Unsupported SubQuery Expression 'p_brand': Correlated Sub Queries cannot contain Windowing clauses. | ||
FAILED: CalciteSubquerySemanticException [Error 10249]: Line 7:8 Unsupported SubQuery Expression 'p_brand': Correlated Sub Queries cannot contain Windowing clauses. |
Oops, something went wrong.