-
Notifications
You must be signed in to change notification settings - Fork 411
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
Fail to create table with some TiDB table info #4596
Comments
When run into The unit test case: https://github.com/JaySon-Huang/tiflash/tree/add_4596_test tiflash/dbms/src/Storages/Transaction/TiDB.cpp Lines 153 to 164 in e235089
|
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as outdated.
This comment was marked as outdated.
/assign @Lloyd-Pottiger |
similar issue for parsing invalid default value: #3157 |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
A simplified case from https://asktug.com/t/topic/662946
Those SQLs will create a table with JSON info as below. Note that the column type of "b" is not null long blob, but its "default"/"origin_default" field is
""
and "type.FLen" is-1
.However, if we runCREATE TABLE test ( id int(16) NOT NULL AUTO_INCREMENT, b longblob not null, PRIMARY KEY (id));
in TiDB, we can only get a JSON as below, which "default"/"origin_default" isnull
instead of""
. And this won't make any error.2. What did you expect to see? (Required)
Table create successfully
3. What did you see instead (Required)
TiFlash crashes with
basic_string::_M_replace_aux
4. What is your TiFlash version? (Required)
v5.2.1
The text was updated successfully, but these errors were encountered: