Skip to content
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

Get operator #3

Open
6 tasks
hadrienk opened this issue Oct 21, 2016 · 0 comments
Open
6 tasks

Get operator #3

hadrienk opened this issue Oct 21, 2016 · 0 comments

Comments

@hadrienk
Copy link
Owner

hadrienk commented Oct 21, 2016

Dataset ds_o := get(PersistentDataset ds_id {, PersistentDataset ds_id}\* {,keep(keepPart Component {, keepClause Component})} {,filter(Component filterPart)}
{,aggregate(
[sum|avg|median|count|count_distinct|min|max]({include NULLS} MeasureComponent aggrPart) {,[sum|avg|median|count|count_distinct|min|max]({include NULLS} MeasureComponent aggrPart)}

)} )

  • Update grammar tests
  • Update grammar
  • Refine Connector interface
  • Test that the input datasets ds_id must have the same Logical Data Structure, which is the same Components in number, name and type (static).
  • Test that keepPart must be a Component expression containing exactly the name of a Component of any ds (complex Component expressions, combining more than one Component are not allowed) (static).
  • Test that aggrPart must be a Component expression containing exactly the name of a MeasureComponent present in any ds (no complex Component expressions, combining more than one Component is allowed). If there is at least one aggrPart, there must be one for each MeasureComponent that is present in a keepPart. If keepPart is omitted, all MeasureComponents must be in the aggregate. This means that there cannot be MeasureComponents, kept that are not used in aggregations (static).
hadrienk referenced this issue in statisticsnorway/java-vtl Feb 9, 2017
…boolean to develop

* commit 'eeb6f1807784ead8c95c2430856695b8907123e0': (38 commits)
  Update antlr4 maven plugin version
  Remove unused code before merging pr
  Reference and Component identity equality refactoring
  Refactor the rename function and add more robust tests
  Deprecate JoinBodyVisitor and use JoinExpressionVisitor instead
  Make all the join clause visitors use the ReferenceVisitor to get Component references
  Make all operations use references
  Use reference in the grammar
  Update antlr versioUpdate antlr versionn
  Introduce bloc
  Make the ReferenceVisitor use a Stack to handle sub scopes
  Take advantage of JoinReferenceVisitor in KeepClause
  Introduce a JoinReferenceVisitor to handle special component references in a join body
  Add casting exceptions
  Take advantage of ReferenceVisitor in DropClause
  Take advantage of ReferenceVisitor in JoinDefinition
  Adapt visitors to new reference grammar (unoptimized)
  Add more tests for the ReferenceVisitor
  Add tests for the ReferenceVisitor
  Introduce reference visitor
  ...
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

No branches or pull requests

1 participant