Replies: 5 comments 9 replies
-
I can't open the link but the idea sounds great! DuckDB and Julia are a great combo for DS. |
Beta Was this translation helpful? Give feedback.
-
@tqml Sorry I'm just seeing this. I just put in the following pr and it was merged. That being said your interface is much smoother .. I way prefer it. Is it possible for you to still add it ? We could possible figure out how to do aggregate functions too |
Beta Was this translation helpful? Give feedback.
-
A quick syntax comment, it seems to me that fun = @create_scalar_function "my_sum" [Int64, Int64] Int64 my_sum Could be alternatively expressed as fun = @create_scalar_function mysum(::Int64, ::Int64)::Int64 as "my_sum" which reads a bit better to me. |
Beta Was this translation helpful? Give feedback.
-
This feature with the proposed interface was merged in PR #15430 :) |
Beta Was this translation helpful? Give feedback.
-
Hey!
I think this feature is pretty cool (as DuckDB in general) and since I have some extra time in the next two months I would like to help out with the Julia implementation of this feature.
I envision the Julia API to look like the following:
I created a first example here scalar_function.jl. It is based on the existing implementation of table functions with the addition to have a macro that can implement a specialized wrapper function the correct data types. The implementation requires the most recent build of duckdb (#4874 (comment)) but seems to work so far.
Let me know what you think!
Beta Was this translation helpful? Give feedback.
All reactions