Skip to content

Commit

Permalink
Update PostgreSQLCapacityExpansionIT.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Yihao-Xu committed Feb 10, 2025
1 parent 7cdba4c commit ca29152
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ private void testFloatData() {
List<String> pathList = Constant.READ_ONLY_FLOAT_PATH_LIST;
List<List<Object>> valuesList = Constant.READ_ONLY_FLOAT_VALUES_LIST;
SQLTestTools.executeAndCompare(session, statement, pathList, valuesList);
statement = "select wt02.float from tm.wf05 where wt02.float = 44.55;";
statement =
"select wt02.float from tm.wf05 where wt02.float >= 44.54;"; // 浮点数的=在下推时产生的浮点数误差会使结果不一致,这里改用一个较为宽松的条件
valuesList = Arrays.asList(Arrays.asList(44.55F));
SQLTestTools.executeAndCompare(session, statement, pathList, valuesList);
}
Expand Down

0 comments on commit ca29152

Please sign in to comment.