Skip to content

Commit 392e9ff

Browse files
committed
Fix test_query_dict_int
1 parent a01abf4 commit 392e9ff

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

tests/test_query_py.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -113,22 +113,22 @@ def test_query_dict(self):
113113
)
114114
self.assertEqual(str(ret), EXPECTED)
115115

116-
# def test_query_dict_int(self):
117-
# data = {
118-
# "a": [1, 2, 3, 4, 5, 6],
119-
# "b": [1, 2, 3, 1, 2, 3],
120-
# }
121-
122-
# ret = chdb.query(
123-
# "SELECT b, sum(a) FROM Python(data) GROUP BY b ORDER BY b", "debug"
124-
# )
125-
# self.assertEqual(
126-
# str(ret),
127-
# """1,5
128-
# 2,7
129-
# 3,9
130-
# """,
131-
# )
116+
def test_query_dict_int(self):
117+
data = {
118+
"a": [1, 2, 3, 4, 5, 6],
119+
"b": [1, 2, 3, 1, 2, 3],
120+
}
121+
122+
ret = chdb.query(
123+
"SELECT b, sum(a) FROM Python(data) GROUP BY b ORDER BY b", "debug"
124+
)
125+
self.assertEqual(
126+
str(ret),
127+
"""1,5
128+
2,7
129+
3,9
130+
""",
131+
)
132132

133133
def test_query_pd_csv(self):
134134
csv_data = pd.read_csv(StringIO(SMALL_CSV))

0 commit comments

Comments
 (0)