mirror of https://github.com/apache/druid.git
77925cdcdd
* SQL: Fix round-trips of floating point literals. When writing RexLiterals into Druid expressions, we now write non-integer numeric literals in such a way that ensures they are parsed as doubles on the other end. * Updates from code review, and some additional stuff inspired by the investigation. - Remove unnecessary formatting code from DruidExpression.doubleLiteral: it handles things just fine with its default behavior. - Fix a problem where expression literals could not represent Long.MIN_VALUE. Now, integer literals start life off as BigIntegerExpr instead of LongExpr, and are converted to LongExpr during flattening. This is necessary because, in order to avoid ambiguity between unary minus and negative literals, our grammar does not actually have true negative literals. Negative numbers must be represented as unary minus next to a positive literal. - Fix a bug introduced in #12230 where shuttle.visitAll(args) delegated to shuttle.visit(arg) instead of arg.visit(shuttle). The latter does a recursive visitation, which is the intended behavior. * Style fixes. * Move regexp to the right place. |
||
---|---|---|
.. | ||
src | ||
pom.xml |