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 SHOW TABLES FROM db stats display #61191

Merged
merged 1 commit into from
Feb 26, 2021

Conversation

rafiss
Copy link
Collaborator

@rafiss rafiss commented Feb 26, 2021

fixes #58652

Release justification: low-risk bug fix to existing functionality.

Release note (bug fix): The SHOW TABLES FROM database command would
always show a NULL estimated_row_count if inspecting a database that was
not the current database. This is now fixed.

@rafiss rafiss requested review from RichardJCai and a team February 26, 2021 15:39
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Release justification: low-risk bug fix to existing functionality.

Release note (bug fix): The `SHOW TABLES FROM database` command would
always show a NULL estimated_row_count if inspecting a database that was
not the current database. This is now fixed.
@rafiss
Copy link
Collaborator Author

rafiss commented Feb 26, 2021

tftr!

bors r=RichardJCai

@craig
Copy link
Contributor

craig bot commented Feb 26, 2021

Build succeeded:

@craig craig bot merged commit 45deb66 into cockroachdb:master Feb 26, 2021
craig bot pushed a commit that referenced this pull request Feb 27, 2021
61215: sql: deflake TestPGPreparedQuery r=RaduBerinde,rytaft a=rafiss

A recent change to stats in SHOW TABLES made this test flaky. Stats are
now read with AOST -10s by default, but for tests like this we need to
modify this. See #60953 and #61191

Release justification: test-only change

Release note: None

Co-authored-by: Rafi Shamim <rafi@cockroachlabs.com>
@rafiss rafiss deleted the show-tables-from-db-stats branch February 27, 2021 15:57
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.

cli: show tables and show tables from databasename estimated_row_count is inconsistent
3 participants