Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upsql: enable client to override index selection for DELETE and UPDATE #31012
Conversation
knz
requested review from
jordanlewis,
BramGruneir and
RaduBerinde
Oct 5, 2018
knz
added this to Triage
in SQL Front-end, Lang & Semantics
via automation
Oct 5, 2018
knz
requested review from
cockroachdb/sql-language-prs
as
code owners
Oct 5, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
knz
Oct 5, 2018
Member
@awoods187 this PR is meant to enable the workaround hinted in #30734 (comment)
This PR is also sufficiently simple that we can back-port it to both 2.0 and 2.1.
Can you check whether the customer finds this adequate?
|
@awoods187 this PR is meant to enable the workaround hinted in #30734 (comment) This PR is also sufficiently simple that we can back-port it to both 2.0 and 2.1. Can you check whether the customer finds this adequate? |
knz
added
the
docs-todo
label
Oct 5, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Asked the customer and am awaiting the response |
knz
requested review from
cockroachdb/sql-execution-prs
as
code owners
Oct 5, 2018
RaduBerinde
approved these changes
Oct 7, 2018
knz
moved this from Triage
to Current milestone
in SQL Front-end, Lang & Semantics
Oct 8, 2018
BramGruneir
approved these changes
Oct 8, 2018
Reviewed 8 of 8 files at r1.
Reviewable status:complete! 1 of 0 LGTMs obtained (and 1 stale)
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
knz
Oct 8, 2018
Member
Thanks for your reviews!
However I'll hold off merging this until we get a confirmation from the user that the approach is adequate for their needs.
|
Thanks for your reviews! However I'll hold off merging this until we get a confirmation from the user that the approach is adequate for their needs. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
BramGruneir
Oct 8, 2018
Member
I still think you should merge this. It's sensible to allow overrides the the index selection.
|
I still think you should merge this. It's sensible to allow overrides the the index selection. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
knz
Oct 8, 2018
Member
Yeah but it's a feature extension, and so late in the release cycle it would not be appropriate for a gratuitous backport. Then:
-
if we don't backport it into 2.1, then I think this PR should not be merged as-is and instead we should wait for later 2.2 work on plan hints. Maybe the syntax designed for that roadmap item will be better.
-
to force a backport into 2.1 (and possibly 2.0) we need a strong customer case. This is what I am requesting.
|
Yeah but it's a feature extension, and so late in the release cycle it would not be appropriate for a gratuitous backport. Then:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
awoods187
Oct 8, 2018
Contributor
While it would be nice to get customer confirmation, I think we should go ahead and do this. Even if we decide to implement a different hint syntax in the future this can still be valuable to customers now.
|
While it would be nice to get customer confirmation, I think we should go ahead and do this. Even if we decide to implement a different hint syntax in the future this can still be valuable to customers now. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
All right, let's do this. bors r+ |
knz
referenced this pull request
Oct 11, 2018
Merged
release-2.1: sql: enable client to override index selection for DELETE and UPDATE #31279
bot
pushed a commit
that referenced
this pull request
Oct 11, 2018
knz
moved this from Current milestone
to Finished (milestone r2.1)
in SQL Front-end, Lang & Semantics
Oct 11, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
craig
bot
commented
Oct 11, 2018
Build failed |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
bors r+ |
bot
pushed a commit
that referenced
this pull request
Oct 12, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
craig
bot
commented
Oct 12, 2018
Build succeeded |
knz commentedOct 5, 2018
Informs #30734.
Prior to this patch, if the automatic index selection for DELETE or
UPDATE was inadequate, there was no way to override it like it is
possible for SELECT/INSERT/UPSERT.
This patch fixes this by extending and supporting the syntax for
DELETE and UPDATE:
Release note (sql change): it is now possible to force a specific
index for DELETE or UPDATE.