Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyass committed Sep 26, 2023
1 parent 6268b2c commit 81cf166
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ async fn test_simple_sql() -> Result<()> {
assert_eq!(result.state, ExecuteStateKind::Succeeded, "{:?}", result);
assert_eq!(result.next_uri, Some(final_uri.clone()), "{:?}", result);
assert_eq!(result.data.len(), 10, "{:?}", result);
assert_eq!(result.schema.len(), 18, "{:?}", result);
assert_eq!(result.schema.len(), 17, "{:?}", result);

// get state
let uri = make_state_uri(query_id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ async fn test_fuse_snapshot_truncate_in_drop_all_stmt() -> Result<()> {

check_data_dir(
&fixture,
"drop table: there should be 1 snapshot, 0 segment/block",
"drop table: there should be 1 snapshot, 1 segment/block",
1, // 1 snapshot
0, // 0 snapshot statistic
0, // 0 segments
0, // 0 blocks
0, // 0 index
1, // 0 segments
1, // 0 blocks
1, // 0 index
None,
None,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ select count() from fuse_block('db_09_0006', 't1')
5

statement ok
truncate table t1 purge
truncate table t1

query I
select block_size from fuse_block('db_09_0006', 't1')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ select count(*) from fuse_snapshot('db_09_0007', 't')
3

statement ok
truncate table `t` purge
truncate table `t`

query I
select count(*) from fuse_snapshot('db_09_0007', 't')
----
1
4

statement ok
select * from t
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ select average_overlaps, average_depth, block_depth_histogram from clustering_in

# test trim string
statement ok
truncate table t3 purge
truncate table t3

statement ok
insert into t3 values(1,'123456780'),(2,'123456781')
Expand Down

0 comments on commit 81cf166

Please sign in to comment.