Skip to content

feat(connector): the mapping connector describes a catalog of the rolap mapping - #210

Merged
stbischof merged 1 commit into
eclipse-daanse:mainfrom
stbischof:feat/mapping-connector
Nov 30, 2026
Merged

stbischof merged 1 commit into
eclipse-daanse:mainfrom
stbischof:feat/mapping-connector

Conversation

@stbischof

Copy link
Copy Markdown
Contributor

One commit, a new module connector/mapping. It turns an EMF catalog of the rolap mapping into the OLAP catalog
description of eclipse-daanse/org.eclipse.daanse.olap#199. Nothing in rolap-core reads the description yet; that
follows in the next commits.

Two halves. MappingConnector.describe gives the CatalogDef: cubes, dimensions, hierarchies, levels, measures,
calculated members, named sets, KPIs, roles and parameters, built through the description's builders. RelationalHalf
gives schemas, tables, columns, joins, inline tables, SQL selects, aggregation and writeback tables and database grants
as the description's own types, one description object per mapping object. EMF and CWM stay at this seam.

What is translated, and how. Roles, parameters, drill-through actions and formatters named by class are
translated. The description's validator checks the result, so a catalog it cannot carry fails with its problems by
path. What the description has no form for yet, such as a member reader of its own, is refused by name. Where the
mapping allows more than the description, the connector reads it as the relational engine does: a dimension used twice
under one name keeps its first usage; a hierarchy without a name of its own shows under the name of each usage; a
mapping group with several distinct counts opens one group per distinct count over the same facts; a numeric standard
property of a calculated member (SOLVE_ORDER, MEMBER_ORDINAL) stays a number.

Tests. A conformance test gives every class of the mapping model a verdict, so a class the mapping gains fails until
the connector says what it makes of it. Further tests cover the roles on their own, duplicate usages, distinct counts and
the properties of calculated members.

…ap mapping

The new module connector/mapping turns an EMF catalog of the rolap mapping into a catalog description:
MappingConnector.describe gives the CatalogDef together with its relational half (RelationalHalf) --
schemas, tables, columns, joins, inline tables, SQL selects, aggregation and writeback tables, database
grants -- with one description object per mapping object. Roles, parameters, drill-through actions and
formatters named by class are translated; what the description has no place for, such as a member
reader of its own, is refused by name. A hierarchy without a name of its own shows under the name of each
usage, as the relational engine names it. A conformance test gives every class of the mapping model a
verdict. Nothing in rolap-core reads the description yet.

Signed-off-by: Stefan Bischof <stbischof@bipolis.org>
@stbischof
stbischof merged commit 10b7e83 into eclipse-daanse:main Nov 30, 2026
20 of 21 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.

1 participant