dh-cloud opened a new issue, #53354: URL: https://github.com/apache/doris/issues/53354
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues. ### Version 2.0.10 ### What's Wrong? `sql_select_limit` for `INSERT..SELECT`/`CREATE TABLE AS SELECT` behaves different on master/non-master fe. On master fe, `sql_select_limit` can affect the number of inserted rows. On non-master fe, `sql_select_limit` does not affect the number of inserted rows. ### What You Expected? No matter master fe or non-masterfe, `sql_select_limit` should have the same effect for `INSERT..SELECT`/`CREATE TABLE AS SELECT`. ### How to Reproduce? run SQLs: ```sql create table test(id int); insert into test values(1),(2),(3),(4),(5),(6); create table test_new(id int); set sql_select_limit=1; insert into test_new select * from test; ``` On master: ```sql mysql> set sql_select_limit=1; Query OK, 0 rows affected (0.00 sec) mysql> insert into test_new select * from test; Query OK, 1 row affected (0.59 sec) {'label':'label_fdfe0bf2ed284b79_95d186162027f898', 'status':'VISIBLE', 'txnId':'46'} ``` On non-master fe: ```sql mysql> set sql_select_limit=1; Query OK, 0 rows affected (0.00 sec) mysql> insert into test_new select * from test; Query OK, 6 rows affected (0.67 sec) {'label':'label_58eb29f33a52411a_a1a2654648bffbe3', 'status':'VISIBLE', 'txnId':'38'} ``` ### Anything Else? _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
