Render LIST, ARRAY, STRUCT, and MAP columns as JSON strings instead of #VALUE!#32
Merged
RusselWebber merged 1 commit intoApr 23, 2026
Conversation
Contributor
Author
|
Hello! My apologies for this drive by and thank you for the incredible tool and work here! |
Owner
|
Hi, thanks very much for the PR! I like the idea, but was wondering if maybe it would be better to return array constants? https://support.microsoft.com/en-gb/office/use-array-constants-in-array-formulas-477443ea-5e71-4242-877d-fcae47454eb8 |
Contributor
Author
RusselWebber
approved these changes
Apr 23, 2026
Owner
RusselWebber
left a comment
There was a problem hiding this comment.
Nice work. Thank you for the PR!
Contributor
Author
|
Cheers! Thank you for all your work again! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





DuckDB.NET returns .NET collection objects (
List<T>,Dictionary<K,V>) for complex column typesExcel-DNA does not marshal these, producing
#VALUE!errorsThis change JSON-serializes collection-typed columns so they display as readable strings in Excel
Given
Before
#VALUE!#VALUE!#VALUE!{"meta": {"tags": ["sql", "duckdb"], "version": 1.2}}After
["apple","banana","cherry"]{"id":101,"status":"active","score":9.5}{"color":"red","shape":"circle","material":"wood"}{"meta": {"tags": ["sql", "duckdb"], "version": 1.2}}Changes
DuckDbHelper.cs— AddedjsonSerializeFieldflag forIList/IDictionarycolumn types, serialized viaJsonSerializer.Serialize(); null collections guard viaIsDBNull→#N/AUnitTestDuckDbQueries.cs— Added tests for LIST, STRUCT, MAP, and null collections (LIST)Assisted-by: Claude:claude-opus-4-6 [dotnet-test]