Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] PLJava regress test failed. #648

Open
1 of 2 tasks
wenchaozhang-123 opened this issue Sep 29, 2024 · 3 comments
Open
1 of 2 tasks

[Bug] PLJava regress test failed. #648

wenchaozhang-123 opened this issue Sep 29, 2024 · 3 comments
Labels
type: Bug Something isn't working

Comments

@wenchaozhang-123
Copy link
Contributor

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

@wenchaozhang-123 wenchaozhang-123 added the type: Bug Something isn't working label Sep 29, 2024
Copy link

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

@tuhaihe
Copy link
Member

tuhaihe commented Sep 29, 2024

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

@my-ship-it
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants