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

TPC-X query plan tests #2022

Merged
merged 13 commits into from
Sep 28, 2023
Merged

TPC-X query plan tests #2022

merged 13 commits into from
Sep 28, 2023

Conversation

max-hoffman
Copy link
Contributor

@max-hoffman max-hoffman commented Sep 20, 2023

Added schemas, stats, query plans for:

  • TPC-H
  • TPC-DS
  • IMDB join planning benchmark

Added plangen to auto-update the tests.

We cannot parse all of the TPC-DS query plans yet. I saw some ROLLUP and aggregation validation errors.

Excluding data ops benchmark because the plans are not interesting.

@max-hoffman max-hoffman changed the title More query plan tests TPC-X query plan tests Sep 22, 2023
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

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

Good to have these here, just a few minor comments on generation code

}

var err error
switch cmd {
Copy link
Member

Choose a reason for hiding this comment

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

Seems like a useless extra switch

Copy link
Contributor Author

Choose a reason for hiding this comment

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

deleted

path: enginetest/queries/tpch_plans.go
- name: TpccPlanTests
path: enginetest/queries/tpcc_plans.go
# - name: TpcdsPlanTests
Copy link
Member

Choose a reason for hiding this comment

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

Uncomment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we can't parse them yet

ImdbPlanSetup [][]SetupScript
LoadDataSetup [][]SetupScript
XySetup [][]SetupScript
JoinsSetup [][]SetupScript
)

func init() {
Copy link
Member

Choose a reason for hiding this comment

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

What's the point of this init block, why can't these be declared inline

Copy link
Contributor Author

Choose a reason for hiding this comment

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

rewrote

@max-hoffman max-hoffman merged commit 141514e into main Sep 28, 2023
@max-hoffman max-hoffman deleted the max/tpc-plans branch September 28, 2023 15:54
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.

2 participants