Run sql failed when using replace function #9522
Labels
affects-8.5
This bug affects the 8.5.x(LTS) versions.
component/compute
severity/major
type/bug
The issue is confirmed as a bug.
Bug Report
When using the
replace
function in complex SQL, it may be affected by thewhere
condition, causing thereplace
function to fail when pushed down to Tiflash for execution.For example,
This statement will replace the
replace
function's parameter with the filter parameter when it is pushed down to improve SQL execution efficiency. Unfortunately, Tiflash only supports thereplace
function first parameter to be of typeColumnString
.1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
Query OK.
3. What did you see instead (Required)
ERROR 1105 (HY000): other error for mpp stream: Code: 44, e.displayText() = DB::Exception: Illegal column Const(String) of first argument of function replaceAll, e.what() = DB::Exception,
4. What is your TiFlash version? (Required)
master
The text was updated successfully, but these errors were encountered: