New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test whether a recordset is a subset of an asserted recordset #196
Comments
Hi rvdpluijm, just as a possible point of start, perhaps the assertion subsetof could work. I'd give it a try. although it's just documented for a list of items, it might work for a resultset? my two cents :) |
@FuegoArtificial Sadly, that didn't work. It conflicted with the XSD: Validation of current file using XML schema: ERROR: Element '{http://NBi/TestSuite}query': This element is not expected. Expected is one of ( {http://NBi/TestSuite}item, {http://NBi/TestSuite}predefined, {http://NBi/TestSuite}range-integer, {http://NBi/TestSuite}range-date, {http://NBi/TestSuite}range-integer-pattern, {http://NBi/TestSuite}one-column-query, {http://NBi/TestSuite}members ). I'll check whether I can build an approach using your guidance. Thanks! |
@rvdpluijm It's not supported at the moment but shouldn't be too difficult to implement. Will check. |
It will be too complex to have the same names for constraints on collection ( I'm planning to
@FuegoArtificial @zakwillis @BenCurvers @rvdpluijm If validated I should update #288 |
I like the idea to distinguish the naming if it would be too complex to implement otherwise. Though, while thinking in "sets" when using semantic models like elements of a dimension and writing MDX-queries (SET x AS {x,y}), I would stick with the wording "subset" when being in this semantic model domain like OLAP Cubes. |
Hi there, I think subset/superset sounds good and it is always good to use single responsibilities.
You obviously have the exists clause both mdx and sql. I don't think this matters that much as long as we can take advantage of this functionality as it feels like a natural inclusion to a great product.
Best,
Zak
…Sent from my Windows Phone
________________________________
From: Tilo Sommerwerk<mailto:notifications@github.com>
Sent: 28/08/2017 20:03
To: Seddryck/NBi<mailto:NBi@noreply.github.com>
Cc: zakwillis<mailto:zak_willis@hotmail.com>; Mention<mailto:mention@noreply.github.com>
Subject: Re: [Seddryck/NBi] Test whether a recordset is a subset of an asserted recordset (#196)
I like the idea to distinguish the naming if it would be too complex to implement otherwise.
Though, while thinking in "sets" when using semantic models like elements of a dimension and writing MDX-queries (SET x AS {x,y}), I would stick with the wording "subset" when being in this semantic model domain like OLAP Cubes.
Synonyms could be "containedIn" or "includedIn" as wikipedia suggests similarily in the definition of subsets: https://en.wikipedia.org/wiki/Subset
This would have the advantage of backward compatibility as well while you wouldn't need to change predicates for the current semantic.
What do you think?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#196 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ALol8GMAQYQxKdS42c6cbGCukp7QhGyTks5scw8WgaJpZM4I2PyW>.
|
It's available in a preview of release 1.16: https://ci.appveyor.com/project/Seddryck/nbi/build/1.16.0-ci.1 |
documentation is available at http://www.nbi.io/docs/compare-superset-subset/ but the title of the page is incorrect. |
We're currently testing our financial data warehouse using NBI. An essential part of this is testing whether the ETL handles incrementals in a correct manner. Therefore, I have to check whether all records from the staging tables have been transferred to the data warehouse fact tables
Is it therefore possible to use an "contains" or "is contained by" assertion to check whether the checked recordset is a proper subset / superset of the asserted recordset (or could that feature be implemented)?
The text was updated successfully, but these errors were encountered: