Skip to content

Commit

Permalink
cast all data filter start and end values to float (#11207)
Browse files Browse the repository at this point in the history
  • Loading branch information
onursumer authored Nov 18, 2024
1 parent a56a698 commit 79dc173
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@
<include refid="castStringValueToFloat">
<property name="attribute_value" value="alteration_value"/>
</include>,
#{dataFilterValue.start}
cast(#{dataFilterValue.start} as float)
)
) &lt; exp(-11)
</when>
Expand All @@ -522,13 +522,13 @@
AND
<include refid="castStringValueToFloat">
<property name="attribute_value" value="alteration_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="alteration_value"/>
</include> &lt;= #{dataFilterValue.end}
</include> &lt;= cast(#{dataFilterValue.end} as float)
</if>
</otherwise>
</choose>
Expand Down Expand Up @@ -621,7 +621,7 @@
<include refid="castStringValueToFloat">
<property name="attribute_value" value="value"/>
</include>,
#{dataFilterValue.start}
cast(#{dataFilterValue.start} as float)
)
) &lt; exp(-11)
</when>
Expand All @@ -630,13 +630,13 @@
AND
<include refid="castStringValueToFloat">
<property name="attribute_value" value="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="value"/>
</include> &lt;= #{dataFilterValue.end}
</include> &lt;= cast(#{dataFilterValue.end} as float)
</if>
</otherwise>
</choose>
Expand Down

0 comments on commit 79dc173

Please sign in to comment.