-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: simplify the subquery typing rules #21114
Conversation
Release note: None
Reviewed 1 of 1 files at r1, 3 of 3 files at r2. pkg/sql/subquery.go, line 404 at r2 (raw file):
How does pkg/sql/logictest/testdata/logic_test/subquery, line 114 at r2 (raw file):
Could you add the case Comments from Reviewable |
8fe1e91
to
3e9a257
Compare
Review status: 2 of 3 files reviewed at latest revision, 2 unresolved discussions. pkg/sql/subquery.go, line 404 at r2 (raw file): Previously, nvanbenschoten (Nathan VanBenschoten) wrote…
The comment was inaccurate. In a multi-row context (such as the right-hand side of an I've rewritten the comment to make it clearer what the subquery typing rules ares. pkg/sql/logictest/testdata/logic_test/subquery, line 114 at r2 (raw file): Previously, nvanbenschoten (Nathan VanBenschoten) wrote…
We already have that case on line 227. Comments from Reviewable |
Review status: 2 of 3 files reviewed at latest revision, 2 unresolved discussions. pkg/sql/subquery.go, line 404 at r2 (raw file): Previously, petermattis (Peter Mattis) wrote…
I hope @knz will appreciate my the irony of my earlier comments about comments in light of the verbose comments present in this PR. Comments from Reviewable |
for the code change -- even though you're looking into the tuple/vtuple distinction separately, could you expand the comment here to make a note this is a concern? Reviewed 1 of 1 files at r1, 1 of 3 files at r2, 1 of 1 files at r3. pkg/sql/subquery.go, line 404 at r2 (raw file): Previously, petermattis (Peter Mattis) wrote…
I think there is wisdom in investing both in exhaustive, up-to-date comments and also learning how to read code effectively (and learning to verify code matches comments). I am working on it. pkg/sql/subquery.go, line 411 at r3 (raw file):
aw the outer tuple{...} here should be vtuple, or at least since you're making a major improvement to this code you could also add a note here that reusing the base "tuple" type is technically incorrect because it requires fixed arity, and instead we'd like something with variable arity. Comments from Reviewable |
The simplification allows Cockroach to support a strict superset of the queries Postgres supports. Release note: None
3e9a257
to
7c0651e
Compare
Review status: 2 of 3 files reviewed at latest revision, 3 unresolved discussions. pkg/sql/subquery.go, line 411 at r3 (raw file): Previously, knz (kena) wrote…
I've added a Comments from Reviewable |
The simplification allows Cockroach to support a strict superset of the
queries Postgres supports.
Release note: None