From 743e8468d5b8c69d01a2df5313aa10807ee2d45c Mon Sep 17 00:00:00 2001 From: Maksim Burtsev Date: Sun, 31 Dec 2023 23:13:07 +0300 Subject: [PATCH] fix nested json test --- tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests.py b/tests.py index 44ccf89..622ae4f 100644 --- a/tests.py +++ b/tests.py @@ -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'}, ]