spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

Add HSQLDB support to `JdbcSessionRepository`

Open durgadasepalli opened this issue 1 month ago • 2 comments

Expected Behavior

JdbcSessionRepository works with HSQLDB, and JdbcSessionRepositoryDialect.from() detects it ("HSQL Database Engine"), as it does for PostgreSQL, MySQL, MariaDB and H2.

Current Behavior

from() throws IllegalStateException for HSQLDB. #7186 lists HSQLDB among the session dialects needed before chat memory is removed in 3.0, and the deprecated JDBC chat memory repository supports it today.

Context

I'd like to contribute this as a follow-up to #7301 (SQL Server): an HsqldbJdbcSessionRepositoryDialect with a MERGE upsert, schema-hsqldb.sql, detection in from(), and the repository contract tests run against embedded HSQLDB (no container needed).

durgadasepalli avatar Nov 03 '26 14:11 durgadasepalli

Hi Spring AI team,

I'd like to work on this issue.

I can add an HsqldbJdbcSessionRepositoryDialect with the HSQLDB MERGE-based upsert, provide schema-hsqldb.sql, and wire HSQLDB product-name detection into JdbcSessionRepositoryDialect.from().

I'll also add repository contract tests using embedded HSQLDB so the new dialect is covered without requiring a container, including insert/update and session retrieval scenarios.

Before implementing, could you confirm the HSQLDB version the project expects to support and whether there are any existing dialect conventions you'd like me to follow beyond the PostgreSQL/MySQL/H2 implementations?

Thanks!

Rishankgupta08 avatar Nov 15 '26 18:11 Rishankgupta08

Hi @Rishankgupta08, thanks for your interest! I'd already started on this, and the PR is now up: #7406. SQLite is also on the list of session dialects needed before 3.0 (#7186), in case you'd like to take that one.

durgadasepalli avatar Nov 18 '26 23:11 durgadasepalli