Skip to content

Commit

Permalink
Feature-gate document_type macro to avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tillrohrmann committed Jun 25, 2024
1 parent abccfa5 commit 38b03d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/storage-query-datafusion/src/table_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ macro_rules! define_primitive_trait {
};
}

#[cfg(feature = "table_docs")]
macro_rules! document_type {
(DataType::Utf8) => {
"Utf8"
Expand Down Expand Up @@ -499,4 +500,5 @@ macro_rules! define_table {
pub(crate) use define_builder;
pub(crate) use define_primitive_trait;
pub(crate) use define_table;
#[cfg(feature = "table_docs")]
pub(crate) use document_type;

0 comments on commit 38b03d5

Please sign in to comment.