Skip to content
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: remove some remnants of the heuristics planner #62293

Merged
merged 1 commit into from
Mar 22, 2021

Conversation

yuzefovich
Copy link
Member

The heuristic planner has been long gone, but some remnants still
remain. The most notable change is to createTableNode where we needed
to synthesize a row ID column in the HP. I also searched for "heuristic
pl" in the code base and found a few other mentions which are also
removed.

Two more are still present since they didn't seem as trivial.

Release note: None

@yuzefovich yuzefovich requested review from RaduBerinde and a team March 20, 2021 06:30
@yuzefovich yuzefovich requested a review from a team as a code owner March 20, 2021 06:30
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@yuzefovich yuzefovich force-pushed the create-table branch 3 times, most recently from 2ed7b41 to 398ffc1 Compare March 22, 2021 16:47
Copy link
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

Copy link
Collaborator

@mgartner mgartner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

# Regression test for #34524.
query I
(SELECT NULL FROM t34524) EXCEPT (VALUES((SELECT 1 FROM t34524 LIMIT 1)), (1))
----
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think the pkg/sql/logictest/testdata/logic_test/union might be a better place for this since there are no explicit joins in the query. Really, pkg/sql/logictest/testdata/logic_test/set seems best, but most EXCEPT tests are currently in the union file...

The heuristic planner has been long gone, but some remnants still
remain. The most notable change is to `createTableNode` where we needed
to synthesize a row ID column in the HP. I also searched for "heuristic
pl" in the code base and found a few other mentions which are also
removed.

Two more are still present since they didn't seem as trivial.

Release note: None
Copy link
Member Author

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TFTRs!

bors r+

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @yuzefovich)


pkg/sql/logictest/testdata/logic_test/join, line 1122 at r1 (raw file):

Previously, mgartner (Marcus Gartner) wrote…

nit: I think the pkg/sql/logictest/testdata/logic_test/union might be a better place for this since there are no explicit joins in the query. Really, pkg/sql/logictest/testdata/logic_test/set seems best, but most EXCEPT tests are currently in the union file...

Done.

@craig
Copy link
Contributor

craig bot commented Mar 22, 2021

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Mar 22, 2021

Build succeeded:

@craig craig bot merged commit 27b4ab1 into cockroachdb:master Mar 22, 2021
@yuzefovich yuzefovich deleted the create-table branch March 22, 2021 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants