You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by su...@apache.org on 2022/02/06 01:44:10 UTC
[arrow-rs] branch master updated: Make rle decoder public (#1271)
This is an automated email from the ASF dual-hosted git repository.
sunchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/master by this push:
new ce15d0c Make rle decoder public (#1271)
ce15d0c is described below
commit ce15d0cd7bad127799f3f0d5845e2a0267e670a9
Author: Ze'ev Maor <ze...@users.noreply.github.com>
AuthorDate: Sun Feb 6 03:44:01 2022 +0200
Make rle decoder public (#1271)
---
parquet/src/encodings/mod.rs | 2 +-
parquet/src/lib.rs | 14 +++++++++++++-
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/parquet/src/encodings/mod.rs b/parquet/src/encodings/mod.rs
index 6046dda..9577a8e 100644
--- a/parquet/src/encodings/mod.rs
+++ b/parquet/src/encodings/mod.rs
@@ -18,4 +18,4 @@
pub mod decoding;
pub mod encoding;
pub mod levels;
-pub(crate) mod rle;
+experimental_mod_crate!(rle);
diff --git a/parquet/src/lib.rs b/parquet/src/lib.rs
index 1799f9c..b50fab4 100644
--- a/parquet/src/lib.rs
+++ b/parquet/src/lib.rs
@@ -68,6 +68,18 @@ macro_rules! experimental_mod {
};
}
+macro_rules! experimental_mod_crate {
+ ($module:ident $(, #[$meta:meta])*) => {
+ #[cfg(feature = "experimental")]
+ #[doc(hidden)]
+ $(#[$meta])*
+ pub mod $module;
+ #[cfg(not(feature = "experimental"))]
+ $(#[$meta])*
+ pub(crate) mod $module;
+ };
+}
+
#[macro_use]
pub mod errors;
pub mod basic;
@@ -89,7 +101,7 @@ experimental_mod!(util, #[macro_use]);
pub mod arrow;
pub mod column;
experimental_mod!(compression);
-mod encodings;
+experimental_mod!(encodings);
pub mod file;
pub mod record;
pub mod schema;