Skip to content

Conversation

@rodmeneses
Copy link
Contributor

@rodmeneses rodmeneses commented Aug 26, 2024

Steps:

git diff HEAD^ HEAD > /tmp/v1.19.patch
cat /tmp/v1.19.patch | sed "s/v1.19/v1.20/g" > /tmp/v1.20.patch
git apply -3 /tmp/v1.20.patch

all files came out cleanly

@github-actions github-actions bot added the flink label Aug 26, 2024
@stevenzwu stevenzwu changed the title Backporting IcebergSink V2 to Flink 1.20 Flink: Backport PR #10179 to Flink 1.20 for v2 sink Aug 26, 2024
@stevenzwu
Copy link
Contributor

Steps:

git diff HEAD^ HEAD > /tmp/v1.19.patch
cat /tmp/v1.19.patch | sed "s/v1.19/v1.20/g" > /tmp/v1.20.patch
git apply -3 /tmp/v1.20.patch

all files came out cleanly

That is a smart way to port the change. didn't know this before

@rodmeneses
Copy link
Contributor Author

Steps:

git diff HEAD^ HEAD > /tmp/v1.19.patch
cat /tmp/v1.19.patch | sed "s/v1.19/v1.20/g" > /tmp/v1.20.patch
git apply -3 /tmp/v1.20.patch

all files came out cleanly

That is a smart way to port the change. didn't know this before

Credits to @pvary who taught me this

@stevenzwu
Copy link
Contributor

apply cmd used three-way merge for conflict.

just to be safe, can you also run the diff and make sure diffs are not related to your change?

git diff --no-index flink/v1.19/flink/src/main/java/org/apache/iceberg/flink/sink flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/sink

git diff --no-index flink/v1.19/flink/src/test/java/org/apache/iceberg/flink/sink flink/v1.20/flink/src/test/java/org/apache/iceberg/flink/sink

@rodmeneses
Copy link
Contributor Author

apply cmd used three-way merge for conflict.

just to be safe, can you also run the diff and make sure diffs are not related to your change?

git diff --no-index flink/v1.19/flink/src/main/java/org/apache/iceberg/flink/sink flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/sink

git diff --no-index flink/v1.19/flink/src/test/java/org/apache/iceberg/flink/sink flink/v1.20/flink/src/test/java/org/apache/iceberg/flink/sink

I did the diff and I can confirm that the difference are due to https://github.com/apache/iceberg/pull/10526/files being merged today and the changes are not ported to 1.20
The most common diff was that there's a new FlinkWriteResult class that is now being used instead of WriteResult

@stevenzwu stevenzwu merged commit e6f8ab9 into apache:main Aug 26, 2024
zachdisc pushed a commit to zachdisc/iceberg that referenced this pull request Dec 23, 2024
czy006 pushed a commit to czy006/iceberg that referenced this pull request Apr 2, 2025
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.

2 participants