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 more prepared enginetests #1212

Merged
merged 10 commits into from
Aug 31, 2022
Merged

fix more prepared enginetests #1212

merged 10 commits into from
Aug 31, 2022

Conversation

jycor
Copy link
Contributor

@jycor jycor commented Aug 23, 2022

Moved these rules to run during preprepared, as the explain queries for history table were missing Exchange node

  • inSubqueryIndexesId
  • AutocommitId
  • TrackProcessId
  • parallelizeId
  • clearWarningsId

Tests:

Copy link
Contributor

@max-hoffman max-hoffman left a comment

Choose a reason for hiding this comment

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

in general LGTM but i'd like to not run prepareds with all parallelism

@@ -84,6 +84,26 @@ func TestQueries(t *testing.T) {
// TestQueriesPrepared runs the canonical test queries against the gamut of thread, index and partition options
// with prepared statement caching enabled.
func TestQueriesPrepared(t *testing.T) {
for _, numPartitions := range numPartitionsVals {
Copy link
Contributor

Choose a reason for hiding this comment

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

does this actually expose test errors or are you just trying to be thorough? doing all partitions and all ranges for all queries takes an unreasonable amount of time. if we need more tests i'd prefer a subset run with parallelism

Copy link
Contributor Author

@jycor jycor Aug 31, 2022

Choose a reason for hiding this comment

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

The Exchange node only gets added when there is parallelism > 1, I can change the test to only run with a parallelism = 2

@@ -122,17 +142,17 @@ func TestSingleQuery(t *testing.T) {

var test queries.QueryTest
test = queries.QueryTest{
Query: `SELECT * FROM mytable order by i desc`,
Query: `SELECT mytable.s FROM mytable WHERE mytable.i IN (SELECT othertable.i2 FROM othertable) ORDER BY mytable.i ASC`,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: try to exclude these from PRs when you can

@jycor jycor merged commit c692217 into main Aug 31, 2022
@Hydrocharged Hydrocharged deleted the james/prepareds2 branch October 13, 2022 12:50
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.

None yet

2 participants