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

decide push down conditions during plan building phase. #1731

Merged
merged 3 commits into from
Sep 18, 2016

Conversation

hanfei1991
Copy link
Member

@@ -40,6 +41,7 @@ type PhysicalIndexScan struct {

accessEqualCount int
AccessCondition []expression.Expression
ConditionPBExpr *tipb.Expr
Copy link
Member

Choose a reason for hiding this comment

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

Add comment for the newly added attribute.

"github.com/pingcap/tipb/go-tipb"
)

func expressionsToPB(exprs []expression.Expression, client kv.Client) (pbExpr *tipb.Expr, remained []expression.Expression, err error) {
Copy link
Member

Choose a reason for hiding this comment

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

Should we remove the code related to expressionToPB in executor package?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, we should. But currently we can't, because we still need convert agg function to pb.

Copy link
Member

Choose a reason for hiding this comment

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

Got it.

@shenli
Copy link
Member

shenli commented Sep 18, 2016

Rest LGTM
@coocood @zimulala @tiancaiamao PTAL

@coocood
Copy link
Member

coocood commented Sep 18, 2016

LGTM

1 similar comment
@shenli
Copy link
Member

shenli commented Sep 18, 2016

LGTM

@shenli shenli merged commit 5caa0f5 into master Sep 18, 2016
@shenli shenli deleted the hanfei/remove_pb branch September 18, 2016 02:35
client := txn.GetClient()
var memDB bool
switch p.DBName.L {
case "information_schema", "performance_schema":
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not use if ?

Copy link
Member Author

@hanfei1991 hanfei1991 Sep 18, 2016

Choose a reason for hiding this comment

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

This pr has been merged ... , btw , this code is ported from executor.go

Copy link
Member Author

Choose a reason for hiding this comment

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

welcome to review #1730 and leave your suggestion :)

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.

4 participants