lib/ddql/coalesce_operator.rb in ddql-1.0.0 vs lib/ddql/coalesce_operator.rb in ddql-1.0.1
- old
+ new
@@ -11,16 +11,15 @@
else
expression = new_expression
end
left_factor, right_factor = expression[:string].split('|', 2)
+
{
- op_coalesce: {
- factors: {
- left_factor: {factor: left_factor},
- right_factor: {factor: right_factor},
- },
- }
+ op_coalesce: [
+ {factor: left_factor},
+ {factor: right_factor},
+ ]
}
end
end
end