Skip to content

exec: fix a bug with ordinality #39302

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

Merged
merged 1 commit into from
Aug 5, 2019
Merged

Conversation

yuzefovich
Copy link
Member

Ordinality operator was assuming that it's output column is always
the last one which is incorrect when other column-appending operators
are present.

Release note: None

@yuzefovich yuzefovich requested review from jordanlewis, rafiss and a team August 4, 2019 01:54
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@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! 0 of 0 LGTMs obtained (waiting on @jordanlewis, @rafiss, and @yuzefovich)


pkg/sql/logictest/testdata/logic_test/ordinality, line 79 at r1 (raw file):

# indices is done correctly.
statement ok
SET vectorize=experimental_on

Adding these everywhere will quickly become unmaintainable. Can we add a vec config to this file instead?

Ordinality operator was assuming that it's output column is always
the last one which is incorrect when other column-appending operators
are present.

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.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @jordanlewis and @rafiss)


pkg/sql/logictest/testdata/logic_test/ordinality, line 79 at r1 (raw file):

Previously, jordanlewis (Jordan Lewis) wrote…

Adding these everywhere will quickly become unmaintainable. Can we add a vec config to this file instead?

Good point, done.

Copy link
Collaborator

@rafiss rafiss left a comment

Choose a reason for hiding this comment

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

thanks for finding this!

Reviewed 1 of 2 files at r1, 1 of 1 files at r2.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @jordanlewis)

@yuzefovich
Copy link
Member Author

Np! TFTRs!

bors r+

craig bot pushed a commit that referenced this pull request Aug 5, 2019
39302: exec: fix a bug with ordinality r=yuzefovich a=yuzefovich

Ordinality operator was assuming that it's output column is always
the last one which is incorrect when other column-appending operators
are present.

Release note: None

Co-authored-by: Yahor Yuzefovich <[email protected]>
@craig
Copy link
Contributor

craig bot commented Aug 5, 2019

Build succeeded

@craig craig bot merged commit 5e224ec into cockroachdb:master Aug 5, 2019
@yuzefovich yuzefovich deleted the exec-ordinality branch August 30, 2019 19:38
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.

4 participants