Conversation
d157d04 to
7849d46
Compare
server/src/main/java/io/crate/analyze/relations/RelationAnalysisContext.java
Show resolved
Hide resolved
f773b9c to
bb8d749
Compare
bb8d749 to
8030659
Compare
BaurzhanSakhariev
left a comment
There was a problem hiding this comment.
Nice work, thanks!
Left a question and minor comments.
server/src/main/java/io/crate/analyze/relations/RelationAnalyzer.java
Outdated
Show resolved
Hide resolved
server/src/testFixtures/java/io/crate/testing/JoinPairAssert.java
Outdated
Show resolved
Hide resolved
server/src/testFixtures/java/io/crate/testing/JoinPairAssert.java
Outdated
Show resolved
Hide resolved
|
Thanks for the feedback. |
|
@mkleen Thank you for the work on this, please ping and I will also review once you complete the new iteration. |
6a15641 to
179b8f5
Compare
abbffad to
410d109
Compare
|
Ready for another review. |
410d109 to
ecf4b2f
Compare
server/src/main/java/io/crate/analyze/relations/RelationAnalyzer.java
Outdated
Show resolved
Hide resolved
BaurzhanSakhariev
left a comment
There was a problem hiding this comment.
👍
Thanks for covering extra cases!
LGTM, added a minor question on tests
server/src/test/java/io/crate/integrationtests/JoinIntegrationTest.java
Outdated
Show resolved
Hide resolved
server/src/test/java/io/crate/integrationtests/JoinIntegrationTest.java
Outdated
Show resolved
Hide resolved
server/src/test/java/io/crate/integrationtests/JoinIntegrationTest.java
Outdated
Show resolved
Hide resolved
server/src/test/java/io/crate/integrationtests/JoinIntegrationTest.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/crate/analyze/relations/RelationAnalyzer.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/crate/analyze/relations/RelationAnalyzer.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/crate/analyze/relations/RelationAnalysisContext.java
Show resolved
Hide resolved
server/src/main/java/io/crate/analyze/relations/RelationAnalyzer.java
Outdated
Show resolved
Hide resolved
server/src/main/java/io/crate/analyze/relations/RelationAnalyzer.java
Outdated
Show resolved
Hide resolved
|
Thanks for the feedback. I am wondering if it maybe makes sense to split this into two prs. One to resolve the nested join issue, the other one for |
If it's not too much trouble, why not, we can have 2 separate changelog entries as well. |
|
So the initial issue was the following query, which works now. However, we can currently not go infinitely nested. The following query does not work and I would consider this out-of-scope for a fix. This would require significant changes in the way joins are treated internally. This is anyway not a common use case. My suggestion is to throw a reasonable error message and leave it as is. @matriv @mfussenegger @BaurzhanSakhariev |
|
It's fine to address the most complex nesting later as a feature. |
ba2e368 to
54ed6ad
Compare
|
Ready for another review. I split this pr now. The join |
BaurzhanSakhariev
left a comment
There was a problem hiding this comment.
👍
Thanks! Added a minor comment
server/src/test/java/io/crate/integrationtests/JoinIntegrationTest.java
Outdated
Show resolved
Hide resolved
matriv
left a comment
There was a problem hiding this comment.
Thank you! Very nice to have a nice error message for the unsupported cases, instead of an internal error.
- Left some very minor comments, no need to address
- Does it worth mentioning the improved error message in the changelog entry?
This makes nested joins work such as:
SELECT *
FROM j1
JOIN (j2 JOIN j3 ON j2.x = j3.x)
ON j1.x = j2.x;
by adding a JoinRelation which is used to determine the correct JoinPairs.
Fixes #13503
fbbde00 to
c32ddf8
Compare
This makes nested joins work such as:
by adding a JoinRelation which is used to determine the correct JoinPairs.
fixes #13503
Summary of the changes / Why this improves CrateDB
Checklist
CHANGES.txtfor user facing changessql_featurestable for user facing changesCHANGES.txt(E.g. AdminUI)