-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run sql failed when using replace function #9522
Closed
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.
Comments
12 tasks
12 tasks
12 tasks
ti-chi-bot bot
added a commit
that referenced
this issue
Nov 18, 2024
close #9522 1. remove some useless arguments(pos, occ, match_type) 2. support first argument as ColumnConst Signed-off-by: guo-shaoge <shaoge1994@163.com> Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
This was referenced Nov 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: