Skip to content

Conversation

@nastra
Copy link
Contributor

@nastra nastra commented Nov 25, 2022

fixes #6155

@nastra nastra force-pushed the deprecations-for-1.2.0 branch 2 times, most recently from 7eefa7f to d7ab222 Compare November 28, 2022 08:29
* @deprecated since 1.0.0, will be removed in 1.1.0; use {@link #dataSequenceNumber()} instead.
*/
@Deprecated
Long sequenceNumber();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@aokolnychyi could you please review all places that adjust sequenceNumber -> dataSequenceNumber?

private Status status = Status.EXISTING;
private Long snapshotId = null;
private Long dataSequenceNumber = null;
private Long sequenceNumber = null;
Copy link
Contributor

Choose a reason for hiding this comment

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

@aokolnychyi, can you take a look at these changes?

*/
@Deprecated
@Override
public List<ManifestFile> apply(TableMetadata base) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why remove these? It doesn't seem like a big deal to keep the versions that default the parent snapshot to current.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is code that changed this method in #4926. We then restored+deprecated the old API in #6146 for one minor release and are removing it here now.
Let me know if we'd want to keep those methods, then we can just drop the Deprecated annotations from those

* Predicate, DeleteCounter)}.
*/
@Deprecated
public static <T> CloseableIterable<T> filterDeleted(
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess this is okay? It doesn't seem bad to have a version that doesn't require a counter.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is functionality that was adjusted by #4588. We then re-introduced + deprecated the method in #6146 to not have breaking API changes. Also there's currently no place in the code that would use this, so it seems better to remove it?

.build(),
MetricsConfig.getDefault())) {
writer.addAll(rows);
try (ParquetWriter<InternalRow> writer =
Copy link
Contributor

Choose a reason for hiding this comment

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

Why were these changes needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was using the deprecated ParquetWriteAdapter class, so I started changing code that uses this class so that we can eventually remove ParquetWriteAdapter

@nastra nastra force-pushed the deprecations-for-1.2.0 branch from 6df8657 to 623b7aa Compare December 1, 2022 08:27
@github-actions github-actions bot removed the AWS label Dec 1, 2022
@aokolnychyi
Copy link
Contributor

I'll take a look at seq number related changes today.

/**
* @deprecated will be removed in 0.14.0, the cardinality check is always performed starting from
* 0.13.0.
* @deprecated will be removed once Spark 3.1 support is dropped, the cardinality check is always
Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense to me.

Copy link
Contributor

@aokolnychyi aokolnychyi left a comment

Choose a reason for hiding this comment

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

LGTM, I'd just remove two comments that no longer apply. Thanks, @nastra!

@nastra nastra force-pushed the deprecations-for-1.2.0 branch from 623b7aa to 48a9ade Compare December 2, 2022 08:23
@nastra nastra requested a review from rdblue December 2, 2022 08:24
@nastra nastra force-pushed the deprecations-for-1.2.0 branch from 48a9ade to 735eaf8 Compare December 9, 2022 13:00
@rdblue rdblue merged commit 5a9eb3c into apache:master Dec 18, 2022
@rdblue
Copy link
Contributor

rdblue commented Dec 18, 2022

Thanks, @nastra!

@nastra nastra deleted the deprecations-for-1.2.0 branch December 19, 2022 06:49
gaborkaszab pushed a commit to gaborkaszab/iceberg that referenced this pull request May 5, 2023
When dropping ManifestEntry.sequenceNumber in apache#6274, a new assert was
added to TableTestBase.validateManifests(). However, there was a same
assert already. Dropping one of them.
gaborkaszab pushed a commit to gaborkaszab/iceberg that referenced this pull request May 5, 2023
When dropping ManifestEntry.sequenceNumber in apache#6274, a new assert was
added to validateManifest() and validateDeleteManifest(). However,
there was a same assert already. Dropping one of them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove API deprecations for 1.2.0

3 participants