HaiBo Li
9fbc1c7ee6
Support where/orderby/limit after “SHOW ALTER TABLE COLUMN“ syntax (#2380)
Features:
1、Support WHERE/ORDER BY/LIMIT
2、Columns:TableName、CreatTime、FinishTime、State
3、Only “And” between conditions
4、TableName and State column only support "=" operator
5、CreateTime and FinishTime column support “=”,“>=”,"<=",">","<","!=" operators
6、CreateTime and FinishTime column support Date and DateTime string, eg:"2019-12-04" or "2019-12-04 17:18:00"
TestCase:
MySQL [haibotest]> show alter table column where State='FINISHED' and CreateTime > '2019-12-03' order by FinishTime desc limit 0,2;
+-------+---------------+---------------------+---------------------+---------------+---------+---------------+---------------+---------------+----------+------+----------+---------+
| JobId | TableName | CreateTime | FinishTime | IndexName | IndexId | OriginIndexId | SchemaVersion | TransactionId | State | Msg | Progress | Timeout |
+-------+---------------+---------------------+---------------------+---------------+---------+---------------+---------------+---------------+----------+------+----------+---------+
| 11134 | test_schema_2 | 2019-12-03 19:21:42 | 2019-12-03 19:22:11 | test_schema_2 | 11135 | 11059 | 1:192010000 | 3 | FINISHED | | N/A | 86400 |
| 11096 | test_schema_3 | 2019-12-03 19:21:31 | 2019-12-03 19:21:51 | test_schema_3 | 11097 | 11018 | 1:2063361382 | 2 | FINISHED | | N/A | 86400 |
+-------+---------------+---------------------+---------------------+---------------+---------+---------------+---------------+---------------+----------+------+----------+---------+
2 rows in set (0.00 sec)
2019-12-06 16:24:44 +08:00
..
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-08-08 14:47:38 +08:00
2019-11-23 00:04:45 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-12-06 16:24:44 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-06 21:35:07 +08:00
2019-11-18 20:37:00 +08:00