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
WIP: supports distributed acceleration of COPY [skip ci] #282
base: POLARDB_11_DEV
Are you sure you want to change the base?
Conversation
… invalid option error
Hi @Weijun-H ~ Congratulations to your first PR to PolarDB. 🎉 Please make sure that your PR conforms the standard, and has passed all the checks. We will review your PR as soon as possible. |
Hey @Weijun-H : Your checks have been cancelled ⛔️. Please re-run the checks if you want to merge this PR. |
Hey @Weijun-H : Something wrong occuried during the checks of your commit 😟, please check the detail:
|
Hey @Weijun-H : Congratulations~ 🎉 Your commit has passed all the checks. Please wait for further manual review. |
Hey @Weijun-H : Something wrong occuried during the checks of your commit 😟, please check the detail:
|
but the server closed the connection unexpectedly
增加 Copy 的回归 Case |
@Weijun-H Please add some regression test case, and undraft this MR, so that our CI can run all the cases. |
|
@Weijun-H Any update about this PR? |
@mrdrivingduck I apologize for the delay in my response. I understand that there is currently a bug with the |
That's ok. Please let us know if you need some help. |
@Weijun-H Any updates in this thread? |
Sorry for this late response. I just picked this up recently. |
Glad to here that. Your dev branch is behind |
7c700a2
to
261b48c
Compare
Would it be possible to compile the project in parallel? I've noticed that it's compiling very slowly on my machine. |
Use ./rds_build.sh --initpx command to complier in parallel. |
Or you can use after you rds_build.sh --initpx is done |
I did not find |
polardb_build.sh |
@Weijun-H Once your database is initialized, if you want to modify some code without initializing database again, you can directly |
server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request.
@@ -3234,7 +3296,7 @@ if (cstate->dispatch_mode == COPY_DISPATCH) | |||
|
|||
pxCopyEnd(pxCopy, NULL, NULL); | |||
|
|||
PxDispatchCopyEnd(pxCopy); | |||
// PxDispatchCopyEnd(pxCopy); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for the delay in progress. I've been working on resolving the bug in my spare time, but unfortunately, I'm stuck and unsure of how to proceed. Could anyone lend me a hand and provide me with some hints or guidance?
When I tested the COPY TO
, I met the following error because of a comment,
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
But no idea how to modify PxDispatchCopyEnd
to fit PolarDB
architecture.
Thank you in advance. 🙇♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any *.core
files in ~/tmp_master_xxx
directory? If so, use gdb --core
to see the call stack when the error happens.
What?
This pr is for #246
This feature will assist PolarDB for PostgreSQL in implementing distributed acceleration of COPY so that PolarDB PG can significantly improve performance when executing COPY statements in the case of large data volumes and fully utilise the HTAP framework.
The implementation includes
COPY ... TO ...
statement, multiple machines should be read in parallel for the read operation,COPY ... FROM ...
statement should be written by multiple processes on a single read/write node.How?
set polar_px_enable_copy=on
Copy query to File
, make query use the PX optimizerCopy ... To ...
Copy ... From ...
Benchmark
Copy query to File
Copy ... To ...
Screenshots (optional)