Skip to content

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

Merged
milessabin merged 1 commit into
typelevel:mainfrom
phdoerfler:topic/union-order-coverage
Aug 25, 2026
Merged

Add union-branch ordering coverage on a schema-qualified table#904
milessabin merged 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

@milessabin milessabin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@milessabin
milessabin merged commit a669c7d into typelevel:main Aug 25, 2026
13 checks passed
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.

2 participants