Skip to content

Commit

Permalink
fix nested json test
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksim-Burtsev committed Dec 31, 2023
1 parent a29f496 commit 743e846
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1094,9 +1094,9 @@ async def test_select_nested_json(self):
result = await self.ch.fetch(
"SELECT nested_int, nested_str_date FROM all_types WHERE has(nested_int.value1, 0) format JSONEachRow"
)
assert result[0]['nested_int'] == [[0, 1]]
assert result[0]['nested_int'] == [{'value1': 0, 'value2': 1}]
assert result[0]['nested_str_date'] == [
['hello', '2018-09-21'],
['inner', '2018-09-22'],
['world', '2018-09-23'],
{'value1': 'hello', 'value2': '2018-09-21'},
{'value1': 'inner', 'value2': '2018-09-22'},
{'value1': 'world', 'value2': '2018-09-23'},
]

0 comments on commit 743e846

Please sign in to comment.