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

distsql: add remaining seq fns to blacklist #28114

Merged
merged 1 commit into from
Aug 1, 2018

Conversation

jordanlewis
Copy link
Member

There were still a couple of sequence functions that weren't properly
blacklisted from running in DistSQL.

Release note (bug fix): prevent some sequence builtins from incorrectly
running in distributed flows.

There were still a couple of sequence functions that weren't properly
blacklisted from running in DistSQL.

Release note (bug fix): prevent some sequence builtins from incorrectly
running in distributed flows.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@rjnn rjnn left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 3 of 3 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale)

Copy link
Contributor

@andreimatei andreimatei left a comment

Choose a reason for hiding this comment

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

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


pkg/sql/sem/builtins/builtins.go, line 1462 at r1 (raw file):

		tree.FunctionProperties{
			Category:         categorySequences,
			DistsqlBlacklist: true,

I forgot what we discussed... Wasn't currval supposed to work?

Copy link
Member Author

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

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

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


pkg/sql/sem/builtins/builtins.go, line 1462 at r1 (raw file):

Previously, andreimatei (Andrei Matei) wrote…

I forgot what we discussed... Wasn't currval supposed to work?

Maybe it should, but the current implementation doesn't let it. I could fix that now too, I suppose

Copy link
Member Author

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

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

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


pkg/sql/sem/builtins/builtins.go, line 1462 at r1 (raw file):

Previously, jordanlewis (Jordan Lewis) wrote…

Maybe it should, but the current implementation doesn't let it. I could fix that now too, I suppose

I'll fix it in a separate PR.

@jordanlewis
Copy link
Member Author

bors r+

@craig
Copy link
Contributor

craig bot commented Aug 1, 2018

👎 Rejected by code reviews

@jordanlewis jordanlewis dismissed andreimatei’s stale review August 1, 2018 17:15

because i'll fix it in another pr

@jordanlewis
Copy link
Member Author

bors r+

craig bot pushed a commit that referenced this pull request Aug 1, 2018
28114: distsql: add remaining seq fns to blacklist r=jordanlewis a=jordanlewis

There were still a couple of sequence functions that weren't properly
blacklisted from running in DistSQL.

Release note (bug fix): prevent some sequence builtins from incorrectly
running in distributed flows.

Co-authored-by: Jordan Lewis <jordanthelewis@gmail.com>
Copy link
Member Author

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

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

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


pkg/sql/sem/builtins/builtins.go, line 1462 at r1 (raw file):

Previously, jordanlewis (Jordan Lewis) wrote…

I'll fix it in a separate PR.

Wait, no, it's not really possible without major surgery. The problem is that resolving a sequence name (which currval accepts) requires a ton of infrastructure which isn't available on remote flows yet.

@craig
Copy link
Contributor

craig bot commented Aug 1, 2018

Build succeeded

@craig craig bot merged commit 6c7001b into cockroachdb:master Aug 1, 2018
@jordanlewis jordanlewis deleted the dist-seq branch August 1, 2018 17:35
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.

None yet

4 participants