Skip to content

sql: fix explain gist output to show number of scan span constraints#85325

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
cucaroach:gist-span-count
Jul 29, 2022
Merged

sql: fix explain gist output to show number of scan span constraints#85325
craig[bot] merged 1 commit intocockroachdb:masterfrom
cucaroach:gist-span-count

Conversation

@cucaroach
Copy link
Copy Markdown
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
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
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
Copy Markdown
Contributor Author

TFTR!

bors r+

@craig
Copy link
Copy Markdown
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