AtomFunction max doesn't type check.
- 主要語言
- Haskell
- 星號
- 952
- 分支
- 50
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Hi, I may found an issue when trying atom functions.
In tuorial, `max` is for int.
in code, `max` is defined for `IntegerAtom`
but it doesn't work for IntegerAtom as I expected.
```
TutorialD (master/main): :importexample date
TutorialD (master/main): :showexpr s
┌──────────┬────────┬───────────┬───────────────┐
│city::Text│s#::Text│sname::Text│status::Integer│
├──────────┼────────┼───────────┼───────────────┤
│"London" │"S4" │"Clark" │20 │
│"Athens" │"S5" │"Adams" │30 │
│"Paris" │"S3" │"Blake" │30 │
│"Paris" │"S2" │"Jones" │10 │
│"London" │"S1" │"Smith" │20 │
└──────────┴────────┴───────────┴───────────────┘
TutorialD (master/main): :showexpr s where status = 30
┌──────────┬────────┬───────────┬───────────────┐
│city::Text│s#::Text│sname::Text│status::Integer│
├──────────┼────────┼───────────┼───────────────┤
│"Paris" │"S3" │"Blake" │30 │
│"Athens" │"S5" │"Adams" │30 │
└──────────┴────────┴───────────┴───────────────┘
TutorialD (master/main): :showexpr s where status = max (@status)
┌──────────┬────────┬───────────┬───────────────┐
│city::Text│s#::Text│sname::Text│status::Integer│
└──────────┴────────┴───────────┴───────────────┘
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。