-
Notifications
You must be signed in to change notification settings - Fork 17
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
Hugeint: SUM functions return tuples #31
Comments
It seems duckdb preemptively casts a which is represented as a tuple of signed and unsigned 64bit integers, {int64, uint64}. duckdbex/c_src/value_to_term.cpp Lines 95 to 102 in d6484a6
|
Neat! I think that workaround is good with me. Might be worth adding that as an example to the readme? Right now I'm just iterating over every cell and stripping the tuple. |
@AlexR2D2 I came across various issues in other language's libraries using duckdb, where people are confused and surprised by this behaviour. Since Erlang natively support arbitrary size integers, would you consider automatically converting these for the user? I understand that you would want to maintain feature parity but maybe it can live behind a config flag and function opts. |
Thanks for the library! I'm seeing odd behaviour when using SUM functions, tuples are returned. They always seem to start with
0
as well.This doesn't happen with MAX:
The text was updated successfully, but these errors were encountered: