Skip to content

Commit

Permalink
feat: unload parquet with version as created_by.
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsofun committed May 30, 2024
1 parent e848eea commit 1e6e6c2
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/query/storages/stage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ test = true
databend-common-base = { path = "../../../common/base" }
databend-common-catalog = { path = "../../catalog" }
databend-common-compress = { path = "../../../common/compress" }
databend-common-config = { path = "../../config" }
databend-common-exception = { path = "../../../common/exception" }
databend-common-expression = { path = "../../expression" }
databend-common-formats = { path = "../../formats" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use std::sync::Arc;
use arrow_schema::Schema as ArrowSchema;
use async_trait::async_trait;
use databend_common_catalog::plan::StageTableInfo;
use databend_common_config::QUERY_SEMVER;
use databend_common_exception::Result;
use databend_common_expression::converts::arrow::table_schema_to_arrow_schema;
use databend_common_expression::BlockMetaInfoDowncast;
Expand Down Expand Up @@ -83,6 +84,7 @@ fn create_writer(
.set_dictionary_enabled(false)
.set_statistics_enabled(EnabledStatistics::None)
.set_bloom_filter_enabled(false)
.set_created_by(format!("Databend {}", *QUERY_SEMVER))
.build();
let buf_size = match targe_file_size {
Some(n) if n < MAX_BUFFER_SIZE => n,
Expand Down
2 changes: 1 addition & 1 deletion tests/suites/0_stateless/05_hints/05_0001_set_var.result
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ Asia/Shanghai
America/Toronto
2022-02-02 03:00:00
2022-02-01 14:00:00
1 64 416
1 64 415
Asia/Shanghai
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=== test db/table ===
200
=== test stage ===
1 8 402
1 8 401
0
=== test udf ===
2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Error: APIError: ResponseError with 1063: Permission denied: privilege READ is r
Error: APIError: ResponseError with 1063: Permission denied: No privilege on database root_db for user b.
Error: APIError: ResponseError with 1063: Permission denied: No privilege on table root_table for user b.
Error: APIError: ResponseError with 1063: Permission denied: No privilege on table root_table for user b.
1 64 378
1 64 377
Error: APIError: ResponseError with 1063: Permission denied: privilege [Select] is required on 'default'.'default'.'t1' for user 'b'@'%' with roles [public]
Error: APIError: ResponseError with 1063: Permission denied: privilege [Read] is required on STAGE s3 for user 'b'@'%' with roles [public]
Error: APIError: ResponseError with 1063: Permission denied: privilege [Select] is required on 'default'.'default'.'t' for user 'b'@'%' with roles [public]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
2 10 387
2 10 386
expects .stats.write_progress.rows be 2
expects .error be null
2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
20 160 160
20 450 800
20 450 799
2
20 160 160

0 comments on commit 1e6e6c2

Please sign in to comment.