when use list as out property in sql tasks, if sql result has only one row, still wrap result in a list
Purpose of the pull request
when use list as out property in sql tasks, if sql result has only one row, there will be an exception. In this PR, when use list as out property in sql tasks, if sql result has only one row, this result will be wrapped in a list; if sql result has no row, use property value as default and wrap it in a list (if property value exists) .
Brief change log
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md
Please change your target branch to
devand link this PR to your issue.
I haven't created an issue for this PR. Is it required?
Please rebase latest dev.
Codecov Report
Attention: Patch coverage is 36.40000% with 318 lines in your changes are missing coverage. Please review.
Project coverage is 38.49%. Comparing base (
3640a28) to head (2c65c17). Report is 141 commits behind head on dev.
:exclamation: Current head 2c65c17 differs from pull request most recent head 9ee0b1e. Consider uploading reports for the commit 9ee0b1e to get more accurate results
Additional details and impacted files
@@ Coverage Diff @@
## dev #15972 +/- ##
============================================
+ Coverage 38.15% 38.49% +0.33%
- Complexity 4707 4752 +45
============================================
Files 1304 1301 -3
Lines 44828 44781 -47
Branches 4807 4809 +2
============================================
+ Hits 17105 17237 +132
+ Misses 25870 25663 -207
- Partials 1853 1881 +28
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Please retry analysis of this Pull-Request directly on SonarCloud
There seems to be some conflict, please pull the upstream dev code.