-
Notifications
You must be signed in to change notification settings - Fork 137
Closed
Labels
Description
Panic info
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: BadResponse("Code: 33. DB::Exception: Cannot read all data. Bytes read: 6. Bytes expected: 56.: (at row 2)\n: While executing BinaryRowInputFormat. (CANNOT_READ_ALL_DATA) (version 23.1.2.9 (official build))")', src/xxx.rs:181:40error occur in insert.end().await.unwrap()
Source code
for (symbol_id, (total, cnt)) in records.iter() {
let cli = make_client(url, db, table).await?;
let mut insert = cli.inserter(table)?;
...
insert.write(&r).await.unwrap();
insert.commit().await.unwrap();
insert.end().await.unwrap();
};here I tried cli.insert() cli.inserter(),
also try to drop table, and create a new one,
but it doesn't help