-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
slice bounds out of range #7578
Comments
Thanks for your reporting. We will investigate this. @zz-jason PTAL when you have time. |
mini testcase:
dumpTextRow use column info to decode chunk.Row, excepted type is Enum. release-2.0 works fine. Maybe #6852 affected it. |
It's around here: The old code evaluate using type.Datum, and enum type info would be handle properly. When the chunk execution finish, the column data stored in the chunk is string (it should be converted to enum somewhere), but the schema expect the column data to be a enum, so the panic happen. PTAL @zz-jason |
In the type infer phase, the result type for function In a word, the type of the column in the schema should be reset after creating an aggregate function descriptor through the function |
@mccxj Got it! Thanks! |
Please answer these questions before submitting your issue. Thanks!
What did you do?
programer
What did you expect to see?
What did you see instead?
What version of TiDB are you using (
tidb-server -V
or runselect tidb_version();
on TiDB)?Release Version: v2.1.0-rc.1-7-g38c939f
The text was updated successfully, but these errors were encountered: