Skip to content

[R] Compilation fails when Parquet support is disabled #49129

@IsabelParedes

Description

@IsabelParedes

Describe the bug, including details regarding any error messages, version, and platform.

When building the R bindings with Parquet support disabled (ARROW_R_WITH_PARQUET not defined), compilation fails with errors about undeclared 'parquet' identifiers in arrowExports.cpp.

The issue occurs because Parquet-related code in dataset.cpp and arrowExports.cpp lacks proper preprocessor guards. Specifically:

  1. In arrowExports.cpp (line ~1871), the function declaration for dataset___ParquetFileWriteOptions__update uses parquet::WriterProperties and parquet::ArrowWriterProperties types without checking if ARROW_R_WITH_PARQUET is defined.

  2. In dataset.cpp, Parquet-related includes and function implementations are not guarded by ARROW_R_WITH_PARQUET checks.

Compilation error:

arrowExports.cpp:1871:131: error: use of undeclared identifier 'parquet'

Version: 23.0.0
Platform: Linux

Component(s)

R

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions