-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
Conversation
There was a problem hiding this 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
enginetest/memory_engine_test.go
Outdated
@@ -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 { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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`, |
There was a problem hiding this comment.
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
Moved these rules to run during preprepared, as the explain queries for history table were missing
Exchange
nodeinSubqueryIndexesId
AutocommitId
TrackProcessId
parallelizeId
clearWarningsId
Tests: