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

Replacement scan #208

Merged
merged 10 commits into from
Jun 10, 2024
Merged

Replacement scan #208

merged 10 commits into from
Jun 10, 2024

Conversation

ajzo90
Copy link
Contributor

@ajzo90 ajzo90 commented May 7, 2024

Simple implementation of replacement scan API in duckdb.

Registers a callback function that gets called when a query refer to a table that not exists in duckdb as per https://duckdb.org/docs/api/c/replacement_scans.

Currently limited to supporting int64 and string as table function arguments, but this seems like a limitation in duckdb C API.

@ajzo90 ajzo90 changed the title Initial commit for replacement scan Replacement scan May 7, 2024
Copy link
Collaborator

@taniabogatsch taniabogatsch left a comment

Choose a reason for hiding this comment

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

Hi @ajzo90, thanks for the PR! I've added a few comments and questions.

replacement_scan_test.go Outdated Show resolved Hide resolved
replacement_scan_test.go Outdated Show resolved Hide resolved
replacement_scan.go Outdated Show resolved Hide resolved
replacement_scan.go Outdated Show resolved Hide resolved
replacement_scan.go Outdated Show resolved Hide resolved
replacement_scan.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@taniabogatsch taniabogatsch left a comment

Choose a reason for hiding this comment

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

I had another look, and it looks almost ready to go in from my side. :) I've just added some remaining comments.

replacement_scan.go Outdated Show resolved Hide resolved
replacement_scan_test.go Outdated Show resolved Hide resolved
replacement_scan.go Outdated Show resolved Hide resolved
replacement_scan.go Outdated Show resolved Hide resolved
replacement_scan_test.go Show resolved Hide resolved
@taniabogatsch taniabogatsch added the feature / enhancement Code improvements or a new feature label Jun 6, 2024
@ajzo90 ajzo90 requested a review from taniabogatsch June 6, 2024 12:26
replacement_scan.go Outdated Show resolved Hide resolved
@marcboeker
Copy link
Owner

@ajzo90 Thanks for the contribution.
@taniabogatsch Thanks for the review.

@marcboeker marcboeker merged commit 9eca001 into marcboeker:main Jun 10, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature / enhancement Code improvements or a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants