Skip to content

Comments

[Fix-17971] Fix ProcedureTask can not pass out parameter and can not execute query procedure.#17973

Open
ruanwenjun wants to merge 1 commit intoapache:devfrom
ruanwenjun:dev_wenjun_fix17971
Open

[Fix-17971] Fix ProcedureTask can not pass out parameter and can not execute query procedure.#17973
ruanwenjun wants to merge 1 commit intoapache:devfrom
ruanwenjun:dev_wenjun_fix17971

Conversation

@ruanwenjun
Copy link
Member

@ruanwenjun ruanwenjun commented Feb 13, 2026

Purpose of the pull request

close #17971
close #17972

Brief change log

  1. Optimize ProcedureParameters, remove get/set/toString method, use lombok @Data.
  2. Remove getResourceFilesList method, since this doesn't change the parent implementation.
  3. Remove outProperty since this doesn't help.
  4. After ProcedureTask successed, merge the varpool with local param.
  5. Make out parameter defined at task local param can pass to worker.

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)

Pull Request Notice

Pull Request Notice

If your pull request contains incompatible change, you should also add it to docs/docs/en/guide/upgrade/incompatible.md

@ruanwenjun
Copy link
Member Author

ruanwenjun commented Feb 13, 2026

@njnu-seafish @Mrhs121 Please take a look.

@ruanwenjun ruanwenjun added this to the 3.4.1 milestone Feb 13, 2026
@ruanwenjun ruanwenjun added bug Something isn't working priority:middle labels Feb 13, 2026
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_fix17971 branch 3 times, most recently from 8bee98f to b5d9736 Compare February 13, 2026 08:57
@ruanwenjun ruanwenjun changed the title [Fix-17971] Fix local parameter defined in ProcedureTask not being passed correctly [Fix-17971] Fix ProcedureTask can not passed out parameter and can not execute query procedure. Feb 13, 2026
@ruanwenjun ruanwenjun changed the title [Fix-17971] Fix ProcedureTask can not passed out parameter and can not execute query procedure. [Fix-17971] Fix ProcedureTask can not pass out parameter and can not execute query procedure. Feb 13, 2026
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_fix17971 branch 2 times, most recently from ce62e7e to be879ea Compare February 13, 2026 09:07
@github-actions github-actions bot added the test label Feb 13, 2026
Map<String, Property> prepareParams) throws Exception {
Map<Integer, Property> outParameterMap = new HashMap<>();
if (procedureParameters.getLocalParametersMap() == null) {
if (MapUtils.isEmpty(sqlParams)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#17971 @honkerjha The key fix to solve this issue

@Mrhs121
Copy link
Contributor

Mrhs121 commented Feb 15, 2026

LGTM

1 similar comment
@njnu-seafish
Copy link
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

3 participants