Skip to content

Commit fd253e1

Browse files
committed
fix: export FromArrowSchema for the bundle library
The Parquet reader in libiceberg_bundle now calls FromArrowSchema, which lives in libiceberg, so shared builds failed to link it. Mark it ICEBERG_EXPORT like ToArrowSchema. Signed-off-by: Vincent <1729065730@qq.com>
1 parent f4be233 commit fd253e1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/iceberg/schema_internal.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ ICEBERG_EXPORT Status ToArrowSchema(const Schema& schema, ArrowSchema* out);
4545
/// \param[in] schema The Arrow schema to convert.
4646
/// \param[in] schema_id The schema ID of the Iceberg schema.
4747
/// \return The Iceberg schema or an error if the conversion fails.
48-
Result<std::unique_ptr<Schema>> FromArrowSchema(const ArrowSchema& schema,
49-
std::optional<int32_t> schema_id);
48+
ICEBERG_EXPORT Result<std::unique_ptr<Schema>> FromArrowSchema(
49+
const ArrowSchema& schema, std::optional<int32_t> schema_id);
5050

5151
/// \brief Convert a struct type to an Iceberg schema.
5252
///

0 commit comments

Comments
 (0)