databend
databend copied to clipboard
bug: create table binary type with default value panic
Search before asking
- [X] I had searched in the issues and found no similar issues.
Version
v1.2.347-nightly
What's Wrong?
panicked at src/query/sql/src/planner/expression_parser.rs:409:79:
removal index (is 0) should be < len (is 0)
0: databend_common_tracing::panic_hook::log_panic
How to Reproduce?
mysql> create table t1(a int, b binary NOT NULL DEFAULT 'abc');
ERROR 1105 (HY000): BadArguments. Code: 1006, Text = unable to cast type `UInt32` to type `Binary`.
mysql> create table t1(a int, b binary NOT NULL DEFAULT '');
ERROR 1105 (HY000): TokioError. Code: 1068, Text = Cannot join handle from context's runtime, cause: task 512 panicked.
Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!