Skip to content

Only apply arrow format env var for spark < 3 #2538

Closed
@nealrichardson

Description

@nealrichardson

For compatibility with older versions of Arrow used by Spark, we set this environment variable when writing arrow data: https://github.com/sparklyr/sparklyr/blob/master/R/core_arrow.R#L3-L4

Spark 3.0 will include a bump of the Arrow version it uses (in Java) from 0.12.0 to 0.15.1 (apache/spark#26133). So with that Arrow version, we won't need this legacy format flag. (It shouldn't crash if we use the flag, but there was a reason for the format change in Arrow, and we should avoid legacy codepaths if we can.)

What this means is that we should move where that env var is set (temporarily or otherwise) to the appropriate place that know what Spark version it's communicating with. As it stands currently in core_arrow.R, the spark context isn't known.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions