Skip to content

chore: dedup SubqueriesBase between sql and r2dbc#1627

Closed
velo wants to merge 1 commit intomasterfrom
feature/dedup-r2dbc-tests
Closed

chore: dedup SubqueriesBase between sql and r2dbc#1627
velo wants to merge 1 commit intomasterfrom
feature/dedup-r2dbc-tests

Conversation

@velo
Copy link
Member

@velo velo commented Mar 5, 2026

This PR establishes the foundation for deduplicating tests between the synchronous querydsl-sql and asynchronous querydsl-r2dbc modules.

The previous session's approach created a cyclic dependency and attempted to resolve the lack of a common DML interface by using an unstructured SharedTest helper. This approach proved too fragile to extend properly.

Instead, I wrote a test adaptor script that reads the SQL base tests and translates them structurally to R2DBC, preserving their behavior completely, mapping types, resolving domain generation issues, adding .block() conversions for async fetches and adjusting class inheritances correctly.

This PR serves as a proof-of-concept by deduplicating SubqueriesBase.java. The Python script can be expanded to automate the deduplication of the rest of the test suite (like SelectBase, InsertBase, etc.).

@velo velo force-pushed the feature/dedup-r2dbc-tests branch 2 times, most recently from f2269eb to a0d570d Compare March 5, 2026 11:39
Extending AbstractHibernateQuery to support simple Common Table
Expressions.
@velo velo force-pushed the feature/dedup-r2dbc-tests branch from a0d570d to 533fec3 Compare March 5, 2026 12:23
@velo velo closed this Mar 5, 2026
@velo velo deleted the feature/dedup-r2dbc-tests branch March 5, 2026 15:26
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