Skip to content

Commit

Permalink
publish new version
Browse files Browse the repository at this point in the history
  • Loading branch information
l1xnan committed Feb 2, 2024
1 parent fda2253 commit e564e2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "duck-studio",
"private": true,
"version": "0.0.10",
"version": "0.0.11",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
6 changes: 3 additions & 3 deletions src-tauri/src/dialect/clickhouse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ impl ClickhouseDialect {

let mut offset = offset;
let mut row_count = 0;
let mut total = 0;
let mut total_count = 0;
while let Some(block) = stream.next().await {
let block = block?;
let count = block.row_count();
total += count;
total_count += count;
if (offset as i64 - count as i64) >= 0 {
offset -= count;
continue;
Expand All @@ -182,7 +182,7 @@ impl ClickhouseDialect {
let preview = batch.slice(offset, std::cmp::min(limit, total - offset));

Ok(ArrowData {
total_count: total,
total_count,
preview: serialize_preview(&preview)?,
})
}
Expand Down

0 comments on commit e564e2d

Please sign in to comment.