Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#6188
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
  • Loading branch information
Liuxiaozhen12 authored and ti-chi-bot committed Aug 26, 2021
1 parent f9a5b16 commit 785b4af
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tiflash/use-tiflash.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,14 +240,17 @@ Currently, TiFlash supports the following push-down expressions:
* Mathematical functions: `+, -, /, *, >=, <=, =, !=, <, >, round(int), round(double), abs, floor(int), ceil(int), ceiling(int)`
* Logical functions: `and, or, not, case when, if, ifnull, isnull, in`
* Bitwise operations: `bitand, bitor, bigneg, bitxor`
<<<<<<< HEAD
* String functions: `substr, char_length, replace, concat, concat_ws, left, right`
* Date functions: `date_format, timestampdiff, from_unixtime, unix_timestamp(int), unix_timestamp(decimal), str_to_date(date), str_to_date(datetime), date_add(string, int), date_add(datetime, int), date_sub(datetime, int), date_sub(string, int), datediff, year, month, day, extract(datetime)`
=======
* String functions: `substr, char_length, replace, concat, concat_ws, left, right, ascii, length, trim, position`
* Date functions: `date_format, timestampdiff, from_unixtime, unix_timestamp(int), unix_timestamp(decimal), str_to_date(date), str_to_date(datetime), datediff, year, month, day, extract(datetime), date`
>>>>>>> 36ef0f5a0 (tiflash: Remove the description about expr_blacklist in use_tiflash.md (#6188))
* JSON function: `json_length`
* Conversion functions: `cast(int as double), cast(int as decimal), cast(int as string), cast(int as time), cast(double as int), cast(double as decimal), cast(double as string), cast(double as time), cast(string as int), cast(string as double), cast(string as decimal), cast(string as time), cast(decimal as int), cast(decimal as string), cast(decimal as time), cast(time as int), cast(time as decimal), cast(time as string)`
* Aggregate functions: `min, max, sum, count, avg, approx_count_distinct`
Among them, the push-down of `cast` and `date_add` is not enabled by default. To enable it, refer to [Blocklist of Optimization Rules and Expression Pushdown](/blocklist-control-plan.md).
In addition, expressions that contain the Time/Bit/Set/Enum/Geometry type cannot be pushed down to TiFlash.
If a query encounters unsupported push-down calculations, TiDB needs to complete the remaining calculations, which might greatly affect the TiFlash acceleration effect. The currently unsupported operators and expressions might be supported in future versions.
Expand Down

0 comments on commit 785b4af

Please sign in to comment.