databend icon indicating copy to clipboard operation
databend copied to clipboard

bug: create table binary type with default value panic

Open b41sh opened this issue 1 year ago • 0 comments

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!

b41sh avatar Feb 23 '24 10:02 b41sh