ammachado opened a new pull request, #31203: URL: https://github.com/apache/camel/pull/31203
JIRA: https://issues.apache.org/jira/browse/CAMEL-27950 ## Changes - `resultFormat=JSON` failed with `IllegalArgumentException` on date, timestamp and uuid columns. Now temporal values (ISO text) and UUID are strings, SQL arrays are JSON arrays and structs are JSON objects. The default `LIST_MAP` result is unchanged. - `insert` of a list of maps took the columns from the first row only. Now every element must be a `Map`, and a row whose keys differ from the first row fails with a `DuckDbException` that names the row. - An unknown `CamelDuckDbOperation` header fails with the list of valid operations instead of the raw "No enum constant". - `databasePath` has `defaultValue = ":memory:"` in the metadata. - `format=auto` also infers `.csv.gz` (csv) and `.json.gz`, `.jsonl`, `.jsonl.gz`, `.ndjson`, `.ndjson.gz` (json). Checked with the DuckDB CLI and with the copy test. - Docs of the component and an entry in the 4.24 upgrade guide for the insert change. Not in this PR: the autowired `dataSource` option of the component (third item of the ticket), a behavior change for its own ticket. ## Tests New tests in `DuckDbProducerTest`; the unit tests and `DuckDbProducerIT` of the module pass. _Claude Code on behalf of ammachado_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
