Skip to content

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

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