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: fix explain gist output to show number of scan span constraints #85325

Merged
merged 1 commit into from
Jul 29, 2022

Conversation

cucaroach
Copy link
Contributor

If there were span constraints we would always print 1, need to actually
append them to get the count right.

Fixes: #85324

Release note: None

@cucaroach cucaroach requested a review from a team as a code owner July 29, 2022 16:06
@cockroach-teamcity
Copy link
Member

This change is Reviewable

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:

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @cucaroach and @rytaft)


pkg/sql/opt/exec/explain/testdata/gists line 1135 at r1 (raw file):

    └── • scan
          table: ?@?
          spans: 15 spans

nit: add newline at end of file

Copy link
Collaborator

@rytaft rytaft 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 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! 2 of 0 LGTMs obtained (waiting on @cucaroach)

If there were span constraints we would always print 1, need to actually
append them to get the count right.

Fixes: cockroachdb#85324

Release note: None
@cucaroach
Copy link
Contributor Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Jul 29, 2022

Build succeeded:

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.

sql: gist decoder not properly setting number of spans in scan constraints
4 participants