Skip to content

Add DuckDB MAP type support and MariaDB typed SET generation - #179

Merged
oyvindberg merged 1 commit into
mainfrom
duckdb-map-mariadb-set
Jan 4, 2026
Merged

Add DuckDB MAP type support and MariaDB typed SET generation#179
oyvindberg merged 1 commit into
mainfrom
duckdb-map-mariadb-set

Conversation

@oyvindberg

Copy link
Copy Markdown
Collaborator

Summary

  • DuckDB MAP: Map MAP(K,V) to java.util.Map<K,V> instead of String, with native array conversion support
  • MariaDB SET: Generate typed SET classes from SET('x','y','z') definitions
    • Derive class names from sorted values (e.g. XYZSet from SET('x','y','z'))
    • Generate member enum (XYZSetMember) and wrapper class (XYZSet)
    • Use kotlin.collections.Set for Kotlin (not java.util.Set)
    • Add SET default values to TestInsert generation

Test plan

  • DuckDB MAP type tests pass
  • MariaDB Java tests pass (12 suites)
  • MariaDB Scala tests pass
  • MariaDB Kotlin tests pass

🤖 Generated with Claude Code

@oyvindberg
oyvindberg force-pushed the duckdb-map-mariadb-set branch 3 times, most recently from 9da52c8 to 833fba9 Compare January 4, 2026 10:51
DuckDB MAP:
- Add DuckDbMapSupport with native array conversion for MAP types
- Map DuckDB MAP(K,V) to java.util.Map<K,V> instead of String
- Update DuckDbType and DuckDbTypes with MAP conversion methods
- Add MAP type tests in DuckDbTypeTest

MariaDB SET:
- Generate typed SET classes from SET('x','y','z') definitions
- Derive class names from sorted values (e.g. XYZSet from SET('x','y','z'))
- Generate member enum (XYZSetMember) and wrapper class (XYZSet)
- Add Naming.setTypeName for SET type naming
- Create ComputedMariaSet and FileMariaSet for code generation
- Use kotlin.collections.Set for Kotlin (not java.util.Set)
- Add SET default values to TestInsert generation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@oyvindberg
oyvindberg force-pushed the duckdb-map-mariadb-set branch from 833fba9 to 7258668 Compare January 4, 2026 13:17
@oyvindberg
oyvindberg merged commit 642837d into main Jan 4, 2026
12 checks passed
@oyvindberg
oyvindberg deleted the duckdb-map-mariadb-set branch January 4, 2026 13:27
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