You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by "funky-eyes (via GitHub)" <gi...@apache.org> on 2026/05/12 01:51:13 UTC
[PR] feature: AST caching for identical SQL [incubator-seata]
funky-eyes opened a new pull request, #8098:
URL: https://github.com/apache/incubator-seata/pull/8098
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Please make sure you have read and understood the contributing guidelines -->
- [ ] I have read the [CONTRIBUTING.md](https://github.com/apache/incubator-seata/blob/2.x/CONTRIBUTING.md) guidelines.
- [ ] I have registered the PR [changes](https://github.com/apache/incubator-seata/tree/2.x/changes).
### Ⅰ. Describe what this PR did
### Ⅱ. Does this pull request fix one issue?
<!-- If that, add "fixes #xxx" below in the next line, for example, fixes #97. -->
### Ⅲ. Why don't you add test cases (unit test/integration test)?
### Ⅳ. Describe how to verify it
### Ⅴ. Special notes for reviews
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [PR] feature: druid AST caching for identical SQL [incubator-seata]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #8098:
URL: https://github.com/apache/incubator-seata/pull/8098#issuecomment-4426886446
## [Codecov](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:x: Patch coverage is `75.90361%` with `20 lines` in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 72.10%. Comparing base ([`5937571`](https://app.codecov.io/gh/apache/incubator-seata/commit/5937571d6c073d929862a75c3f51ff29f004221e?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`05da18b`](https://app.codecov.io/gh/apache/incubator-seata/commit/05da18b0065bbfa940c96478fe44643ce8fdc999?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
| [Files with missing lines](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
|---|---|---|
| [...sqlparser/druid/DruidSQLRecognizerFactoryImpl.java](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&filepath=sqlparser%2Fseata-sqlparser-druid%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fseata%2Fsqlparser%2Fdruid%2FDruidSQLRecognizerFactoryImpl.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3FscGFyc2VyL3NlYXRhLXNxbHBhcnNlci1kcnVpZC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VhdGEvc3FscGFyc2VyL2RydWlkL0RydWlkU1FMUmVjb2duaXplckZhY3RvcnlJbXBsLmphdmE=) | 80.95% | [3 Missing and 9 partials :warning: ](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [...ache/seata/rm/datasource/exec/ExecuteTemplate.java](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&filepath=rm-datasource%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fseata%2Frm%2Fdatasource%2Fexec%2FExecuteTemplate.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-cm0tZGF0YXNvdXJjZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VhdGEvcm0vZGF0YXNvdXJjZS9leGVjL0V4ZWN1dGVUZW1wbGF0ZS5qYXZh) | 0.00% | [2 Missing :warning: ](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [...g/apache/seata/sqlparser/SQLRecognizerFactory.java](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&filepath=sqlparser%2Fseata-sqlparser-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fseata%2Fsqlparser%2FSQLRecognizerFactory.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3FscGFyc2VyL3NlYXRhLXNxbHBhcnNlci1jb3JlL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9zZWF0YS9zcWxwYXJzZXIvU1FMUmVjb2duaXplckZhY3RvcnkuamF2YQ==) | 0.00% | [2 Missing :warning: ](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [...ser/druid/DruidDelegatingSQLRecognizerFactory.java](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&filepath=sqlparser%2Fseata-sqlparser-druid%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fseata%2Fsqlparser%2Fdruid%2FDruidDelegatingSQLRecognizerFactory.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3FscGFyc2VyL3NlYXRhLXNxbHBhcnNlci1kcnVpZC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VhdGEvc3FscGFyc2VyL2RydWlkL0RydWlkRGVsZWdhdGluZ1NRTFJlY29nbml6ZXJGYWN0b3J5LmphdmE=) | 0.00% | [2 Missing :warning: ](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [...e/seata/rm/datasource/AbstractConnectionProxy.java](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&filepath=rm-datasource%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fseata%2Frm%2Fdatasource%2FAbstractConnectionProxy.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-cm0tZGF0YXNvdXJjZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VhdGEvcm0vZGF0YXNvdXJjZS9BYnN0cmFjdENvbm5lY3Rpb25Qcm94eS5qYXZh) | 0.00% | [1 Missing :warning: ](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [...che/seata/rm/datasource/sql/SQLVisitorFactory.java](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&filepath=rm-datasource%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fseata%2Frm%2Fdatasource%2Fsql%2FSQLVisitorFactory.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-cm0tZGF0YXNvdXJjZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VhdGEvcm0vZGF0YXNvdXJjZS9zcWwvU1FMVmlzaXRvckZhY3RvcnkuamF2YQ==) | 80.00% | [1 Missing :warning: ](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## 2.x #8098 +/- ##
============================================
+ Coverage 72.08% 72.10% +0.02%
Complexity 916 916
============================================
Files 1325 1326 +1
Lines 50826 50895 +69
Branches 6085 6096 +11
============================================
+ Hits 36638 36699 +61
- Misses 11158 11159 +1
- Partials 3030 3037 +7
```
| [Files with missing lines](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [...ava/org/apache/seata/common/ConfigurationKeys.java](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&filepath=common%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fseata%2Fcommon%2FConfigurationKeys.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-Y29tbW9uL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9zZWF0YS9jb21tb24vQ29uZmlndXJhdGlvbktleXMuamF2YQ==) | `0.00% <ø> (ø)` | |
| [...in/java/org/apache/seata/common/DefaultValues.java](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&filepath=common%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fseata%2Fcommon%2FDefaultValues.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-Y29tbW9uL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9zZWF0YS9jb21tb24vRGVmYXVsdFZhbHVlcy5qYXZh) | `100.00% <ø> (ø)` | |
| [.../autoconfigure/properties/client/RmProperties.java](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&filepath=seata-spring-autoconfigure%2Fseata-spring-autoconfigure-client%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fseata%2Fspring%2Fboot%2Fautoconfigure%2Fproperties%2Fclient%2FRmProperties.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c2VhdGEtc3ByaW5nLWF1dG9jb25maWd1cmUvc2VhdGEtc3ByaW5nLWF1dG9jb25maWd1cmUtY2xpZW50L3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9zZWF0YS9zcHJpbmcvYm9vdC9hdXRvY29uZmlndXJlL3Byb3BlcnRpZXMvY2xpZW50L1JtUHJvcGVydGllcy5qYXZh) | `100.00% <100.00%> (ø)` | |
| [...e/seata/rm/datasource/AbstractConnectionProxy.java](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&filepath=rm-datasource%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fseata%2Frm%2Fdatasource%2FAbstractConnectionProxy.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-cm0tZGF0YXNvdXJjZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VhdGEvcm0vZGF0YXNvdXJjZS9BYnN0cmFjdENvbm5lY3Rpb25Qcm94eS5qYXZh) | `16.32% <0.00%> (ø)` | |
| [...che/seata/rm/datasource/sql/SQLVisitorFactory.java](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&filepath=rm-datasource%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fseata%2Frm%2Fdatasource%2Fsql%2FSQLVisitorFactory.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-cm0tZGF0YXNvdXJjZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VhdGEvcm0vZGF0YXNvdXJjZS9zcWwvU1FMVmlzaXRvckZhY3RvcnkuamF2YQ==) | `81.81% <80.00%> (-1.52%)` | :arrow_down: |
| [...ache/seata/rm/datasource/exec/ExecuteTemplate.java](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&filepath=rm-datasource%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fseata%2Frm%2Fdatasource%2Fexec%2FExecuteTemplate.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-cm0tZGF0YXNvdXJjZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VhdGEvcm0vZGF0YXNvdXJjZS9leGVjL0V4ZWN1dGVUZW1wbGF0ZS5qYXZh) | `3.57% <0.00%> (-0.07%)` | :arrow_down: |
| [...g/apache/seata/sqlparser/SQLRecognizerFactory.java](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&filepath=sqlparser%2Fseata-sqlparser-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fseata%2Fsqlparser%2FSQLRecognizerFactory.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3FscGFyc2VyL3NlYXRhLXNxbHBhcnNlci1jb3JlL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9zZWF0YS9zcWxwYXJzZXIvU1FMUmVjb2duaXplckZhY3RvcnkuamF2YQ==) | `0.00% <0.00%> (ø)` | |
| [...ser/druid/DruidDelegatingSQLRecognizerFactory.java](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&filepath=sqlparser%2Fseata-sqlparser-druid%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fseata%2Fsqlparser%2Fdruid%2FDruidDelegatingSQLRecognizerFactory.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3FscGFyc2VyL3NlYXRhLXNxbHBhcnNlci1kcnVpZC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VhdGEvc3FscGFyc2VyL2RydWlkL0RydWlkRGVsZWdhdGluZ1NRTFJlY29nbml6ZXJGYWN0b3J5LmphdmE=) | `75.00% <0.00%> (-10.72%)` | :arrow_down: |
| [...sqlparser/druid/DruidSQLRecognizerFactoryImpl.java](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&filepath=sqlparser%2Fseata-sqlparser-druid%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fseata%2Fsqlparser%2Fdruid%2FDruidSQLRecognizerFactoryImpl.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3FscGFyc2VyL3NlYXRhLXNxbHBhcnNlci1kcnVpZC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VhdGEvc3FscGFyc2VyL2RydWlkL0RydWlkU1FMUmVjb2duaXplckZhY3RvcnlJbXBsLmphdmE=) | `81.05% <80.95%> (-0.77%)` | :arrow_down: |
... and [7 files with indirect coverage changes](https://app.codecov.io/gh/apache/incubator-seata/pull/8098/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
[](https://app.codecov.io/gh/apache/incubator-seata/pull/8098?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
</details>
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [PR] feature: druid AST caching for identical SQL [incubator-seata]
Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes closed pull request #8098: feature: druid AST caching for identical SQL
URL: https://github.com/apache/incubator-seata/pull/8098
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org