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

Fix MySQL/MariaDB TPROC-H build FK error #599

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

sm-shaw
Copy link
Contributor

@sm-shaw sm-shaw commented Sep 15, 2023

Bug was introduced into MySQL/MariaDB TPROC-H schema with build #556 resulting in following error creating tables

Error in Virtual User 1: Error: mysqlexec/db server: Referencing column 'L_ORDERKEY' and referenced column 'O_ORDERKEY' in foreign key constraint 'LINEITEM_ibfk_1' are incompatible.
Error in Virtual User 1: Error: mariaexec/db server: Can't create table `tpch`.`LINEITEM` (errno: 150 "Foreign key constraint is incorrectly formed")

PR changes O_ORDERKEY to bigint O_ORDERKEY BIGINT NOT NULL so FK is correctly formed. Fixed in both MySQL and MariaDB.

@sm-shaw sm-shaw requested a review from a team as a code owner September 15, 2023 10:00
@sm-shaw sm-shaw added the bug Something isn't working label Sep 15, 2023
@sm-shaw sm-shaw linked an issue Sep 15, 2023 that may be closed by this pull request
@abondvt89
Copy link
Contributor

Merging after reviews and approval of the three members of the code maintenance team.

@abondvt89 abondvt89 merged commit e2f6341 into TPC-Council:master Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Buildschema error on MySQL tpc-h bm cannot add foreign key constraint
3 participants