Add a check to avoid non-utf8 truncated schema
Open
component/ddl
type/enhancement
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Enhancement
In https://github.com/pingcap/tidb/pull/49229, I tried to fix a bug in which a DDL query may produce non-utf8 schema, and the schema will be truncated when it's uploading to the storage and every TiDB. We should add a check to give an error and stop the DDL when the schema is not a valid utf8 string.
Contributor guide
Assessment
This issue has not been assessed yet.