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: don't show the "hidden" column flag in EXPLAIN #51837

Merged
merged 1 commit into from
Jul 23, 2020

Conversation

RaduBerinde
Copy link
Member

The ResultColumns.Hidden flag is used internally; it does not carry
useful information for users and should not be visible in EXPLAIN.

Release note (sql change): EXPLAIN no longer shows the "hidden"
annotation for columns.

The ResultColumns.Hidden flag is used internally; it does not carry
useful information for users and should not be visible in EXPLAIN.

Release note (sql change): EXPLAIN no longer shows the "hidden"
annotation for columns.
@RaduBerinde RaduBerinde requested a review from yuzefovich July 23, 2020 15:32
@RaduBerinde RaduBerinde requested a review from a team as a code owner July 23, 2020 15:32
@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 11 of 12 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @RaduBerinde and @yuzefovich)


pkg/sql/sqlbase/result_columns.go, line 108 at r1 (raw file):

// The column types are printed if printTypes is true.
// The hidden property is printed if showHidden is true.
func (r ResultColumns) String(printTypes bool, showHidden bool) string {

You planning on passing showHidden=true elsewhere? I only see the one call passing false.

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:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @RaduBerinde and @yuzefovich)

@RaduBerinde
Copy link
Member Author


pkg/sql/sqlbase/result_columns.go, line 108 at r1 (raw file):

Previously, mgartner (Marcus Gartner) wrote…

You planning on passing showHidden=true elsewhere? I only see the one call passing false.

No, there's no other caller. Just wanted to keep it general.

Copy link
Member Author

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

bors r+

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @mgartner and @yuzefovich)

@craig
Copy link
Contributor

craig bot commented Jul 23, 2020

Build succeeded:

@craig craig bot merged commit fb77854 into cockroachdb:master Jul 23, 2020
@RaduBerinde RaduBerinde deleted the explain-no-hidden branch July 23, 2020 19:59
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.

3 participants