Skip to content

Commit

Permalink
More detailed test for json protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksim committed May 30, 2022
1 parent 6c19ca9 commit 23ecb02
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,9 +888,15 @@ async def test_json_insert_select(self):
sql = "INSERT INTO all_types FORMAT JSONEachRow"
records = [
{"decimal32": 32},
{"fixed_string": "simple string", "low_cardinality_str": "meow test"},
]
await self.ch.execute(sql, *records)

sql = "INSERT INTO all_types"
records = [
{"fixed_string": "simple string", "low_cardinality_str": "meow test"},
]
await self.ch.execute(sql, *records, json=True)

result = await self.ch.fetch(
"SELECT * FROM all_types WHERE decimal32 = 32 FORMAT JSONEachRow"
)
Expand Down

0 comments on commit 23ecb02

Please sign in to comment.