databend
databend copied to clipboard
bug: Insert query with agg function return err
Search before asking
- [X] I had searched in the issues and found no similar issues.
Version
main
What's Wrong?
Err with BadArguments
How to Reproduce?
MySQL [(none)]> insert INTO t1 VALUES(max(1));
ERROR 1105 (HY000): PanicError. Code: 1104, Text = called `Result::unwrap()` on an `Err` value: BadArguments. Code: 1006, Text = Unable to get field named "18446744073709551615". Valid fields: ["id"].
0: databend_common_exception::exception_backtrace::capture
at src/common/exception/src/exception_backtrace.rs:72:17
1: databend_common_exception::exception_code::<impl databend_common_exception::exception::ErrorCode>::BadArguments
at src/common/exception/src/exception_code.rs:35:30
2: databend
Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!