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

planner: Optimized EXTRACT(<UNIT> FROM <partition_column>) for partition pruning. #54209

Merged
merged 10 commits into from
Aug 2, 2024
Prev Previous commit
Next Next commit
Removed comment
  • Loading branch information
mjonss committed Jul 9, 2024
commit dc347a6c193abbc4f8eb950ea15bf8401f7f08e9
1 change: 0 additions & 1 deletion pkg/ddl/partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -4425,7 +4425,6 @@ func collectArgsType(tblInfo *model.TableInfo, exprs ...ast.ExprNode) ([]byte, e
}

func hasDateArgs(argsType ...byte) bool {
// Should it be slice.AllOf ?
return slice.AnyOf(argsType, func(i int) bool {
return argsType[i] == mysql.TypeDate || argsType[i] == mysql.TypeDatetime
})
Expand Down