frankdressel/mrdata — Issue #29: Unintuitive handling
Author: frankdressel
Created: 2012-02-29 10:03:14+00:00
State: open

The script for getting the data is expecting a parent element, into which the data is imported. A proper syntax is:

database "datatable" => {
"Forest"{
"tree"
filter : = "Lime tree"
filter : or = "Willow" {
"age"
}
}
}

Because the first element is the parent and is just used as a container for the retrieved data, it doesn't make sense to apply filters there. Consequently, filters are not processed on the first element.

But if a user forgets to add the container element and writes something like:

database "datatable" => {
"tree"
filter : = "Lime tree"
filter : or = "Willow" {
"age"
}
}

The result will be the age of ALL trees in the database. There should be a more user friendly way to specify the container element.