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 filters being dropped from prepareds on dolt_diff tables #1229

Merged
merged 4 commits into from
Aug 31, 2022

Conversation

jycor
Copy link
Contributor

@jycor jycor commented Aug 31, 2022

TransformProjections was not transferring filters from certain prepared plans that did not contain projections.

Fix for

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.

LGTM, just need to merge your other PR's changes

@@ -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.

same test time comment as other PR

@@ -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.

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 {
Copy link
Contributor

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?

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