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

Add fallback mechanism to convert unsupported PG types as arrow text array #23

Closed
wants to merge 1 commit into from

Conversation

aykut-bozkurt
Copy link
Collaborator

No description provided.

unsafe {
FALLBACK_TO_TEXT_CONTEXT
.set(FallbackToTextContext::new(typoid, typmod))
.expect("failed to reset fallback_to_text context")
Copy link
Collaborator

Choose a reason for hiding this comment

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

what happens if we have multiple types that fall back to text?

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 reset this for each type conversion. (not once per copy)

Copy link
Collaborator

Choose a reason for hiding this comment

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

hmz, ok, would be good to have more comments on the lifecycles of these contexts

@aykut-bozkurt
Copy link
Collaborator Author

Addressed at development branch.

@aykut-bozkurt aykut-bozkurt deleted the fallback-type branch October 17, 2024 13:02
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