diff --git a/src/Databases/Iceberg/RestCatalog.cpp b/src/Databases/Iceberg/RestCatalog.cpp index cf92c92bac3..ab51bb8a495 100644 --- a/src/Databases/Iceberg/RestCatalog.cpp +++ b/src/Databases/Iceberg/RestCatalog.cpp @@ -1,3 +1,6 @@ +#include "config.h" + +#if USE_AVRO #include #include @@ -6,6 +9,7 @@ #include #include #include +#include #include #include @@ -640,3 +644,5 @@ bool RestCatalog::getTableMetadataImpl( } } + +#endif diff --git a/src/Databases/Iceberg/RestCatalog.h b/src/Databases/Iceberg/RestCatalog.h index aab8be6ed8d..a1dbe268d0b 100644 --- a/src/Databases/Iceberg/RestCatalog.h +++ b/src/Databases/Iceberg/RestCatalog.h @@ -1,4 +1,7 @@ #pragma once +#include "config.h" + +#if USE_AVRO #include #include #include @@ -115,3 +118,5 @@ private: }; } + +#endif