cloudberry icon indicating copy to clipboard operation
cloudberry copied to clipboard

[Bug] PLJava regress test failed.

Open zhangwenchao-123 opened this issue 1 year ago • 5 comments

Cloudberry Database version

No response

What happened

When we run pljava regress test will fail

What you think should happen instead

No response

How to reproduce

SELECT javatest.transferPeople(1) FROM javatest.test; -- should error -ERROR: query plan with multiple segworker groups is not supported -HINT: likely caused by a function that reads or modifies data in a distributed table +ERROR: function cannot execute on a QE slice because it accesses relation "javatest.employees1" +CONTEXT: SQL statement "SELECT id, name, salary FROM employees1 WHERE salary > $1"

Operating System

centos7

Anything else

No response

Are you willing to submit PR?

  • [ ] Yes, I am willing to submit a PR!

Code of Conduct

zhangwenchao-123 avatar Sep 29 '24 06:09 zhangwenchao-123

Hey, @wenchaozhang-123 welcome!🎊 Thanks for taking the time to point this out.🙌

github-actions[bot] avatar Sep 29 '24 06:09 github-actions[bot]

Does creating one issue on @cloudberrydb/pljava repo make sense?

tuhaihe avatar Sep 29 '24 06:09 tuhaihe

After discussion, the root cause is there is a plan diff for postgres planner and ORCA, so it's database kernel bug.

For postgres planner, javatest.transferPeople is executed at QD after gather, but for ORCA, javatest.transferPeople is executed on QE.

If add execute on master when creating function javatest.transferPeople, another error occurred.

my-ship-it avatar Sep 29 '24 06:09 my-ship-it

I am interested in this project and would like to be assigned this task. @my-ship-it

Haibarapink avatar Aug 06 '25 07:08 Haibarapink

Hi @Haibarapink, thanks for your interest. Welcome to work on it! Already assigned this issue to you.

tuhaihe avatar Aug 08 '25 04:08 tuhaihe