morningman opened a new pull request, #26492:
URL: https://github.com/apache/doris/pull/26492

   ## Proposed changes
   
   Support a new stmt in Nereids:
   `CALL EXECUTE_STMT("ddl", "jdbc", "stmt")`
   
   So that we can pass the origin stmt directly to the datasource of a jdbc 
catalog.
   
   show case:
   ```
   mysql> select * from mysql_catalog.yy.tbl1;
   +------+------+
   | k1   | k2   |
   +------+------+
   |  111 | 222  |
   +------+------+
   1 row in set (0.63 sec)
   
   mysql> call execute_stmt("DDL", "mysql_catalog", "insert into yy.tbl1 
values(1,'abc')");
   Query OK, 0 rows affected (0.01 sec)
   
   mysql> select * from mysql_catalog.yy.tbl1;
   +------+------+
   | k1   | k2   |
   +------+------+
   |  111 | 222  |
   |    1 | abc  |
   +------+------+
   2 rows in set (0.03 sec)
   
   mysql> call execute_stmt("DDL", "mysql_catalog", "delete from yy.tbl1 where 
k1=111");
   Query OK, 0 rows affected (0.01 sec)
   
   mysql> select * from mysql_catalog.yy.tbl1;
   +------+------+
   | k1   | k2   |
   +------+------+
   |    1 | abc  |
   +------+------+
   1 row in set (0.03 sec)
   ```
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


-- 
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]

Reply via email to