-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Column Family for ColumnTable (#9657)
- Loading branch information
1 parent
4f2597b
commit 45513a5
Showing
34 changed files
with
2,531 additions
and
299 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include "parsing.h" | ||
#include "utils.h" | ||
|
||
#include <ydb/library/formats/arrow/validation/validation.h> | ||
|
||
#include <contrib/libs/apache/arrow/cpp/src/arrow/util/compression.h> | ||
|
||
namespace NKikimr::NArrow { | ||
bool SupportsCompressionLevel(const arrow::Compression::type compression) { | ||
return arrow::util::Codec::SupportsCompressionLevel(compression); | ||
} | ||
|
||
bool SupportsCompressionLevel(const NKikimrSchemeOp::EColumnCodec compression) { | ||
return SupportsCompressionLevel(CompressionFromProto(compression).value()); | ||
} | ||
|
||
std::optional<int> MinimumCompressionLevel(const arrow::Compression::type compression) { | ||
if (!SupportsCompressionLevel(compression)) { | ||
return {}; | ||
} | ||
return NArrow::TStatusValidator::GetValid(arrow::util::Codec::MinimumCompressionLevel(compression)); | ||
} | ||
std::optional<int> MaximumCompressionLevel(const arrow::Compression::type compression) { | ||
if (!SupportsCompressionLevel(compression)) { | ||
return {}; | ||
} | ||
return NArrow::TStatusValidator::GetValid(arrow::util::Codec::MaximumCompressionLevel(compression)); | ||
} | ||
} |
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 @@ | ||
#pragma once | ||
|
||
#include <ydb/core/protos/flat_scheme_op.pb.h> | ||
|
||
#include <contrib/libs/apache/arrow/cpp/src/arrow/util/type_fwd.h> | ||
#include <util/system/yassert.h> | ||
|
||
#include <optional> | ||
|
||
namespace NKikimr::NArrow { | ||
bool SupportsCompressionLevel(const arrow::Compression::type compression); | ||
bool SupportsCompressionLevel(const NKikimrSchemeOp::EColumnCodec compression); | ||
|
||
std::optional<int> MinimumCompressionLevel(const arrow::Compression::type compression); | ||
std::optional<int> MaximumCompressionLevel(const arrow::Compression::type compression); | ||
} |
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ SRCS( | |
GLOBAL native.cpp | ||
stream.cpp | ||
parsing.cpp | ||
utils.cpp | ||
) | ||
|
||
END() |
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
Oops, something went wrong.