| 19 | include Helper::DataType |
| 20 | |
| 21 | def setup |
| 22 | omit("Gandiva is required") unless defined?(::Gandiva) |
| 23 | @registry = Gandiva::FunctionRegistry.default |
| 24 | @not = lookup("not", [boolean_data_type], boolean_data_type) |
| 25 | @isnull = lookup("isnull", [int8_data_type], boolean_data_type) |
| 26 | end |
| 27 | |
| 28 | def lookup(name, param_types, return_type) |
| 29 | signature = Gandiva::FunctionSignature.new(name, |