Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: table function fuse_snapshot only show the latest snapshot for external table #15724

Closed
dantengsky opened this issue Jun 3, 2024 · 0 comments · Fixed by #15721
Closed
Labels
C-bug Category: something isn't working

Comments

@dantengsky
Copy link
Member

dantengsky commented Jun 3, 2024

Summary

table function fuse_snapshot only show the latest snapshot for external table

(default config) with table meta cache enabled:


create or replace table t(c int) 'fs:///tmp/test_fuse_snapshot_without_meta_cache/';

select name, value from system.configs where  name = 'enable_table_meta_cache';

insert into t values(1);

insert into t values(1);

insert into t values(1);

-- restart the query node, and then

-- expect 3 snapshot, but got only 1
select count() from fuse_snapshot('test_fuse_snapshot_without_meta_cache', 't') limit 100;

if table meta cache is disabled, e.g.,

cache_enable_table_meta_cache=false ./target/debug/databend-query  -c scripts/ci/deploy/config/databend-query-node-1.toml

fuse_snapshot returns empty result set:


create or replace table t(c int) 'fs:///tmp/test_fuse_snapshot_without_meta_cache/';

-- verify that table meta cache is disabled
select name, value from system.configs where  name = 'enable_table_meta_cache';

insert into t values(1);

insert into t values(1);

insert into t values(1);

-- expect 3 snapshot, but got empty result set
select count() from fuse_snapshot('test_fuse_snapshot_without_meta_cache', 't') limit 100;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant