statisticsnorway / java-vtl

An Open Source Java implementation of the Validation Transformation Language, based on the VTL 1.1 draft specification. The implementation follows the JSR-223 Java Scripting API and exposes a simple connector interface one can implement in order to integrate with any data stores. VTL is a standard language for defining validation and transformation rules (set of operators, their syntax and semantics) for any kind of statistical data.
http://java-vtl.org
Apache License 2.0
21 stars 7 forks source link

Filter with non-boolean expression gives ClassCastException #65

Open takvamborgen opened 6 years ago

takvamborgen commented 6 years ago

If filter expression is not of type VTLBoolean, a ClassCastException will be thrown. This should be handled earlier, for instance with a type check of the predicate in the constructor.