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

Registers COPY TO/FROM parquet hooks #32

Closed
wants to merge 1 commit into from

Conversation

aykut-bozkurt
Copy link
Collaborator

  • Registers COPY TO/FROM parquet hooks,
  • Adds a GUC, named "pg_parquet.enable_copy_hooks", which enables/disabled the hook,
  • Exposes parquet dest receiver api so that the dest receiver could be used independently from the hook.

.catch_others(|cause| {
// make sure to pop the parquet reader context
let throw_error = false;
pop_parquet_reader_context(throw_error);
Copy link
Collaborator

Choose a reason for hiding this comment

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

since we don't push it above, can we be sure that it was actually pushed before we get here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we pass let throw_error = false; in case it is not pushed yet. This will prevent throwing error. (will print debug message)

Copy link
Collaborator

Choose a reason for hiding this comment

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

ok, could use a comment. Ideally we pop where we push, such that we always maintain the stack correctly. Though since the stack covers a niche use case, it's probably ok to hand wave a little as long as it's somewhat documented.

- registers COPY TO/FROM parquet hook,
- adds a GUC, named "pg_parquet.enable_copy_hooks", which enables/disabled the hook,
- exposes parquet dest receiver api so that the dest receiver could be used independently from the hook.
@aykut-bozkurt
Copy link
Collaborator Author

Addressed at development branch.

@aykut-bozkurt aykut-bozkurt deleted the copy-hooks branch October 17, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants