Open keeplearning20221 opened 2 years ago
plan:
with mpp NULL
mysql> explain SELECT FROM_UNIXTIME(tchar) from tfrom_unixtime ;
+---------------------------+---------+--------------+----------------------+--------------------------------------------------------------------------------+
| id | estRows | task | access object | operator info |
+---------------------------+---------+--------------+----------------------+--------------------------------------------------------------------------------+
| TableReader_11 | 1.00 | root | | data:ExchangeSender_10 |
| └─ExchangeSender_10 | 1.00 | mpp[tiflash] | | ExchangeType: PassThrough |
| └─Projection_4 | 1.00 | mpp[tiflash] | | from_unixtime(cast(test.tfrom_unixtime.tchar, decimal(40,0) BINARY))->Column#3 |
| └─TableFullScan_9 | 1.00 | mpp[tiflash] | table:tfrom_unixtime | keep order:false, stats:pseudo |
+---------------------------+---------+--------------+----------------------+--------------------------------------------------------------------------------+
4 rows in set (0.00 sec)
without mpp 3001-01-19 07:59:59.000000
mysql> explain SELECT FROM_UNIXTIME(tchar) from tfrom_unixtime ;
+-------------------------+---------+--------------+----------------------+--------------------------------------------------------------------------------+
| id | estRows | task | access object | operator info |
+-------------------------+---------+--------------+----------------------+--------------------------------------------------------------------------------+
| Projection_3 | 1.00 | root | | from_unixtime(cast(test.tfrom_unixtime.tchar, decimal(40,0) BINARY))->Column#3 |
| └─TableReader_7 | 1.00 | root | | data:TableFullScan_6 |
| └─TableFullScan_6 | 1.00 | cop[tiflash] | table:tfrom_unixtime | keep order:false, stats:pseudo |
+-------------------------+---------+--------------+----------------------+--------------------------------------------------------------------------------+
3 rows in set (0.00 sec)
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
The results of tidb and tiflash should be same
3. What did you see instead (Required)
tiflash:
tidb:
4. What is your TiFlash version? (Required)