[fix] better error message when load insert into a table with no pri… #1972
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Task Description
fix confusing error message in load insert , close #1971
Solution Description
When a parent DDL task failed because of the failure of child tasks, it should load error message reported by child tasks from __all_virtual_ddl_error_message table using a insert query SQL with parent_id and err_code as filter.
Passed Regressions
mysql_test:
tools/deploy/mysql_test/test_suite/table_redefinition/t/duplicate_key_load.test
Upgrade Compatibility
Other Information
Release Note