lib/arrow/expression.rb in red-arrow-12.0.1 vs lib/arrow/expression.rb in red-arrow-13.0.0

- old
+ new

@@ -29,13 +29,17 @@ when String, Symbol function_name = function_name.to_s else return nil end + options = nil if arguments.last.is_a?(FunctionOptions) options = arguments.pop - else - options = nil + elsif arguments.last.is_a?(Hash) + function = Function.find(function_name) + if function + options = function.resolve_options(arguments.pop) + end end CallExpression.new(function_name, arguments, options) else datum = Datum.try_convert(value) return nil if datum.nil?