Closed Kixiron closed 1 year ago
It seems the problem is that the float literal gets made a f64 regardless of the cast or anything else
The bug is here:
public boolean preorder(DBSPFloatLiteral expression) {
return this.createJsonLiteral(expression, "F64", // <<<< should be F32
expression.value == null ? null : new FloatNode(expression.value));
}
The next PR for the jit branch will contain the fix, but trying to bundle some other stuff too.
I think this is fixed.
This sql
Produces this json
Which has this binary op in it
For which the lhs is a f32 but the rhs is a f64, generating invalid code