-
Notifications
You must be signed in to change notification settings - Fork 0
FFI and Julia Bindings for incremental scan changes #6
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
Conversation
gbrgr
left a comment
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.
Thanks Vukasin, just posting a first round of comments
| } | ||
|
|
||
| // Use macros from scan_common for shared functionality | ||
| impl_select_columns!(iceberg_select_columns, IcebergScan); |
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.
In this case, I think it is fine to use macros. However, in general macros should also be sometimes avoided, so we could go instead with traits for the builder + scan, and a generic ScanBase<B: BuilderTrait, S: ScanTrait> variant, if we want to keep it more extensible.
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.
Ok, agree it's better not to rely on macros in future, thanks for pointing out.
Co-authored-by: Gerald Berger <59661379+gbrgr@users.noreply.github.com>
Co-authored-by: Gerald Berger <59661379+gbrgr@users.noreply.github.com>
Co-authored-by: Gerald Berger <59661379+gbrgr@users.noreply.github.com>
gbrgr
left a comment
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.
Thanks Vukasin
…alAI/RustyIceberg.jl into vs-incremental-ffi-and-bindings
FFI and Julia Bindings for incremental scan changes that were introduced with RelationalAI/iceberg-rust#3.
I refactored the file structures a bit, for both Rust and Julia code. Rust code reuses some common parts through macros, for Julia I didn't bother to do that (mostly afraid of macros and ccall interaction being a rabbit hole with little benefit).
Note that I had to use struct instead of const for
ScanRef, since now with additional type, we have method overloads, which if we useScanRefconst aliases actually use same type, and then become overwrites instead of overloads.There's also a new test data, and new test that exercises positional delete and inserts.