max() function operates improperly on multi-attribute relations
- Lenguaje dominante
- Haskell
- Estrellas
- 952
- Forks
- 50
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.