The reason for the error: obviously the query timed out
Solution
1. Check in doris that the default timeout is 300 seconds.
mysql> SHOW VARIABLES LIKE "%query_timeout%";
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| QUERY_TIMEOUT | 300 |
+---------------+-------+
1 row in set (0.00 sec)
2. Modify the timeout to 1 minute:
(1) Only for modification of this query timeout
mysql> SET query_timeout = 60;
Query OK, 0 rows affected (0.00 sec)
(2) Modification of global timeout
mysql> SET global query_timeout = 60;
Query OK, 0 rows affected (0.00 sec)