Error on missing column during cell path

This commit is contained in:
JT 2021-10-12 08:55:14 +13:00
parent 1a15f30eb8
commit 0d031636a9
2 changed files with 9 additions and 1 deletions

View File

@ -27,9 +27,9 @@
- [x] Source
- [x] Error shortcircuit (stopping on first error). Revised: errors emit first, but can be seen by commands.
- [x] Value serialization
- [x] Handling rows with missing columns during a cell path
- [ ] Input/output types
- [ ] Support for `$in`
- [ ] Handling rows with missing columns during a cell path
- [ ] ctrl-c support
- [ ] operator overflow
- [ ] finish operator type-checking

View File

@ -666,3 +666,11 @@ fn earlier_errors() -> TestResult {
"int",
)
}
#[test]
fn missing_column_error() -> TestResult {
fail_test(
r#"([([[name, size]; [ABC, 10], [DEF, 20]]).1, ([[name]; [HIJ]]).0]).size | table"#,
"cannot find column",
)
}