You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by "mihaibudiu (via GitHub)" <gi...@apache.org> on 2026/06/09 00:34:56 UTC
[PR] [CALCITE-4353] Validator fails to expand order expression with dot operator [calcite]
mihaibudiu opened a new pull request, #5005:
URL: https://github.com/apache/calcite/pull/5005
## Jira Link
[CALCITE-4353](https://issues.apache.org/jira/browse/CALCITE-4353)
--
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: commits-unsubscribe@calcite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CALCITE-4353] Validator fails to expand order expression with dot operator [calcite]
Posted by "mihaibudiu (via GitHub)" <gi...@apache.org>.
mihaibudiu merged PR #5005:
URL: https://github.com/apache/calcite/pull/5005
--
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: commits-unsubscribe@calcite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CALCITE-4353] Validator fails to expand order expression with dot operator [calcite]
Posted by "xiedeyantu (via GitHub)" <gi...@apache.org>.
xiedeyantu commented on code in PR #5005:
URL: https://github.com/apache/calcite/pull/5005#discussion_r3384738063
##########
core/src/test/resources/sql/sort.iq:
##########
@@ -533,4 +533,20 @@ SELECT * FROM emp ORDER BY deptno, null, empno;
!ok
+# [CALCITE-4353] Validator fails to expand order expression with dot operator
+!use bookstore
+select au."name" as author
+from "bookstore"."authors" au
+order by au."books"[1]."title";
Review Comment:
Perhaps it would be better to write it this way.
```
!use bookstore
select au."name" as author, au."books"[1]."title" title
from "bookstore"."authors" au
order by au."books"[1]."title";
+-------------------+-----------------+
| AUTHOR | TITLE |
+-------------------+-----------------+
| Victor Hugo | Les Misérables |
| Nikos Kazantzakis | Zorba the Greek |
| Homer | |
+-------------------+-----------------+
(3 rows)
!ok
```
--
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: commits-unsubscribe@calcite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CALCITE-4353] Validator fails to expand order expression with dot operator [calcite]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #5005:
URL: https://github.com/apache/calcite/pull/5005#issuecomment-4666181084
## [](https://sonarcloud.io/dashboard?id=apache_calcite&pullRequest=5005) **Quality Gate passed**
Issues
 [0 New issues](https://sonarcloud.io/project/issues?id=apache_calcite&pullRequest=5005&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_calcite&pullRequest=5005&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_calcite&pullRequest=5005&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [100.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_calcite&pullRequest=5005&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_calcite&pullRequest=5005&metric=new_duplicated_lines_density&view=list)
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_calcite&pullRequest=5005)
--
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: commits-unsubscribe@calcite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CALCITE-4353] Validator fails to expand order expression with dot operator [calcite]
Posted by "mihaibudiu (via GitHub)" <gi...@apache.org>.
mihaibudiu commented on code in PR #5005:
URL: https://github.com/apache/calcite/pull/5005#discussion_r3384008885
##########
core/src/test/java/org/apache/calcite/test/SqlValidatorTest.java:
##########
@@ -9841,6 +9841,9 @@ void testGroupExpressionEquivalenceParams() {
sql("SELECT dept_nested.employees[1].detail.skills[1].others.a as oa\n"
+ "from dept_nested")
.type("RecordType(VARCHAR(10) OA) NOT NULL");
+ // Test case for [CALCITE-4353] Validator fails to expand order expression with dot operator
Review Comment:
Test added as a separate commit; checked that the test fails without this change.
--
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: commits-unsubscribe@calcite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CALCITE-4353] Validator fails to expand order expression with dot operator [calcite]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #5005:
URL: https://github.com/apache/calcite/pull/5005#issuecomment-4655044455
## [](https://sonarcloud.io/dashboard?id=apache_calcite&pullRequest=5005) **Quality Gate passed**
Issues
 [0 New issues](https://sonarcloud.io/project/issues?id=apache_calcite&pullRequest=5005&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_calcite&pullRequest=5005&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_calcite&pullRequest=5005&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [100.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_calcite&pullRequest=5005&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_calcite&pullRequest=5005&metric=new_duplicated_lines_density&view=list)
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_calcite&pullRequest=5005)
--
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: commits-unsubscribe@calcite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CALCITE-4353] Validator fails to expand order expression with dot operator [calcite]
Posted by "xiedeyantu (via GitHub)" <gi...@apache.org>.
xiedeyantu commented on code in PR #5005:
URL: https://github.com/apache/calcite/pull/5005#discussion_r3377152368
##########
core/src/test/java/org/apache/calcite/test/SqlValidatorTest.java:
##########
@@ -9841,6 +9841,9 @@ void testGroupExpressionEquivalenceParams() {
sql("SELECT dept_nested.employees[1].detail.skills[1].others.a as oa\n"
+ "from dept_nested")
.type("RecordType(VARCHAR(10) OA) NOT NULL");
+ // Test case for [CALCITE-4353] Validator fails to expand order expression with dot operator
Review Comment:
Could you add a test case in quidem test?
--
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: commits-unsubscribe@calcite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CALCITE-4353] Validator fails to expand order expression with dot operator [calcite]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #5005:
URL: https://github.com/apache/calcite/pull/5005#issuecomment-4664560286
## [](https://sonarcloud.io/dashboard?id=apache_calcite&pullRequest=5005) **Quality Gate passed**
Issues
 [0 New issues](https://sonarcloud.io/project/issues?id=apache_calcite&pullRequest=5005&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_calcite&pullRequest=5005&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_calcite&pullRequest=5005&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [100.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_calcite&pullRequest=5005&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_calcite&pullRequest=5005&metric=new_duplicated_lines_density&view=list)
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_calcite&pullRequest=5005)
--
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: commits-unsubscribe@calcite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org