Skip to content

DuckDB: multi-row type inference & appender fixes#86

Merged
gitfvb merged 2 commits intomainfrom
dev
Mar 31, 2026
Merged

DuckDB: multi-row type inference & appender fixes#86
gitfvb merged 2 commits intomainfrom
dev

Conversation

@gitfvb
Copy link
Copy Markdown
Contributor

@gitfvb gitfvb commented Mar 31, 2026

Add multi-row type inference and robust appender casting for DuckDB. Introduces Get-DuckDBBestType to infer the widest SQL type from sample rows and updates Initialize-DuckDBTable, Sync-DuckDBSchema, and Invoke-BufferedWrite to use sampled rows (first up to 100) for column type detection. Fix Write-DuckDBAppender by reading declared column types from the schema and casting values appropriately to avoid DuckDB.NET byte-reinterpretation issues; also use AppendNullValue() to avoid overload resolution problems. Adds tests covering multi-row inference and numeric casting behavior, and bumps module version to 0.3.7.

Add multi-row type inference and robust appender casting for DuckDB. Introduces Get-DuckDBBestType to infer the widest SQL type from sample rows and updates Initialize-DuckDBTable, Sync-DuckDBSchema, and Invoke-BufferedWrite to use sampled rows (first up to 100) for column type detection. Fix Write-DuckDBAppender by reading declared column types from the schema and casting values appropriately to avoid DuckDB.NET byte-reinterpretation issues; also use AppendNullValue() to avoid overload resolution problems. Adds tests covering multi-row inference and numeric casting behavior, and bumps module version to 0.3.7.
@gitfvb gitfvb self-assigned this Mar 31, 2026
@gitfvb gitfvb merged commit f7a4c55 into main Mar 31, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant