-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
No support for std(all a), variance(all a), bit_or(all a), bit_and(all a) #4060
Labels
duplicate
Issues or pull requests already exists.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
type/compatibility
Comments
jackysp
added
type/compatibility
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
rc3.1
labels
Aug 7, 2017
The same as |
I can still reproduce an issue in the latest version. But instead of a parse error, there is a panic:
|
I can reproduce this now, but only for Here is a testcase against master: create table t1 (grp int, a bigint unsigned, c char(10) not null);
insert into t1 values (1,1,"a");
insert into t1 values (2,2,"b");
insert into t1 values (2,3,"c");
select sum(all a),count(all a),avg(all a),variance(all a),bit_or(all a),bit_and(all a),min(all a),max(all a),min(all c),max(all c) from t1;
select std(all a) from t1;
..
mysql> select sum(all a),count(all a),avg(all a),variance(all a),bit_or(all a),bit_and(all a),min(all a),max(all a),min(all c),max(all c) from t1;
+------------+--------------+------------+--------------------+---------------+----------------+------------+------------+------------+------------+
| sum(all a) | count(all a) | avg(all a) | variance(all a) | bit_or(all a) | bit_and(all a) | min(all a) | max(all a) | min(all c) | max(all c) |
+------------+--------------+------------+--------------------+---------------+----------------+------------+------------+------------+------------+
| 24 | 12 | 2.0000 | 0.6666666666666666 | 3 | 0 | 1 | 3 | a | c |
+------------+--------------+------------+--------------------+---------------+----------------+------------+------------+------------+------------+
1 row in set (0.00 sec)
mysql> select std(all a) from t1;
ERROR 1105 (HY000): unsupported agg function: std
mysql> SELECT tidb_version()\G
*************************** 1. row ***************************
tidb_version(): Release Version: v4.0.0-beta.2-859-gccfc9b2ad
Edition: Community
Git Commit Hash: ccfc9b2ad0dcf8e447210de5f559d7fc208db968
Git Branch: master
UTC Build Time: 2020-07-29 09:37:45
GoVersion: go1.13
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
1 row in set (0.00 sec)
|
ghost
closed this as completed
Jul 30, 2020
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
duplicate
Issues or pull requests already exists.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
type/compatibility
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
tidb-server -V
)?The text was updated successfully, but these errors were encountered: