-
-
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 filters being dropped from prepareds on dolt_diff
tables
#1229
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.
LGTM, just need to merge your other PR's changes
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.
same test time comment as other PR
enginetest/memory_engine_test.go
Outdated
@@ -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.
same git checkout main -- enginetest/memory_engine_test.go
comment as other PR
sql/type.go
Outdated
@@ -552,6 +552,12 @@ func ConvertToBool(v interface{}) (bool, error) { | |||
} | |||
} | |||
|
|||
// IsDeferred checks if t is Deferred | |||
func IsDeferred(t Type) bool { |
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.
this looks unused in this PR?
TransformProjections
was not transferring filters from certain prepared plans that did not contain projections.Fix for
dolt_diff_<table>
dolt#3916Tests: