This is an automated email from the ASF dual-hosted git repository. fokko pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/iceberg-cpp.git
The following commit(s) were added to refs/heads/main by this push: new ad3430f refactor: remove -isystem on local include header files (#211) ad3430f is described below commit ad3430f8e6494fcc1024efb619945d7c201c738b Author: Zehua Zou <zehuazou2...@gmail.com> AuthorDate: Tue Sep 16 02:39:57 2025 +0800 refactor: remove -isystem on local include header files (#211) --- cmake_modules/IcebergBuildUtils.cmake | 4 ++-- src/iceberg/table_metadata.h | 18 +++++++++--------- src/iceberg/transform.cc | 1 - 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/cmake_modules/IcebergBuildUtils.cmake b/cmake_modules/IcebergBuildUtils.cmake index a6a7212..8b89259 100644 --- a/cmake_modules/IcebergBuildUtils.cmake +++ b/cmake_modules/IcebergBuildUtils.cmake @@ -131,7 +131,7 @@ function(add_iceberg_lib LIB_NAME) endif() if(LIB_INCLUDES) - target_include_directories(${LIB_NAME}_shared SYSTEM PUBLIC ${ARG_EXTRA_INCLUDES}) + target_include_directories(${LIB_NAME}_shared PUBLIC ${ARG_EXTRA_INCLUDES}) endif() if(ARG_PRIVATE_INCLUDES) @@ -179,7 +179,7 @@ function(add_iceberg_lib LIB_NAME) endif() if(LIB_INCLUDES) - target_include_directories(${LIB_NAME}_static SYSTEM PUBLIC ${ARG_EXTRA_INCLUDES}) + target_include_directories(${LIB_NAME}_static PUBLIC ${ARG_EXTRA_INCLUDES}) endif() if(ARG_PRIVATE_INCLUDES) diff --git a/src/iceberg/table_metadata.h b/src/iceberg/table_metadata.h index da4d677..427447a 100644 --- a/src/iceberg/table_metadata.h +++ b/src/iceberg/table_metadata.h @@ -87,11 +87,11 @@ struct ICEBERG_EXPORT TableMetadata { /// The highest assigned column ID for the table int32_t last_column_id; /// A list of schemas - std::vector<std::shared_ptr<Schema>> schemas; + std::vector<std::shared_ptr<iceberg::Schema>> schemas; /// ID of the table's current schema std::optional<int32_t> current_schema_id; /// A list of partition specs - std::vector<std::shared_ptr<PartitionSpec>> partition_specs; + std::vector<std::shared_ptr<iceberg::PartitionSpec>> partition_specs; /// ID of the current partition spec that writers should use by default int32_t default_spec_id; /// The highest assigned partition field ID across all partition specs for the table @@ -101,7 +101,7 @@ struct ICEBERG_EXPORT TableMetadata { /// ID of the current table snapshot int64_t current_snapshot_id; /// A list of valid snapshots - std::vector<std::shared_ptr<Snapshot>> snapshots; + std::vector<std::shared_ptr<iceberg::Snapshot>> snapshots; /// A list of timestamp and snapshot ID pairs that encodes changes to the current /// snapshot for the table std::vector<SnapshotLogEntry> snapshot_log; @@ -109,7 +109,7 @@ struct ICEBERG_EXPORT TableMetadata { /// previous metadata files for the table std::vector<MetadataLogEntry> metadata_log; /// A list of sort orders - std::vector<std::shared_ptr<SortOrder>> sort_orders; + std::vector<std::shared_ptr<iceberg::SortOrder>> sort_orders; /// Default sort order id of the table int32_t default_sort_order_id; /// A map of snapshot references @@ -122,16 +122,16 @@ struct ICEBERG_EXPORT TableMetadata { int64_t next_row_id; /// \brief Get the current schema, return NotFoundError if not found - Result<std::shared_ptr<Schema>> Schema() const; + Result<std::shared_ptr<iceberg::Schema>> Schema() const; /// \brief Get the current schema by ID, return NotFoundError if not found Result<std::shared_ptr<iceberg::Schema>> SchemaById( const std::optional<int32_t>& schema_id) const; /// \brief Get the current partition spec, return NotFoundError if not found - Result<std::shared_ptr<PartitionSpec>> PartitionSpec() const; + Result<std::shared_ptr<iceberg::PartitionSpec>> PartitionSpec() const; /// \brief Get the current sort order, return NotFoundError if not found - Result<std::shared_ptr<SortOrder>> SortOrder() const; + Result<std::shared_ptr<iceberg::SortOrder>> SortOrder() const; /// \brief Get the current snapshot, return NotFoundError if not found - Result<std::shared_ptr<Snapshot>> Snapshot() const; + Result<std::shared_ptr<iceberg::Snapshot>> Snapshot() const; /// \brief Get the snapshot of this table with the given id Result<std::shared_ptr<iceberg::Snapshot>> SnapshotById(int64_t snapshot_id) const; @@ -145,7 +145,7 @@ ICEBERG_EXPORT std::string ToString(const SnapshotLogEntry& entry); ICEBERG_EXPORT std::string ToString(const MetadataLogEntry& entry); /// \brief The codec type of the table metadata file. -ICEBERG_EXPORT enum class MetadataFileCodecType { +enum class ICEBERG_EXPORT MetadataFileCodecType { kNone, kGzip, }; diff --git a/src/iceberg/transform.cc b/src/iceberg/transform.cc index 1de38fc..1ce1a6e 100644 --- a/src/iceberg/transform.cc +++ b/src/iceberg/transform.cc @@ -21,7 +21,6 @@ #include <format> #include <regex> -#include <utility> #include "iceberg/transform_function.h" #include "iceberg/type.h"