Skip to content

Commit

Permalink
We have to cast all numbers to floats in Clickhouse SQL in order to c…
Browse files Browse the repository at this point in the history
…ompare them properly
  • Loading branch information
alisman committed Sep 25, 2024
1 parent b5b2c02 commit 9efba4d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@
<include refid="castStringValueToFloat">
<property name="attribute_value" value="attribute_value"/>
</include>,
${dataFilterValue.start}
cast(${dataFilterValue.start} as float)
)
) &lt; exp(-11)
</when>
Expand All @@ -354,13 +354,13 @@
AND
<include refid="castStringValueToFloat">
<property name="attribute_value" value="attribute_value"/>
</include> &gt; ${dataFilterValue.start}
</include> &gt; cast(${dataFilterValue.start} as float)
</if>
<if test="dataFilterValue.end != null">
AND
<include refid="castStringValueToFloat">
<property name="attribute_value" value="attribute_value"/>
</include> &lt;= ${dataFilterValue.end}
</include> &lt;= cast(${dataFilterValue.end} as float)
</if>
</otherwise>
</choose>
Expand Down

0 comments on commit 9efba4d

Please sign in to comment.