[Bug] PLJava regress test failed.
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
- [X] I agree to follow this project's Code of Conduct.
Hey, @wenchaozhang-123 welcome!🎊 Thanks for taking the time to point this out.🙌
Does creating one issue on @cloudberrydb/pljava repo make sense?
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.
I am interested in this project and would like to be assigned this task. @my-ship-it
Hi @Haibarapink, thanks for your interest. Welcome to work on it! Already assigned this issue to you.