Skip to content
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

for MPP request, tiflash doesn't honor FlagIgnoreTruncate #9752

Closed
D3Hunter opened this issue Dec 30, 2024 · 5 comments · Fixed by #9862
Closed

for MPP request, tiflash doesn't honor FlagIgnoreTruncate #9752

D3Hunter opened this issue Dec 30, 2024 · 5 comments · Fixed by #9862
Labels
component/compute severity/major type/bug The issue is confirmed as a bug.

Comments

@D3Hunter
Copy link

D3Hunter commented Dec 30, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

for MPP request, tiflash doesn't honor FlagIgnoreTruncate, tikv does, see pingcap/tidb#58443 (comment) too

2. What did you expect to see? (Required)

ignore truncate error

3. What did you see instead (Required)

report error

4. What is your TiFlash version? (Required)

8.5

@windtalker
Copy link
Contributor

The root cause is TiFlash's error handle code is out of date after pingcap/tidb#49122, refer to pingcap/tidb#58443 (comment) for more details.

Copy link
Contributor

ti-chi-bot bot commented Dec 30, 2024

@zanmato1984: The label(s) severity/major cannot be applied. These labels are supported: tide/merge-method-rebase, tide/merge-method-squash, tide/merge-method-merge, duplicate, first-time-contributor, good first issue, help wanted, invalid, question, wontfix, make-local-great-again, needs-cherry-pick-release-5.4, needs-cherry-pick-release-6.1, needs-cherry-pick-release-6.5, needs-cherry-pick-release-7.1, needs-cherry-pick-release-7.5, needs-cherry-pick-release-8.1, needs-cherry-pick-release-8.5, affects-5.4, affects-6.1, affects-6.5, affects-7.1, affects-7.5, affects-8.1, affects-8.4, affects-8.5, may-affects-5.4, may-affects-6.1, may-affects-6.5, may-affects-7.1, may-affects-7.5, may-affects-8.1, may-affects-8.5.

In response to this:

/label severity/major

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

1 similar comment
Copy link
Contributor

ti-chi-bot bot commented Dec 30, 2024

@zanmato1984: The label(s) severity/major cannot be applied. These labels are supported: tide/merge-method-rebase, tide/merge-method-squash, tide/merge-method-merge, duplicate, first-time-contributor, good first issue, help wanted, invalid, question, wontfix, make-local-great-again, needs-cherry-pick-release-5.4, needs-cherry-pick-release-6.1, needs-cherry-pick-release-6.5, needs-cherry-pick-release-7.1, needs-cherry-pick-release-7.5, needs-cherry-pick-release-8.1, needs-cherry-pick-release-8.5, affects-5.4, affects-6.1, affects-6.5, affects-7.1, affects-7.5, affects-8.1, affects-8.4, affects-8.5, may-affects-5.4, may-affects-6.1, may-affects-6.5, may-affects-7.1, may-affects-7.5, may-affects-8.1, may-affects-8.5.

In response to this:

/label severity/major

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@zanmato1984
Copy link
Contributor

/severity major

@guo-shaoge
Copy link
Contributor

The problem is when sql_mode is empty(a.k.a. non strict mode), tiflash report overflow error while tikv didn't.

I think it's because import stmt didn't handle sql_mode properly, which has been fixed by tidb/pull/58606.

Although tiflash handle overflow and truncate seperately, but if TiDB can always keep OverflowAsWarning and TruncateAsWarning consistent when dispatching MPPTasks, everything will be ok. Moreover, TiDB already does this.(check code)

ti-chi-bot bot added a commit that referenced this issue Feb 11, 2025
close #9752

Signed-off-by: guo-shaoge <shaoge1994@163.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/compute severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants