add s3 tests

This commit is contained in:
skyoct 2024-06-26 22:28:31 +08:00
parent d6a351bf0d
commit 15b36c1ece
3 changed files with 4 additions and 4 deletions

View File

@ -202,7 +202,7 @@ Chunk StorageObjectStorageSource::generate()
.size = object_info->metadata->size_bytes, .size = object_info->metadata->size_bytes,
.filename = &filename, .filename = &filename,
.last_modified = object_info->metadata->last_modified, .last_modified = object_info->metadata->last_modified,
.etag = &(object_info.metadata->etag) .etag = &(object_info->metadata->etag)
}); });
return chunk; return chunk;
} }

View File

@ -11,5 +11,5 @@ create table test_02245_2 (a UInt64, _path Int32) engine = S3(s3_conn, filename=
insert into test_02245_2 select 1, 2 settings s3_truncate_on_insert=1; insert into test_02245_2 select 1, 2 settings s3_truncate_on_insert=1;
select * from test_02245_2; select * from test_02245_2;
1 2 1 2
select _path from test_02245_2; select _path, isNotNull(_etag) from test_02245_2;
2 2 1

View File

@ -12,4 +12,4 @@ drop table if exists test_02245_2;
create table test_02245_2 (a UInt64, _path Int32) engine = S3(s3_conn, filename='test_02245_2', format=Parquet); create table test_02245_2 (a UInt64, _path Int32) engine = S3(s3_conn, filename='test_02245_2', format=Parquet);
insert into test_02245_2 select 1, 2 settings s3_truncate_on_insert=1; insert into test_02245_2 select 1, 2 settings s3_truncate_on_insert=1;
select * from test_02245_2; select * from test_02245_2;
select _path from test_02245_2; select _path, isNotNull(_etag) from test_02245_2;