pingcap / pingcap/tidb

Add a check to avoid non-utf8 truncated schema

Open
#49,259 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.