Skip to content

Zachmu/test refactor#641

Merged
zachmu merged 27 commits into
masterfrom
zachmu/test-refactor
Apr 30, 2020
Merged

Zachmu/test refactor#641
zachmu merged 27 commits into
masterfrom
zachmu/test-refactor

Conversation

@zachmu

@zachmu zachmu commented Apr 30, 2020

Copy link
Copy Markdown
Member

Refactored the SQL engine tests to make it possible to validate schemas of result sets are as expected. This involved moving a lot of code around to avoid import cycles. Also unskipped or deleted a bunch of tests that had been skipped.

zachmu added 24 commits April 24, 2020 14:18
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
…age, as well as everything else in the old sql package, and then get rid of import cycles.

Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
…dential insert queries, already fixed)

Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
…ntil they can be fixed in go-mysql-server

Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>
@zachmu zachmu requested a review from andy-wm-arthur April 30, 2020 04:41
@zachmu

zachmu commented Apr 30, 2020

Copy link
Copy Markdown
Member Author

This looks huge, but it's almost 100% moved files. I deleted the files that were full of test queries and inlined those queries into the relevant test files. (This was an artifact from when we had two SQL engines that we were testing, no longer useful). I mostly want you to look at the structure of the package moves and see if they seem sensible to you.

zachmu added 2 commits April 30, 2020 10:14
Signed-off-by: Zach Musgrave <zach@liquidata.co>
Signed-off-by: Zach Musgrave <zach@liquidata.co>

@andy-wm-arthur andy-wm-arthur left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Seems like it's mostly collapsing sql into sqle, just a few comments

Comment thread go/cmd/dolt/dolt.go
Comment thread go/go.mod
Comment thread go/libraries/doltcore/sql/sqltestutil/data.go
Comment thread go/libraries/doltcore/sqle/rows.go Outdated
Comment thread go/libraries/doltcore/sqle/sqldelete_test.go Outdated
Signed-off-by: Zach Musgrave <zach@liquidata.co>
@zachmu zachmu merged commit 72984f0 into master Apr 30, 2020
@Hydrocharged Hydrocharged deleted the zachmu/test-refactor branch May 2, 2020 20:42
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