Skip to content

Add union-branch ordering coverage on a schema-qualified table - #904

Open
phdoerfler wants to merge 1 commit into
typelevel:mainfrom
phdoerfler:topic/union-order-coverage
Open

Add union-branch ordering coverage on a schema-qualified table#904
phdoerfler wants to merge 1 commit into
typelevel:mainfrom
phdoerfler:topic/union-order-coverage

Conversation

@phdoerfler

Copy link
Copy Markdown
Contributor

Adds a shared SqlUnionOrderSuite that tests a union with order and limit, run on Postgres, skunk, MSSQL and Oracle against a schema-qualified table (qualified.union_order_entities).

#871 changed how qualified table names are folded in MSSQL union-branch encapsulation, but its tests (SqlQualifiedNamesSuite) only run on Postgres and skunk, so those MSSQL paths have no test today. The existing SqlUnionSuite does not cover order or limit on any backend.

The rows are inserted out of alphabetical order on purpose (id 1 Charlie, 2 Alpha, 3 Bravo, 4 Delta), so a query that returns the first two in insert order cannot pass the check by chance.

A schema is a user in Oracle, so the fixture there needs a second user. 01_create_user.sql creates it and grants TEST the rights to populate it, including CREATE ANY INDEX for the primary key index.

Test only, no library changes.

@phdoerfler
phdoerfler force-pushed the topic/union-order-coverage branch from cb50dc8 to 94343f3 Compare August 20, 2026 01:25
Runs on Postgres, skunk, MSSQL and Oracle. A schema is a user in Oracle, so the fixture there needs a second user.
@phdoerfler
phdoerfler force-pushed the topic/union-order-coverage branch from 94343f3 to 3264c3c Compare August 20, 2026 10:44
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