You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by "soumyakanti3578 (via GitHub)" <gi...@apache.org> on 2026/02/12 00:11:35 UTC
[PR] HIVE-29456: HiveProjectSortExchangeTransposeRule throws NoElementExce… [hive]
soumyakanti3578 opened a new pull request, #6315:
URL: https://github.com/apache/hive/pull/6315
…ption when SORT BY columns are not in SELECT list
<!--
Thanks for sending a pull request! Here are some tips for you:
1. If this is your first time, please read our contributor guidelines: https://cwiki.apache.org/confluence/display/Hive/HowToContribute
2. Ensure that you have created an issue on the Hive project JIRA: https://issues.apache.org/jira/projects/HIVE/summary
3. Ensure you have added or run the appropriate tests for your PR:
4. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP]HIVE-XXXXX: Your PR title ...'.
5. Be sure to keep the PR description updated to reflect all changes.
6. Please write your PR title to summarize what this PR proposes.
7. If possible, provide a concise example to reproduce the issue for a faster review.
-->
### What changes were proposed in this pull request?
<!--
Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue.
If possible, please consider writing useful notes for better and faster reviews in your PR. See the examples below.
1. If you refactor some codes with changing classes, showing the class hierarchy will help reviewers.
2. If you fix some SQL features, you can provide some references of other DBMSes.
3. If there is design documentation, please add the link.
4. If there is a discussion in the mailing list, please add the link.
-->
If a target mapping is missing, we get a `Mappings.NoElementException` from Calcite. We can just return `null` and skip `HiveProjectSortExchangeTransposeRule` as it's not possible to push the `Project` below the `Sort` in that case.
### Why are the changes needed?
<!--
Please clarify why the changes are needed. For instance,
1. If you propose a new API, clarify the use case for a new API.
2. If you fix a bug, you can clarify why it is a bug.
-->
We get an Exception, which can be reproduced as described in https://issues.apache.org/jira/browse/HIVE-29456
### Does this PR introduce _any_ user-facing change?
<!--
Note that it means *any* user-facing change including all aspects such as the documentation fix.
If yes, please clarify the previous behavior and the change this PR proposes - provide the console output, description, screenshot and/or a reproducable example to show the behavior difference if possible.
If possible, please also clarify if this is a user-facing change compared to the released Hive versions or within the unreleased branches such as master.
If no, write 'No'.
-->
No
### How was this patch tested?
<!--
If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.
If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.
If tests were not added, please describe why they were not added and/or why it was difficult to add.
-->
```
mvn test -pl itests/qtest -Pitests -Dtest=TestMiniLlapLocalCliDriver -Dtest.output.overwrite=true -o -Dqfile="select_columns_subset_of_sort_by.q"
```
--
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
Re: [PR] HIVE-29456: HiveProjectSortExchangeTransposeRule throws NoElementExce… [hive]
Posted by "soumyakanti3578 (via GitHub)" <gi...@apache.org>.
soumyakanti3578 commented on code in PR #6315:
URL: https://github.com/apache/hive/pull/6315#discussion_r2825030145
##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/HiveRelOptUtil.java:
##########
@@ -1107,7 +1107,15 @@ public static List<RelFieldCollation> getNewRelFieldCollations(
Set<Integer> needed = new HashSet<>();
for (RelFieldCollation fc : sortCollation.getFieldCollations()) {
needed.add(fc.getFieldIndex());
- final RexNode node = project.getProjects().get(map.getTarget(fc.getFieldIndex()));
+ int target;
+ try {
+ target = map.getTarget(fc.getFieldIndex());
+ } catch (Mappings.NoElementException e) {
+ // If there is no mapping for this field, we cannot push down the sort
+ LOG.error("Missing target mapping: {}", e.toString());
+ return null;
+ }
Review Comment:
Thanks for pointing me to this API, I was trying to find something like this!
--
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
Re: [PR] HIVE-29456: HiveProjectSortExchangeTransposeRule throws NoElementExce… [hive]
Posted by "zabetak (via GitHub)" <gi...@apache.org>.
zabetak commented on code in PR #6315:
URL: https://github.com/apache/hive/pull/6315#discussion_r2834542545
##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/HiveRelOptUtil.java:
##########
@@ -1107,7 +1107,14 @@ public static List<RelFieldCollation> getNewRelFieldCollations(
Set<Integer> needed = new HashSet<>();
for (RelFieldCollation fc : sortCollation.getFieldCollations()) {
needed.add(fc.getFieldIndex());
- final RexNode node = project.getProjects().get(map.getTarget(fc.getFieldIndex()));
+ int target = map.getTargetOpt(fc.getFieldIndex());
+ if (target == -1) {
+ // If there is no mapping for this field, we cannot push down the sort
+ LOG.debug("Missing target mapping for field index: {}. Cannot apply " +
+ "HiveProjectSort[Exchange]TransposeRule", fc.getFieldIndex());
Review Comment:
Yes, basically when we don't have `Rule [...] produced [...]` it basically means that the rule didn't generate a new expression so some bail out logic kicked in.
--
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
Re: [PR] HIVE-29456: HiveProjectSortExchangeTransposeRule throws NoElementExce… [hive]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #6315:
URL: https://github.com/apache/hive/pull/6315#issuecomment-3930422591
## [](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=6315) **Quality Gate passed**
Issues
 [1 New issue](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=6315&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=6315&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=6315&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=6315&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=6315&metric=new_duplicated_lines_density&view=list)
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=6315)
--
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
Re: [PR] HIVE-29456: HiveProjectSortExchangeTransposeRule throws NoElementExce… [hive]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #6315:
URL: https://github.com/apache/hive/pull/6315#issuecomment-3888148254
## [](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=6315) **Quality Gate passed**
Issues
 [1 New issue](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=6315&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=6315&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=6315&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=6315&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=6315&metric=new_duplicated_lines_density&view=list)
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=6315)
--
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
Re: [PR] HIVE-29456: HiveProjectSortExchangeTransposeRule throws NoElementExce… [hive]
Posted by "zabetak (via GitHub)" <gi...@apache.org>.
zabetak commented on code in PR #6315:
URL: https://github.com/apache/hive/pull/6315#discussion_r2822550948
##########
ql/src/test/queries/clientpositive/select_columns_subset_of_sort_by.q:
##########
@@ -0,0 +1,9 @@
+CREATE TABLE test (
+ col1 STRING,
+ col2 STRING
+);
+
+EXPLAIN CBO
+SELECT col1
+FROM test
+SORT BY col1, col2;
Review Comment:
The problem seems to affect also `HiveProjectSortTransposeRule` so using the following query would also lead to the same exception:
```sql
set hive.optimize.limittranspose=true;
EXPLAIN CBO
SELECT col1
FROM test
ORDER BY col1, col2;
```
thus I would suggest to add this test case as well.
The two rules share some things in common so ideally there should be under some common class but this can be done in a follow-up if time permits.
##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/HiveRelOptUtil.java:
##########
@@ -1107,7 +1107,15 @@ public static List<RelFieldCollation> getNewRelFieldCollations(
Set<Integer> needed = new HashSet<>();
for (RelFieldCollation fc : sortCollation.getFieldCollations()) {
needed.add(fc.getFieldIndex());
- final RexNode node = project.getProjects().get(map.getTarget(fc.getFieldIndex()));
+ int target;
+ try {
+ target = map.getTarget(fc.getFieldIndex());
+ } catch (Mappings.NoElementException e) {
+ // If there is no mapping for this field, we cannot push down the sort
+ LOG.error("Missing target mapping: {}", e.toString());
+ return null;
+ }
Review Comment:
I have the impression that we can avoid the exception handling logic here by using the `Mappings.TargetMapping#getTargetOpt` API.
In general, whenever we craft try-catch blocks we should ask ourselves if there is another way to achieve the same without relying on exceptions. For details, check
"Item 69: Use exceptions only for exceptional conditions" in Effective Java by Joshua Bloch.
--
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
Re: [PR] HIVE-29456: HiveProjectSortExchangeTransposeRule throws NoElementExce… [hive]
Posted by "soumyakanti3578 (via GitHub)" <gi...@apache.org>.
soumyakanti3578 commented on code in PR #6315:
URL: https://github.com/apache/hive/pull/6315#discussion_r2829830881
##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/HiveRelOptUtil.java:
##########
@@ -1107,7 +1107,14 @@ public static List<RelFieldCollation> getNewRelFieldCollations(
Set<Integer> needed = new HashSet<>();
for (RelFieldCollation fc : sortCollation.getFieldCollations()) {
needed.add(fc.getFieldIndex());
- final RexNode node = project.getProjects().get(map.getTarget(fc.getFieldIndex()));
+ int target = map.getTargetOpt(fc.getFieldIndex());
+ if (target == -1) {
+ // If there is no mapping for this field, we cannot push down the sort
+ LOG.debug("Missing target mapping for field index: {}. Cannot apply " +
+ "HiveProjectSort[Exchange]TransposeRule", fc.getFieldIndex());
Review Comment:
With these configs, we get:
```
2026-02-19T11:40:27,565 DEBUG [836e287e-99c3-4296-8183-264b55c327ad main] calcite.RuleEventLogger: call#13: Rule [HiveCardinalityPreservingJoinRule] produced [rel#48:HiveProject]
2026-02-19T11:40:27,565 DEBUG [836e287e-99c3-4296-8183-264b55c327ad main] calcite.RuleEventLogger: call#13: Full plan for [rel#48:HiveProject]:
HiveProject(col1=[$0])
HiveSortExchange(distribution=[any], collation=[[0, 1]])
HiveProject(col1=[$0], col2=[$1])
HiveTableScan(table=[[default, test]], table:alias=[test])
2026-02-19T11:40:27,565 DEBUG [836e287e-99c3-4296-8183-264b55c327ad main] calcite.RuleEventLogger: call#17: Apply rule [HiveCardinalityPreservingJoinRule] to [rel#43:HiveSortExchange]
2026-02-19T11:40:27,565 DEBUG [836e287e-99c3-4296-8183-264b55c327ad main] calcite.RuleEventLogger: call#18: Apply rule [HiveCardinalityPreservingJoinRule] to [rel#41:HiveProject]
2026-02-19T11:40:27,566 DEBUG [836e287e-99c3-4296-8183-264b55c327ad main] calcite.RuleEventLogger: call#19: Apply rule [HiveCardinalityPreservingJoinRule] to [rel#28:HiveTableScan]
2026-02-19T11:40:27,566 DEBUG [836e287e-99c3-4296-8183-264b55c327ad main] calcite.RuleEventLogger: call#20: Apply rule [HiveProjectSearchExpandRule] to [rel#45:HiveProject]
2026-02-19T11:40:27,566 DEBUG [836e287e-99c3-4296-8183-264b55c327ad main] calcite.RuleEventLogger: call#21: Apply rule [HiveProjectSearchExpandRule] to [rel#41:HiveProject]
2026-02-19T11:40:27,566 DEBUG [836e287e-99c3-4296-8183-264b55c327ad main] calcite.RuleEventLogger: call#22: Apply rule [HiveProjectSortExchangeTransposeRule] to [rel#45:HiveProject,rel#43:HiveSortExchange]
2026-02-19T11:40:27,567 DEBUG [836e287e-99c3-4296-8183-264b55c327ad main] calcite.HiveRelOptUtil: Missing target mapping for field index: 1. Cannot apply HiveProjectSort[Exchange]TransposeRule
2026-02-19T11:40:27,568 DEBUG [836e287e-99c3-4296-8183-264b55c327ad main] AbstractRelOptPlanner.rule_execution_summary: Rule Attempts Info for HepPlanner
2026-02-19T11:40:27,568 DEBUG [836e287e-99c3-4296-8183-264b55c327ad main] AbstractRelOptPlanner.rule_execution_summary:
Rules Attempts Time (us)
HiveCardinalityPreservingJoinRule 4 9,111
HiveProjectSearchExpandRule 2 64
HiveProjectSortExchangeTransposeRule 1 1,703
* Total 7 10,878
```
The log says: `DEBUG [836e287e-99c3-4296-8183-264b55c327ad main] calcite.RuleEventLogger: call#22: Apply rule [HiveProjectSortExchangeTransposeRule] to [rel#45:HiveProject,rel#43:HiveSortExchange]`
We can probably infer from the missing CBO plan after the line that the rule wasn't applied. So I am happy to remove the debug altogether 👍🏼
--
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
Re: [PR] HIVE-29456: HiveProjectSortExchangeTransposeRule throws NoElementExce… [hive]
Posted by "zabetak (via GitHub)" <gi...@apache.org>.
zabetak commented on code in PR #6315:
URL: https://github.com/apache/hive/pull/6315#discussion_r2829398285
##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/HiveRelOptUtil.java:
##########
@@ -1107,7 +1107,14 @@ public static List<RelFieldCollation> getNewRelFieldCollations(
Set<Integer> needed = new HashSet<>();
for (RelFieldCollation fc : sortCollation.getFieldCollations()) {
needed.add(fc.getFieldIndex());
- final RexNode node = project.getProjects().get(map.getTarget(fc.getFieldIndex()));
+ int target = map.getTargetOpt(fc.getFieldIndex());
+ if (target == -1) {
+ // If there is no mapping for this field, we cannot push down the sort
+ LOG.debug("Missing target mapping for field index: {}. Cannot apply " +
+ "HiveProjectSort[Exchange]TransposeRule", fc.getFieldIndex());
Review Comment:
Change the following line in data/conf/hive-log4j2.properties and see what it gives:
```
logger.CBORuleLogger.level = DEBUG
```
the output is pretty detailed and can become even more verbose by enabling the `FULL_PLAN` marker
```
logger.CBORuleLogger.filter.marker.onMatch = ACCEPT
```
--
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
Re: [PR] HIVE-29456: HiveProjectSortExchangeTransposeRule throws NoElementExce… [hive]
Posted by "soumyakanti3578 (via GitHub)" <gi...@apache.org>.
soumyakanti3578 commented on code in PR #6315:
URL: https://github.com/apache/hive/pull/6315#discussion_r2829090719
##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/HiveRelOptUtil.java:
##########
@@ -1107,7 +1107,14 @@ public static List<RelFieldCollation> getNewRelFieldCollations(
Set<Integer> needed = new HashSet<>();
for (RelFieldCollation fc : sortCollation.getFieldCollations()) {
needed.add(fc.getFieldIndex());
- final RexNode node = project.getProjects().get(map.getTarget(fc.getFieldIndex()));
+ int target = map.getTargetOpt(fc.getFieldIndex());
+ if (target == -1) {
+ // If there is no mapping for this field, we cannot push down the sort
+ LOG.debug("Missing target mapping for field index: {}. Cannot apply " +
+ "HiveProjectSort[Exchange]TransposeRule", fc.getFieldIndex());
Review Comment:
Yes, I should remove explicitly naming the rules here. This method is called from the `onMatch` methods of the rules and they don't override a `matches` method. This results in the rules getting listed as "used" in the logs, as can be seen here:
```
2026-02-18T16:07:38,518 DEBUG [54732d08-4555-40dd-a149-1347b9af556a main] calcite.HiveRelOptUtil: Missing target mapping for field index: 1. Cannot apply HiveProjectSort[Exchange]TransposeRule
2026-02-18T16:07:38,518 DEBUG [54732d08-4555-40dd-a149-1347b9af556a main] AbstractRelOptPlanner.rule_execution_summary: Rule Attempts Info for HepPlanner
2026-02-18T16:07:38,518 DEBUG [54732d08-4555-40dd-a149-1347b9af556a main] AbstractRelOptPlanner.rule_execution_summary:
Rules Attempts Time (us)
HiveCardinalityPreservingJoinRule 4 8,680
HiveProjectSearchExpandRule 2 30
HiveProjectSortExchangeTransposeRule 1 1,374
* Total 7 10,084
```
The ideal solution is to have a `matches` method in the rules but that is probably outside of the scope of this ticket. We can do that when we combine the two rules into one. But I think I would still like to keep the debug message about missing target mapping without naming the rules. What do you think @zabetak ?
--
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
Re: [PR] HIVE-29456: HiveProjectSortExchangeTransposeRule throws NoElementExce… [hive]
Posted by "zabetak (via GitHub)" <gi...@apache.org>.
zabetak commented on code in PR #6315:
URL: https://github.com/apache/hive/pull/6315#discussion_r2826439783
##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/HiveRelOptUtil.java:
##########
@@ -1107,7 +1107,14 @@ public static List<RelFieldCollation> getNewRelFieldCollations(
Set<Integer> needed = new HashSet<>();
for (RelFieldCollation fc : sortCollation.getFieldCollations()) {
needed.add(fc.getFieldIndex());
- final RexNode node = project.getProjects().get(map.getTarget(fc.getFieldIndex()));
+ int target = map.getTargetOpt(fc.getFieldIndex());
+ if (target == -1) {
+ // If there is no mapping for this field, we cannot push down the sort
+ LOG.debug("Missing target mapping for field index: {}. Cannot apply " +
+ "HiveProjectSort[Exchange]TransposeRule", fc.getFieldIndex());
Review Comment:
We have logs to indicate when a rule applies and when it doesn't so I don't think we need this debug entry. Moreover, this is a utility method which in principle could be used in other places so adding a rule specific message can make the situation a bit confusing. Lastly, for someone not familiar with this part of the code this debug message may sound alarming while in fact it is a perfectly fine and legal exit condition for the method.
--
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
Re: [PR] HIVE-29456: HiveProjectSortExchangeTransposeRule throws NoElementExce… [hive]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #6315:
URL: https://github.com/apache/hive/pull/6315#issuecomment-3926036112
## [](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=6315) **Quality Gate passed**
Issues
 [1 New issue](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=6315&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=6315&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=6315&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=6315&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=6315&metric=new_duplicated_lines_density&view=list)
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=6315)
--
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
Re: [PR] HIVE-29456: HiveProjectSortExchangeTransposeRule throws NoElementExce… [hive]
Posted by "soumyakanti3578 (via GitHub)" <gi...@apache.org>.
soumyakanti3578 commented on code in PR #6315:
URL: https://github.com/apache/hive/pull/6315#discussion_r2825031486
##########
ql/src/test/queries/clientpositive/select_columns_subset_of_sort_by.q:
##########
@@ -0,0 +1,9 @@
+CREATE TABLE test (
+ col1 STRING,
+ col2 STRING
+);
+
+EXPLAIN CBO
+SELECT col1
+FROM test
+SORT BY col1, col2;
Review Comment:
Adding this test in the next commit 👍🏼
--
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
Re: [PR] HIVE-29456: HiveProjectSortExchangeTransposeRule throws NoElementExce… [hive]
Posted by "soumyakanti3578 (via GitHub)" <gi...@apache.org>.
soumyakanti3578 merged PR #6315:
URL: https://github.com/apache/hive/pull/6315
--
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