matrixorigin / matrixone

Hyperconverged cloud-edge native database
https://docs.matrixorigin.cn/en
Apache License 2.0
1.76k stars 274 forks source link

[Feature Request]: 希望将所有增加了标记头注释为cloud_nonuser的SQL的预编译语句&执行语句&释放语句都标记为cloud_nonuser_sql类型 #17491

Open xiaoshuwei opened 2 months ago

xiaoshuwei commented 2 months ago

Is there an existing issue for the same feature request?

Is your feature request related to a problem?

目前对于云平台本身的预编译语句,只有prepare语句被标记为cloud_nonuser_sql类型,execute和deallocate均未被标记。
这样用户会看到很多云平台本身执行的预编译SQL的执行和释放语句。

Describe the feature you'd like

需要内核根据SQL语句本身是否标记了对应Comments,将后续的execute和deallocate语句均标记为云平台非用户的SQL类型。

Describe implementation you've considered

No response

Documentation, Adoption, Use Case, Migration Strategy

No response

Additional information

云平台Issue:

daviszhen commented 2 months ago

@CJKkkk-315 CJK 后面会做掉

CJKkkk-315 commented 2 months ago

https://github.com/matrixorigin/matrixone/pull/17525 已merge到main上实现这个功能,现在prepare语句中的cloud_nonuser_sql type会继承给后续的execute等语句

CJKkkk-315 commented 1 month ago

@xiaoshuwei 麻烦有时间的时候看看是不是达到了效果