-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CALCITE-5553] noFlatteningForInput handles single field structs #3092
Conversation
bc800cc
to
62031a6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@apilloud Thanks for your PR, the fix looks good to me generally, I've only two minor comments about the tests.
// and "SAL" is visible but must be greater than 1000, | ||
// which is the equivalent of: | ||
// Same columns as "EMP" amd "EMPNULLABLES", but "DEPTNO" not visible and set to 20 by default | ||
// and "SAL" is visible but must be greater than 1000, which is the equivalent of: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to do this comment reformatting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without the comment reformatting I get the following test failure:
/home/runner/work/calcite/calcite/testkit/src/main/java/org/apache/calcite/test/catalog/MockCatalogReaderSimple.java:79:3:
Method length is 376 lines (max allowed is 370). [MethodLength]
This seemed like the simplest change, but I'm happy to do something else instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, then we'd better split this method into smaller ones in a separate issue, and I'm ok for this workaround in this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've logged CALCITE-5574 for this.
core/src/test/java/org/apache/calcite/test/SqlToRelConverterTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@apilloud Thanks for the updating, the changes looks good now. There is only one thing left, the tests fails due to the orderness in SqlToRelConverterTest.xml
.
// and "SAL" is visible but must be greater than 1000, | ||
// which is the equivalent of: | ||
// Same columns as "EMP" amd "EMPNULLABLES", but "DEPTNO" not visible and set to 20 by default | ||
// and "SAL" is visible but must be greater than 1000, which is the equivalent of: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, then we'd better split this method into smaller ones in a separate issue, and I'm ok for this workaround in this one.
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, will merge after the main branch is open.
// and "SAL" is visible but must be greater than 1000, | ||
// which is the equivalent of: | ||
// Same columns as "EMP" amd "EMPNULLABLES", but "DEPTNO" not visible and set to 20 by default | ||
// and "SAL" is visible but must be greater than 1000, which is the equivalent of: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've logged CALCITE-5574 for this.
No description provided.