Skip to content

Commit 23f75db

Browse files
authored
minor typo - switched positive and negative infinities maintaining order [-inf, +inf, NaN] (googleapis#4397)
1 parent db216c0 commit 23f75db

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spanner/tests/system/test_system.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,19 +1150,19 @@ def test_execute_sql_w_query_param_transfinite(self):
11501150
# Find -inf
11511151
self._check_sql_results(
11521152
snapshot,
1153-
sql='SELECT eye_d FROM all_types WHERE approx_value = @pos_inf',
1154-
params={'pos_inf': float('+inf')},
1155-
param_types={'pos_inf': Type(code=FLOAT64)},
1156-
expected=[(107,)],
1153+
sql='SELECT eye_d FROM all_types WHERE approx_value = @neg_inf',
1154+
params={'neg_inf': float('-inf')},
1155+
param_types={'neg_inf': Type(code=FLOAT64)},
1156+
expected=[(207,)],
11571157
)
11581158

11591159
# Find +inf
11601160
self._check_sql_results(
11611161
snapshot,
1162-
sql='SELECT eye_d FROM all_types WHERE approx_value = @neg_inf',
1163-
params={'neg_inf': float('-inf')},
1164-
param_types={'neg_inf': Type(code=FLOAT64)},
1165-
expected=[(207,)],
1162+
sql='SELECT eye_d FROM all_types WHERE approx_value = @pos_inf',
1163+
params={'pos_inf': float('+inf')},
1164+
param_types={'pos_inf': Type(code=FLOAT64)},
1165+
expected=[(107,)],
11661166
)
11671167

11681168
rows = list(snapshot.execute_sql(

0 commit comments

Comments
 (0)