You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2022/12/13 14:05:11 UTC
[GitHub] [hive] zabetak opened a new pull request, #3852: Query with multiple lateral views hangs during compilation
zabetak opened a new pull request, #3852:
URL: https://github.com/apache/hive/pull/3852
### What changes were proposed in this pull request?
1. Disable partition pruning and semi join reduction optimizations for branches with lateral views.
2. Add config property to fail-fast EXPLAIN statements when a certain threshold is reached.
### Why are the changes needed?
Prevent HS2 from hanging/crashing when a query contains many lateral views.
### Does this PR introduce _any_ user-facing change?
* Some EXPLAIN statements may fail instead of causing HS2 crashes.
* Potential (but rather rare) plan changes for queries with lateral views (certain optimizations are disabled).
### How was this patch tested?
```
mvn test -Dtest=TestNegativeLlapLocalCliDriver -Dqfile_regex=lateral_view.*
mvn test -Dtest=TestMiniLlapLocalCliDriver -Dqfile_regex=lateral_view.*
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] zabetak commented on a diff in pull request #3852: HIVE-22173: Query with multiple lateral views hangs during compilation
Posted by GitBox <gi...@apache.org>.
zabetak commented on code in PR #3852:
URL: https://github.com/apache/hive/pull/3852#discussion_r1072444905
##########
ql/src/test/results/clientpositive/llap/lvj_mapjoin.q.out:
##########
@@ -121,7 +121,6 @@ STAGE PLANS:
TableScan
alias: expod1
filterExpr: aid is not null (type: boolean)
- probeDecodeDetails: cacheKey:HASH_MAP_MAPJOIN_39_container, bigKeyColName:aid, smallTablePos:1, keyRatio:1.0
Review Comment:
The probe decode optimization relies on the presence of semijoins (https://github.com/apache/hive/blob/5f57814ed743a411c8fa7c647c24c98461271fe3/ql/src/java/org/apache/hadoop/hive/ql/parse/TezCompiler.java#L1401). Semijoins depend on the `SyntheticJoinPredicate` transformation thus probe decode depends transitively on `SyntheticJoinPredicate`.
This PR disables `SyntheticJoinPredicate` transformation for branches with lateral views (present in `lvj_mapjoin.q` test) thus semijoins are not considered and neither probe decode.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] zabetak commented on pull request #3852: HIVE-22173: Query with multiple lateral views hangs during compilation
Posted by GitBox <gi...@apache.org>.
zabetak commented on PR #3852:
URL: https://github.com/apache/hive/pull/3852#issuecomment-1385709912
> Also, the commit message mentions partition pruning but I didn't see changes related to that (I might have missed it).
@amansinha100 The partition pruning optimization also relies on the present of the synthetic `IN (...)` predicates generated by `SyntheticJoinPredicate` transformation thus it is also affected by the changes here. For more details:
https://github.com/apache/hive/blob/ad0ab58d9945b9a4727ab606f566e1d346bbd20b/ql/src/java/org/apache/hadoop/hive/ql/optimizer/DynamicPartitionPruningOptimization.java#L91
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] zabetak closed pull request #3852: HIVE-22173: Query with multiple lateral views hangs during compilation
Posted by "zabetak (via GitHub)" <gi...@apache.org>.
zabetak closed pull request #3852: HIVE-22173: Query with multiple lateral views hangs during compilation
URL: https://github.com/apache/hive/pull/3852
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] sonarcloud[bot] commented on pull request #3852: HIVE-22173: Query with multiple lateral views hangs during compilation
Posted by GitBox <gi...@apache.org>.
sonarcloud[bot] commented on PR #3852:
URL: https://github.com/apache/hive/pull/3852#issuecomment-1385831457
Kudos, SonarCloud Quality Gate passed! [](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=3852)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=BUG) [](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=BUG)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=VULNERABILITY) [](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=VULNERABILITY)
[](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=3852&resolved=false&types=SECURITY_HOTSPOT) [](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=3852&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=3852&resolved=false&types=SECURITY_HOTSPOT)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=CODE_SMELL) [](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=CODE_SMELL) [1 Code Smell](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=CODE_SMELL)
[](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=3852&metric=coverage&view=list) No Coverage information
[](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=3852&metric=duplicated_lines_density&view=list) No Duplication information
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] sonarcloud[bot] commented on pull request #3852: HIVE-22173: Query with multiple lateral views hangs during compilation
Posted by GitBox <gi...@apache.org>.
sonarcloud[bot] commented on PR #3852:
URL: https://github.com/apache/hive/pull/3852#issuecomment-1377342589
Kudos, SonarCloud Quality Gate passed! [](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=3852)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=BUG) [](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=BUG)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=VULNERABILITY) [](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=VULNERABILITY)
[](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=3852&resolved=false&types=SECURITY_HOTSPOT) [](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=3852&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=3852&resolved=false&types=SECURITY_HOTSPOT)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=CODE_SMELL) [](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=CODE_SMELL) [1 Code Smell](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=CODE_SMELL)
[](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=3852&metric=coverage&view=list) No Coverage information
[](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=3852&metric=duplicated_lines_density&view=list) No Duplication information
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] amansinha100 commented on pull request #3852: HIVE-22173: Query with multiple lateral views hangs during compilation
Posted by GitBox <gi...@apache.org>.
amansinha100 commented on PR #3852:
URL: https://github.com/apache/hive/pull/3852#issuecomment-1386647977
> > Also, the commit message mentions partition pruning but I didn't see changes related to that (I might have missed it).
>
> @amansinha100 The partition pruning optimization also relies on the present of the synthetic `IN (...)` predicates generated by `SyntheticJoinPredicate` transformation thus it is also affected by the changes here. For more details:
>
> https://github.com/apache/hive/blob/ad0ab58d9945b9a4727ab606f566e1d346bbd20b/ql/src/java/org/apache/hadoop/hive/ql/optimizer/DynamicPartitionPruningOptimization.java#L91
Ah ok. I was looking for a direct dependency.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] amansinha100 commented on a diff in pull request #3852: HIVE-22173: Query with multiple lateral views hangs during compilation
Posted by GitBox <gi...@apache.org>.
amansinha100 commented on code in PR #3852:
URL: https://github.com/apache/hive/pull/3852#discussion_r1067785222
##########
common/src/java/org/apache/hadoop/hive/conf/HiveConf.java:
##########
@@ -3710,7 +3710,12 @@ public static enum ConfVars {
HIVE_EXPLAIN_USER("hive.explain.user", true,
"Whether to show explain result at user level.\n" +
"When enabled, will log EXPLAIN output for the query at user level. Tez only."),
-
+ HIVE_EXPLAIN_VISIT_LIMIT("hive.explain.visit.limit", 256, new RangeValidator(1, Integer.MAX_VALUE),
Review Comment:
Does this limit actually only apply when doing an EXPLAIN ? Even if the query is not explicitly doing an explain, the limit should still apply during compilation right ? Also, the explain plan is written to the log file so we would want to avoid writing huge plans there. It seems to me a better config would be 'hive.compile.node.visit.limit'.
##########
ql/src/test/results/clientpositive/llap/lvj_mapjoin.q.out:
##########
@@ -121,7 +121,6 @@ STAGE PLANS:
TableScan
alias: expod1
filterExpr: aid is not null (type: boolean)
- probeDecodeDetails: cacheKey:HASH_MAP_MAPJOIN_39_container, bigKeyColName:aid, smallTablePos:1, keyRatio:1.0
Review Comment:
I didn't understand why this part of the plan changed.
##########
ql/src/java/org/apache/hadoop/hive/ql/ppd/SyntheticJoinPredicate.java:
##########
@@ -94,8 +95,8 @@ public ParseContext transform(ParseContext pctx) throws SemanticException {
// rule and passes the context along
SyntheticContext context = new SyntheticContext(pctx);
SemanticDispatcher disp = new DefaultRuleDispatcher(null, opRules, context);
- SemanticGraphWalker ogw = new PreOrderOnceWalker(disp);
-
+ PreOrderOnceWalker ogw = new PreOrderOnceWalker(disp);
+ ogw.excludeNode(LateralViewForwardOperator.class);
Review Comment:
Pls add a comment about why the LVF operator is treated in a special way in the context of SyntheticJoinPredicate. The description in the Jira is nice but would be useful to have a summarized couple of lines here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] sonarcloud[bot] commented on pull request #3852: HIVE-22173: Query with multiple lateral views hangs during compilation
Posted by GitBox <gi...@apache.org>.
sonarcloud[bot] commented on PR #3852:
URL: https://github.com/apache/hive/pull/3852#issuecomment-1376138942
Kudos, SonarCloud Quality Gate passed! [](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=3852)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=BUG) [](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=BUG)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=VULNERABILITY) [](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=VULNERABILITY)
[](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=3852&resolved=false&types=SECURITY_HOTSPOT) [](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=3852&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=3852&resolved=false&types=SECURITY_HOTSPOT)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=CODE_SMELL) [](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=CODE_SMELL) [3 Code Smells](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=CODE_SMELL)
[](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=3852&metric=coverage&view=list) No Coverage information
[](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=3852&metric=duplicated_lines_density&view=list) No Duplication information
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] sonarcloud[bot] commented on pull request #3852: HIVE-22173: Query with multiple lateral views hangs during compilation
Posted by GitBox <gi...@apache.org>.
sonarcloud[bot] commented on PR #3852:
URL: https://github.com/apache/hive/pull/3852#issuecomment-1348738146
Kudos, SonarCloud Quality Gate passed! [](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=3852)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=BUG) [](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=BUG)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=VULNERABILITY) [](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=VULNERABILITY)
[](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=3852&resolved=false&types=SECURITY_HOTSPOT) [](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=3852&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=3852&resolved=false&types=SECURITY_HOTSPOT)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=CODE_SMELL) [](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=CODE_SMELL) [2 Code Smells](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=CODE_SMELL)
[](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=3852&metric=coverage&view=list) No Coverage information
[](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=3852&metric=duplicated_lines_density&view=list) No Duplication information
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] zabetak commented on pull request #3852: HIVE-22173: Query with multiple lateral views hangs during compilation
Posted by GitBox <gi...@apache.org>.
zabetak commented on PR #3852:
URL: https://github.com/apache/hive/pull/3852#issuecomment-1385710968
@amansinha100 I addressed your comments can you please have another look. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] sonarcloud[bot] commented on pull request #3852: HIVE-22173: Query with multiple lateral views hangs during compilation
Posted by GitBox <gi...@apache.org>.
sonarcloud[bot] commented on PR #3852:
URL: https://github.com/apache/hive/pull/3852#issuecomment-1353056521
Kudos, SonarCloud Quality Gate passed! [](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=3852)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=BUG) [](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=BUG)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=VULNERABILITY) [](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=VULNERABILITY)
[](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=3852&resolved=false&types=SECURITY_HOTSPOT) [](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=3852&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=3852&resolved=false&types=SECURITY_HOTSPOT)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=CODE_SMELL) [](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=CODE_SMELL) [2 Code Smells](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3852&resolved=false&types=CODE_SMELL)
[](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=3852&metric=coverage&view=list) No Coverage information
[](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=3852&metric=duplicated_lines_density&view=list) No Duplication information
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] amansinha100 commented on a diff in pull request #3852: HIVE-22173: Query with multiple lateral views hangs during compilation
Posted by GitBox <gi...@apache.org>.
amansinha100 commented on code in PR #3852:
URL: https://github.com/apache/hive/pull/3852#discussion_r1073206272
##########
common/src/java/org/apache/hadoop/hive/conf/HiveConf.java:
##########
@@ -3710,7 +3710,12 @@ public static enum ConfVars {
HIVE_EXPLAIN_USER("hive.explain.user", true,
"Whether to show explain result at user level.\n" +
"When enabled, will log EXPLAIN output for the query at user level. Tez only."),
-
+ HIVE_EXPLAIN_VISIT_LIMIT("hive.explain.visit.limit", 256, new RangeValidator(1, Integer.MAX_VALUE),
Review Comment:
Thanks for the explanation. For now, I am good to keep this as is for EXPLAIN. A global limit can be considered in the future but it's ok to wait for a real use case where that is needed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] zabetak commented on a diff in pull request #3852: HIVE-22173: Query with multiple lateral views hangs during compilation
Posted by GitBox <gi...@apache.org>.
zabetak commented on code in PR #3852:
URL: https://github.com/apache/hive/pull/3852#discussion_r1072443296
##########
common/src/java/org/apache/hadoop/hive/conf/HiveConf.java:
##########
@@ -3710,7 +3710,12 @@ public static enum ConfVars {
HIVE_EXPLAIN_USER("hive.explain.user", true,
"Whether to show explain result at user level.\n" +
"When enabled, will log EXPLAIN output for the query at user level. Tez only."),
-
+ HIVE_EXPLAIN_VISIT_LIMIT("hive.explain.visit.limit", 256, new RangeValidator(1, Integer.MAX_VALUE),
Review Comment:
The limit applies only when doing EXPLAIN thus the choice of this name. Adding `node` in the property name is a good idea so I applied this change (https://github.com/apache/hive/pull/3852/commits/5c9933e1a59fe6beeee83638cfa62f9ce887c711). I opted to introduce a limit cause it is not possible to address the problem at the EXPLAIN level without changing the output format.
There are many places where a graph is traversed in Hive and applying a global limit everywhere would be difficult to enforce. Moreover, it would possibly require changes in many places leading to a change with much bigger impact.
If we want to go for a global visit limit then maybe it would be better to do it as a separate JIRA/PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] zabetak commented on a diff in pull request #3852: HIVE-22173: Query with multiple lateral views hangs during compilation
Posted by GitBox <gi...@apache.org>.
zabetak commented on code in PR #3852:
URL: https://github.com/apache/hive/pull/3852#discussion_r1072441255
##########
ql/src/java/org/apache/hadoop/hive/ql/ppd/SyntheticJoinPredicate.java:
##########
@@ -94,8 +95,8 @@ public ParseContext transform(ParseContext pctx) throws SemanticException {
// rule and passes the context along
SyntheticContext context = new SyntheticContext(pctx);
SemanticDispatcher disp = new DefaultRuleDispatcher(null, opRules, context);
- SemanticGraphWalker ogw = new PreOrderOnceWalker(disp);
-
+ PreOrderOnceWalker ogw = new PreOrderOnceWalker(disp);
+ ogw.excludeNode(LateralViewForwardOperator.class);
Review Comment:
Done (https://github.com/apache/hive/pull/3852/commits/e3c882083d7449efdc7c86ddfbf0c5e86e8c8d93)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org