From de908ff526a034ce7ce935e2a2bf296f9f0a1743 Mon Sep 17 00:00:00 2001 From: Zehua Zou <41586196+HuaHuaY@users.noreply.github.com> Date: Thu, 4 Sep 2025 20:09:10 +0800 Subject: [PATCH 1/2] refactor: remove -isystem on local include header files --- cmake_modules/IcebergBuildUtils.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake_modules/IcebergBuildUtils.cmake b/cmake_modules/IcebergBuildUtils.cmake index a6a721236..8b8925977 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) From 988d8b1dc9c8f60b62deddec0f9cc958b3356baa Mon Sep 17 00:00:00 2001 From: Zehua Zou <41586196+HuaHuaY@users.noreply.github.com> Date: Thu, 4 Sep 2025 20:41:32 +0800 Subject: [PATCH 2/2] fix compile errors when using gcc --- src/iceberg/table_metadata.h | 18 +++++++++--------- src/iceberg/transform.cc | 1 - 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/iceberg/table_metadata.h b/src/iceberg/table_metadata.h index da4d677b3..427447a10 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> schemas; + std::vector> schemas; /// ID of the table's current schema std::optional current_schema_id; /// A list of partition specs - std::vector> partition_specs; + std::vector> 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> snapshots; + std::vector> snapshots; /// A list of timestamp and snapshot ID pairs that encodes changes to the current /// snapshot for the table std::vector snapshot_log; @@ -109,7 +109,7 @@ struct ICEBERG_EXPORT TableMetadata { /// previous metadata files for the table std::vector metadata_log; /// A list of sort orders - std::vector> sort_orders; + std::vector> 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> Schema() const; + Result> Schema() const; /// \brief Get the current schema by ID, return NotFoundError if not found Result> SchemaById( const std::optional& schema_id) const; /// \brief Get the current partition spec, return NotFoundError if not found - Result> PartitionSpec() const; + Result> PartitionSpec() const; /// \brief Get the current sort order, return NotFoundError if not found - Result> SortOrder() const; + Result> SortOrder() const; /// \brief Get the current snapshot, return NotFoundError if not found - Result> Snapshot() const; + Result> Snapshot() const; /// \brief Get the snapshot of this table with the given id Result> 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 1de38fcba..1ce1a6e0d 100644 --- a/src/iceberg/transform.cc +++ b/src/iceberg/transform.cc @@ -21,7 +21,6 @@ #include #include -#include #include "iceberg/transform_function.h" #include "iceberg/type.h"