Skip to content

Conversation

@pan3793
Copy link
Member

@pan3793 pan3793 commented Dec 17, 2024

Adapt to Spark 3.5.4, see more details at SPARK-50235, SPARK-50463

@github-actions github-actions bot added the spark label Dec 17, 2024
@pan3793 pan3793 mentioned this pull request Dec 17, 2024

// If a column vector is writable or constant, it should override this method and do nothing.
// See more details at SPARK-50235, SPARK-50463 (Fixed in Spark 3.5.4)
public void closeIfFreeable() {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should probably have an @Overrideand the comment can go inside the method

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we cannot use @Override until we upgrade to Spark 3.5.4.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, but I don't think there's any value in adding this method without actually being on Spark 3.5.4. Does that mean you're also upgrading to 3.5.4 as part of this PR (once it's out)?

Copy link

@LuciferYang LuciferYang Dec 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#11731 (comment)

image

not sure if @pan3793 misunderstood @Fokko 's meaning

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I misunderstood that it requires Spark 3.5.4 😨

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

w/ or w/o @Override won't cause any functional difference.

do you guys want to wait for Spark 3.5.4 to pass the vote, or release Iceberg 1.7.2 ASAP?

Copy link
Member Author

@pan3793 pan3793 Dec 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there's any value in adding this method without actually being on Spark 3.5.4.

@nastra To not surprise users, I suppose iceberg-spark-runtime-3.5_2.12-1.7.2.jar should work for Spark 3.5.x(unfortunately, it's not true for Spark 3.5.3 due to another issue), that means, no matter which version it is built against, it's binary compatible with a serial of versions of Spark 3.5.

In short, the value of this change is, to make the output iceberg-spark-runtime-3.5_2.12-<v>.jar built against Spark 3.5.2, to be compatible with Spark 3.5.4

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should probably wait until 3.5.4 is officially out

@pan3793
Copy link
Member Author

pan3793 commented Dec 20, 2024

Spark 3.5.4 is out, close and in favor #11731

@pan3793 pan3793 closed this Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants