-
Notifications
You must be signed in to change notification settings - Fork 18
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
Window/Aggregate function implementation -- please review #14
base: main
Are you sure you want to change the base?
Window/Aggregate function implementation -- please review #14
Conversation
1. double free issue in test_sum_int.rs 2. can't load the plugin: Error: dlsym(0x808c4010, sqlite3_sumint_init): symbol not found
I'm not 100% sure, but
On this line, change sqlite-loadable-rs/examples/sum_int.rs Line 42 in f0eca51
Also, sorry if this was your first foray into Rust - this codebase isn't that great, and Rust <-> C FFI is never fun! On the other hand, this might inspire me to get proper aggregate/window support is this project... |
2. sqlite3, has a naming convention: sqlite3_xxx_init, where xxx cannot contain underscores although the function itself may contain an underscore in sqlite3 itself
Hi, This is ready for review. I checked with valgrind, the new sumint example has no detectable leaks. |
9de6f9a
to
f272ccd
Compare
…algrind aux implementation might not be necessary, due to aggregate context
So, I took one of sqlite3's sumint example to develop the window function, because I'm planning on using this codebase to develop other interesting window functions.
I'm not so super experienced with rust yet, so I would appreciate if you could give me some pointers.
I have two issues:
double free issue in test_sum_int.rs, I suspect my 'get_aggregate_context_value' somehow took ownership.