forked from ClickHouse/ClickHouse
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ClickHouse#58805 from ucasfl/avro-zstd
Avro format support Zstd codec
- Loading branch information
Showing
6 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
Submodule avro
updated
3 files
+2 −2 | lang/c++/CMakeLists.txt | |
+1 −0 | lang/c++/api/DataFile.hh | |
+41 −0 | lang/c++/impl/DataFile.cc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/queries/0_stateless/02955_avro_format_zstd_encode_support.reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
45 |
16 changes: 16 additions & 0 deletions
16
tests/queries/0_stateless/02955_avro_format_zstd_encode_support.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-- Tags: no-fasttest | ||
DROP TABLE IF EXISTS t; | ||
CREATE TABLE t | ||
( | ||
`n1` Int32 | ||
) | ||
ENGINE = File(Avro) | ||
SETTINGS output_format_avro_codec = 'zstd'; | ||
|
||
INSERT INTO t SELECT * | ||
FROM numbers(10); | ||
|
||
SELECT sum(n1) | ||
FROM t; | ||
|
||
DROP TABLE t; |