You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "JackieTien97 (via GitHub)" <gi...@apache.org> on 2026/02/04 03:55:27 UTC
[PR] Fix set sql_dialect=table will clear current database bug [iotdb]
JackieTien97 opened a new pull request, #17159:
URL: https://github.com/apache/iotdb/pull/17159
This pull request introduces improvements to test utilities and refines SQL dialect handling to enhance reliability and maintainability. The main changes include extracting a reusable table result set comparison method, updating integration tests to use this utility, and optimizing dialect switching logic in the client session.
**Test utility improvements:**
* Extracted the core table result set comparison logic into a new reusable method `tableResultSetEqual`, simplifying `tableResultSetEqualTest` and improving code reuse in test assertions (`TestUtils.java`). [[1]](diffhunk://#diff-6efe0dd713ce5be5c7ea86f8694ea498481530afe2fa3aa2fcdcbbf3642013b3R290-R304) [[2]](diffhunk://#diff-6efe0dd713ce5be5c7ea86f8694ea498481530afe2fa3aa2fcdcbbf3642013b3L309-L314)
* Updated imports and usages in `IoTDBFillTableIT.java` to utilize the new `tableResultSetEqual` method, streamlining test code and reducing duplication. [[1]](diffhunk://#diff-1cad616625eaf99043e7ab0c7aacd265bc92f7da729a3f0e422345d70e791b44R26) [[2]](diffhunk://#diff-1cad616625eaf99043e7ab0c7aacd265bc92f7da729a3f0e422345d70e791b44R35-R44)
* Refactored the `normalFillTest` method in `IoTDBFillTableIT.java` to use the new utility for direct result set validation, improving clarity and error handling.
**SQL dialect handling:**
* Optimized the `setSqlDialectAndClean` method in `IClientSession.java` to avoid unnecessary operations when the dialect is unchanged, preventing redundant resets and potential side effects.
--
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix set sql_dialect=table will clear current database bug [iotdb]
Posted by "JackieTien97 (via GitHub)" <gi...@apache.org>.
JackieTien97 merged PR #17159:
URL: https://github.com/apache/iotdb/pull/17159
--
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix set sql_dialect=table will clear current database bug [iotdb]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #17159:
URL: https://github.com/apache/iotdb/pull/17159#issuecomment-3845283059
## [Codecov](https://app.codecov.io/gh/apache/iotdb/pull/17159?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 `0%` with `2 lines` in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 39.48%. Comparing base ([`52d7245`](https://app.codecov.io/gh/apache/iotdb/commit/52d7245a2b849c80bb424bb8fc6b67ad3ced2311?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`e9c1687`](https://app.codecov.io/gh/apache/iotdb/commit/e9c1687ee63e7dde852ff6f3d3bc4273d5b8adf0?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 1 commits behind head on master.
| [Files with missing lines](https://app.codecov.io/gh/apache/iotdb/pull/17159?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
|---|---|---|
| [...ache/iotdb/db/protocol/session/IClientSession.java](https://app.codecov.io/gh/apache/iotdb/pull/17159?src=pr&el=tree&filepath=iotdb-core%2Fdatanode%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fiotdb%2Fdb%2Fprotocol%2Fsession%2FIClientSession.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-aW90ZGItY29yZS9kYXRhbm9kZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvaW90ZGIvZGIvcHJvdG9jb2wvc2Vzc2lvbi9JQ2xpZW50U2Vzc2lvbi5qYXZh) | 0.00% | [2 Missing :warning: ](https://app.codecov.io/gh/apache/iotdb/pull/17159?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 @@
## master #17159 +/- ##
=========================================
Coverage 39.48% 39.48%
Complexity 282 282
=========================================
Files 5098 5098
Lines 341307 341309 +2
Branches 43480 43480
=========================================
+ Hits 134758 134767 +9
+ Misses 206549 206542 -7
```
</details>
[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/iotdb/pull/17159?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<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.
</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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix set sql_dialect=table will clear current database bug [iotdb]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #17159:
URL: https://github.com/apache/iotdb/pull/17159#issuecomment-3845119803
## [](https://sonarcloud.io/dashboard?id=apache_iotdb&pullRequest=17159) **Quality Gate failed**
Failed conditions
 [5.5% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_iotdb&pullRequest=17159&metric=new_duplicated_lines_density&view=list) (required ≤ 5%)
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_iotdb&pullRequest=17159)
--
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org