You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
starrocks> select * from t;
+------+------+
| a | b |
+------+------+
| 4 | 4 |
| 5 | 1 |
| 1 | 1 |
| 3 | 3 |
| 2 | 2 |
+------+------+
5 rows in set (0.02 sec)
Real behavior (Required)
Setting sql_mode should make this SQL execute successfully, but it does not
starrocks> SELECT DISTINCT a from t order by b;
ERROR 1064 (HY000): Getting analyzing error at line 1, column 34. Detail message: '`test`.`t`.`b`' must be an aggregate expression or appear in GROUP BY clause.
starrocks>
starrocks> set sql_mode = 0;
Query OK, 0 rows affected (0.00 sec)
starrocks>
starrocks> SELECT DISTINCT a from t order by b;
ERROR 1064 (HY000): only found column statistics: {3: any_value}, but missing statistic of col: 1: a.
StarRocks version (Required)
3.1.10
The text was updated successfully, but these errors were encountered:
Steps to reproduce the behavior (Required)
Real behavior (Required)
Setting sql_mode should make this SQL execute successfully, but it does not
StarRocks version (Required)
3.1.10
The text was updated successfully, but these errors were encountered: