Window/Aggregate function implementation -- please review#14
Window/Aggregate function implementation -- please review#14Buggaboo wants to merge 14 commits intoasg017:mainfrom
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.