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: Add a SHOW RANGES FROM DATABASE command. #39194

Merged
merged 1 commit into from
Aug 5, 2019

Conversation

rohany
Copy link
Contributor

@rohany rohany commented Jul 31, 2019

Fixes #36131.

Release note (sql change): Add a SHOW RANGES FROM DATABASE command.

@rohany rohany requested review from solongordon and a team July 31, 2019 16:54
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@solongordon solongordon left a comment

Choose a reason for hiding this comment

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

A commit message would be welcome.

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


pkg/sql/delegate/show_ranges.go, line 28 at r1 (raw file):

//   SHOW RANGES FROM DATABASE db
//
// These statements show the ranges corresponding to the given table or index,

Out of date comment


pkg/sql/sem/tree/show.go, line 392 at r1 (raw file):

		ctx.WriteString("TABLE ")
	}
	ctx.FormatNode(&node.TableOrIndex)

Looks like this is wrong in the database case.

Copy link
Contributor

@solongordon solongordon 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 @rohany and @solongordon)

@rohany
Copy link
Contributor Author

rohany commented Aug 5, 2019

bors r+

@craig
Copy link
Contributor

craig bot commented Aug 5, 2019

Merge conflict (retrying...)

@rohany
Copy link
Contributor Author

rohany commented Aug 5, 2019

bors r-

@craig
Copy link
Contributor

craig bot commented Aug 5, 2019

Canceled

Fixes cockroachdb#36131.

Adds a SHOW RANGES FROM DATABASE command, with similar
output as SHOW RANGES FROM TABLE/INDEX.

Release note (sql change): Add a SHOW RANGES FROM DATABASE command.
@rohany
Copy link
Contributor Author

rohany commented Aug 5, 2019

bors r+

craig bot pushed a commit that referenced this pull request Aug 5, 2019
39194: sql: Add a SHOW RANGES FROM DATABASE command. r=rohany a=rohany

Fixes #36131.

Release note (sql change): Add a SHOW RANGES FROM DATABASE command.

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

craig bot commented Aug 5, 2019

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: support SHOW EXPERIMENTAL_RANGES FROM DATABASE foo
3 participants