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: update tpcc and tpch stats #77019

Merged
merged 1 commit into from
Feb 25, 2022

Conversation

rharding6373
Copy link
Collaborator

This change rewrites the stats for tpcc and tpch to include the new
table statistic avg_size.

Fixes: #72332

Release note: None

@rharding6373 rharding6373 requested a review from a team as a code owner February 25, 2022 03:09
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator Author

@rharding6373 rharding6373 left a comment

Choose a reason for hiding this comment

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

I wrote up the steps I followed in a new wiki page for posterity (thanks to @rytaft for the initial instructions), so you may be interested in reviewing that, too: https://cockroachlabs.atlassian.net/wiki/spaces/SQLQUERIES/pages/2448720032/Running+New+TPCC+and+TPCH+Stats

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

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.

Awesome! Thanks for writing this up.

Reviewed 25 of 25 files at r1, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @michae2 and @rharding6373)


pkg/sql/opt/memo/testdata/stats_quality/tpcc, line 1750 at r1 (raw file):


----Stats for consistency_12_merge_join_3----
WARNING: No previous statistics output was found. To collect actual statistics,

Looks like you need to run this one with -rewrite-actual-stats=true. No need to worry about possible regressions since this is a consistency check, not part of the main benchmark, but would still be good to update the stats.

Copy link
Collaborator Author

@rharding6373 rharding6373 left a comment

Choose a reason for hiding this comment

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

TFTR!

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


pkg/sql/opt/memo/testdata/stats_quality/tpcc, line 1750 at r1 (raw file):

Previously, rytaft (Rebecca Taft) wrote…

Looks like you need to run this one with -rewrite-actual-stats=true. No need to worry about possible regressions since this is a consistency check, not part of the main benchmark, but would still be good to update the stats.

Thanks for catching this! Done.

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 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @michae2 and @rharding6373)


-- commits, line 12 at r2:
nit: don't forget to squash this one before you merge

This change rewrites the stats for tpcc and tpch to include the new
table statistic avg_size.

Fixes: cockroachdb#72332

Release note: None
Copy link
Collaborator Author

@rharding6373 rharding6373 left a comment

Choose a reason for hiding this comment

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

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


-- commits, line 12 at r2:

Previously, rytaft (Rebecca Taft) wrote…

nit: don't forget to squash this one before you merge

Done.

@rharding6373
Copy link
Collaborator Author

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 25, 2022

Build succeeded:

@craig craig bot merged commit 2826900 into cockroachdb:master Feb 25, 2022
@rharding6373 rharding6373 deleted the stats_quality_testing branch February 25, 2022 22:16
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.

opt: update scan cost model with column size from table statistics
3 participants