-
Notifications
You must be signed in to change notification settings - Fork 27
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
How to insert a Map? #99
Comments
FWIW, inserting the value |
Haven't tried on I'd really love if the docs had examples of this, since it's not clear from the get go and I'm unsure if |
Disclaimer: i'm using duckdb-async but as that wraps this library it should apply to this one. I was about to open a new bug report for this but the issue here seems to reflect what i'm facing too.
^^ simplified the above for the examples sake.
Which makes no sense to me because my table definition is:
Based on the documentation i'd also say this would be completely contradicting what it says for array values. It explicitly states: Logically this should work but it doesn't.
And logically this should not work but does.
|
Yeah that's definitely the same experience I had when inserting objects. Regardless of how weird it is though, if it was at least documented, it wouldn't be such an issue. But the way it is, everyone that uses the library has to figure this out by themselves when they have to use structs/arrays. |
How do I insert an array of objects into a MAP type field ? Passing it as value does not work (it is serialized with
toString()
).I couldn't find anything in the documentation.
The text was updated successfully, but these errors were encountered: