-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
copr: bit column support push down to TiKV #31884
Changes from all commits
ae306b9
ced1b5a
2be25de
3127615
44d310f
2d24e20
3fbbd5e
9c72109
7aaf62e
014c448
fb0c78b
7c54b11
9179639
7d1368a
8df7931
d5e0aee
940af02
ee268af
d230c30
690b384
bf39c0e
02c043e
2619cd3
49014d9
01cb64c
fa1ca42
1fe8d4e
c610366
dc73d6d
d8a2a0c
ee65448
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1132,6 +1132,11 @@ func (er *expressionRewriter) Leave(originInNode ast.Node) (retNode ast.Node, ok | |
} else { | ||
castFunction.SetRepertoire(expression.UNICODE) | ||
} | ||
|
||
//See detailed comment in `expression/builtin_cast.go:WrapWithCastAsString()`; eg: "where CAST(bit as CAHR)" | ||
if arg.GetType().Tp == mysql.TypeBit { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why we still need to add this if block after we added the same codes in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Function ascii()、concat() will call through expression/builtin_cast.go::WrapWithCastAsString; |
||
v.Tp.Flen = (arg.GetType().Flen + 7) / 8 | ||
} | ||
} else { | ||
castFunction.SetCoercibility(expression.CoercibilityNumeric) | ||
castFunction.SetRepertoire(expression.ASCII) | ||
|
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.
Is there any testcase to cover this? eg: push ascii bit column down and assert the result.
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.
Ok, I will add it.