agentm / agentm/project-m36

max() function operates improperly on multi-attribute relations

Aberta
#51 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Haskell
Estrelas
952
Forks
50
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Example:

```
TutorialD (master): :showexpr employee{departmentid,salary,employeeid} group ({salary,employeeid} as dept):{maxsalary:=max(@dept)}
┌─────────────────────────┬────────────────────────────────────────────────────────────┬──────────────────────┐
│departmentid::IntAtomType│dept::relation {employeeid::IntAtomType,salary::IntAtomType}│maxsalary::IntAtomType│
├─────────────────────────┼────────────────────────────────────────────────────────────┼──────────────────────┤
│3 │┌───────────────────────┬───────────────────┐ │4 │
│ ││employeeid::IntAtomType│salary::IntAtomType│ │ │
│ │├───────────────────────┼───────────────────┤ │ │
│ ││4 │20000000 │ │ │
│ ││3 │200 │ │ │
│ │└───────────────────────┴───────────────────┘ │ │
│1 │┌───────────────────────┬───────────────────┐ │2 │
│ ││employeeid::IntAtomType│salary::IntAtomType│ │ │
│ │├───────────────────────┼───────────────────┤ │ │
│ ││2 │100 │ │ │
│ ││1 │1000000 │ │ │
│ │└───────────────────────┴───────────────────┘ │ │
└─────────────────────────┴────────────────────────────────────────────────────────────┴──────────────────────┘

```

Using max() here should likely be an error, but there should be a way to choose an attribute of the subrelation on which the function should operate. This needs more thought.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.