Commit Graph

68 Commits

Author SHA1 Message Date
c59933323a expression: fix constItem() and column-pruning in order by clause (#11839) 2019-08-28 16:59:35 +08:00
62f1a54680 expression: remove row-vec convertor and introduce Vectorized() to check if an expression supports vectorized evaluation explicitly (#11884) 2019-08-27 20:16:35 +08:00
6f76bbe1f7 Introduce individual vectorized evaluation methods for each type. (#11815) 2019-08-22 10:51:25 +08:00
e19ef45e3e expression: make Column support hybrid types when vectorized evaluation (#11803) 2019-08-21 15:00:28 +08:00
6d51ad33fd *: Optimize struct memory usage by adjust field order (#11629) 2019-08-13 17:20:53 +08:00
45790b5799 fixup (#11636) 2019-08-06 15:42:56 +08:00
d54f0a2bd4 expression: add vectorized evaluation methods to Expression (#11530) 2019-08-01 13:28:23 +08:00
0972a6f012 planner: keep unfoldable exprs when pruning columns for ORDER BY items (#10064) 2019-04-15 16:02:27 +08:00
9d25a85bda expression: support ConstItem() for expression (#10004) 2019-04-15 13:07:23 +08:00
5a283a98dd plan/executor: make semi joins null and empty aware (#9051) 2019-02-25 15:42:38 +08:00
84750e8550 expression: handle ENUM in builtin function Values() (#9225) 2019-02-12 11:48:55 +08:00
dca815c1c5 expression: return error when doing ResolveIndices (#8929) 2019-01-15 14:34:06 +08:00
d9e02b76dd expression: remove redundant "errors.Trace()" in "expression" package (#8609) 2018-12-07 12:20:31 +08:00
4a3080a1c1 plan: use original field name when Column is extracted from IfNull (#8225) 2018-11-08 15:13:45 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
b3cda9a7dc expression: fix comments mistake (#7713) 2018-09-17 14:28:14 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
b3d4ed79b9 server, mysql: return correct column name and column label name (#7600) 2018-09-08 13:06:14 +08:00
87c54b2610 plan, statistics: maintain HistColl in DataSource's StatsInfo (#7385) 2018-08-31 01:14:43 +08:00
d9f7ffe539 plan: fix a bug when using correlated column as index (#7357) 2018-08-24 16:52:40 +08:00
44a2ad7f0f expression, plan: rename Column.Position to Column.UniqueID (#7218) 2018-08-01 15:44:21 +08:00
f4f1692fd1 *: remove FromID from expression.Column (#7157) 2018-07-30 11:06:02 +08:00
06021c7cfe remove types.Row interface (#7170) 2018-07-27 13:45:03 +08:00
9cf670a324 *: cut off duration.fsp in chunk (#7043) 2018-07-17 15:36:27 +08:00
5a5aeb813a expression, plan: no longer call expression.Clone in plan package except ResolveIndices (#6866) 2018-06-29 16:25:26 +08:00
d68bf86896 *: remove useless code (#5343) 2018-03-21 10:59:23 +08:00
c16855d3ec expression: avoid using datum in HashCode(). (#5911) 2018-02-27 18:58:45 +08:00
cd63332ebf expression, plan: extract the same part from DNF's leaves. (#5831) 2018-02-26 16:03:05 +08:00
12c87929b8 *:fix some golint && ineffassign && misspell to improve GoReport Result (#5867) 2018-02-23 19:31:05 +08:00
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00
fc6376981d *: remove GetSessionVars() in expression evaluation (#5683) 2018-01-22 11:04:32 +08:00
07dc46d3cb expression: refactor hybrid type expressions (#5550) 2018-01-06 11:04:50 +08:00
970e5b5684 *: replace JSON with BinaryJSON (#5460) 2017-12-21 15:20:17 +08:00
f1e89cde19 *: use lower-case of github.com/sirupsen/logrus (#5400)
*: rename github.com/Sirupsen/logrus to github.com/sirupsen/logrus

* vendor: update pd

* vendor: update github.com/pingcap/tipb/go-mysqlx
2017-12-14 16:25:58 +08:00
8b15cb52b7 *: move StatementContext to its own package. (#5177) 2017-11-22 00:11:14 +08:00
dd2812fa55 mysql, expression: support sql_mode 'PAD_CHAR_TO_FULL_LENGTH' (#5065) 2017-11-21 13:22:29 +08:00
81652dbeef *: remove returned value isNull in Row methods. (#5131) 2017-11-17 11:12:41 +08:00
32dd95be51 plan: no need to double read in some case. (#5079) 2017-11-13 14:46:21 +08:00
1aa2a69f92 expression: remove type assertion on types.DatumRow. (#5005) 2017-11-07 14:17:53 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
ed7f68ca9b *: Add Row interface (#4859) 2017-10-23 11:36:28 +08:00
4867bcfa3e expression: fix a bug occured in select sum(float col)*0.1 (#4854)
* expression: fix a bug occured in select sum(1.2e2)*0.1
2017-10-20 20:42:28 -05:00
a34964a36a *: improve the column info for client (#4770)
Add table/database info in the response message.
2017-10-15 08:27:13 -05:00
1c4143e9e4 expression, types: remove the useage of "evalExprToXXX" functions (#4666) 2017-09-27 23:42:00 +08:00
baee1bb864 expression, types, plan: remove the usage of "TypeClass" completely (#4654) 2017-09-27 12:39:44 +08:00
88e1666ac6 *: change the log package to logrus (#4452) 2017-09-08 00:45:07 -05:00
4e580249db expression: rewrite "HashCode()" for "Column" (#4457) 2017-09-07 10:01:05 +08:00
ffa8405879 plan: let "allocID()" return int to make performance happy (#4441) 2017-09-06 17:19:08 +08:00
c51d0f57ed *: support JSON in new expression architecture (#4089) 2017-08-10 15:56:53 +08:00