Skip to content

Conversation

@nastra
Copy link
Contributor

@nastra nastra commented Nov 8, 2022

fixes #6144

@github-actions github-actions bot added the build label Nov 8, 2022
@nastra nastra changed the title Build: Enable revapi on core/parquet/orc/common modules Build: Enable revapi on core/parquet/orc/common/data modules Nov 8, 2022
@gaborkaszab gaborkaszab added this to the Iceberg 1.1.0 Release milestone Nov 9, 2022
@nastra nastra force-pushed the revapi-on-other-modules branch from ad0f5b7 to 2b7aeaa Compare November 9, 2022 08:20
@github-actions github-actions bot added the core label Nov 9, 2022
* Snapshot)}.
*/
@Deprecated
public void validate(TableMetadata currentMetadata) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we need to add separate Deprecations for validate() and apply here and in a few other places, because their visibility has been public and not protected (as it is defined in SnapshotProducer)

@nastra
Copy link
Contributor Author

nastra commented Nov 9, 2022

I've also created #6155 to remove all of those deprecated methods once 1.1.0 has been released

@nastra nastra force-pushed the revapi-on-other-modules branch 3 times, most recently from a199e5a to bbf1731 Compare November 9, 2022 17:23
@nastra nastra requested a review from rdblue November 9, 2022 17:24
@nastra nastra changed the title Build: Enable revapi on core/parquet/orc/common/data modules Build: Enable revapi on core/parquet/orc/common/data modules & fix API breaks Nov 9, 2022
justification: "new API method"
- code: "java.method.addedToInterface"
new: "method org.apache.iceberg.TableScan org.apache.iceberg.TableScan::useRef(java.lang.String)"
justification: "Adding table scan APIs to support scanning from refs"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a default implementation that throws an exception? That way we avoid a linker error and can signal that the implementation just doesn't support this configuration method.

Copy link
Contributor Author

@nastra nastra Nov 10, 2022

Choose a reason for hiding this comment

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

done, but this is something that was already shipped with 0.14.0 btw

justification: "Adding table scan APIs to support scanning from refs"
- code: "java.method.addedToInterface"
new: "method org.apache.iceberg.actions.MigrateTable org.apache.iceberg.actions.MigrateTable::dropBackup()"
justification: "Adding new functionality to allow for dropping backup table"
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here, we should add a default implementation that throws an exception to avoid needing to suppress this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done, but this is something that was already shipped with 0.14.0 btw

*/
@Deprecated
@Override
public <T extends RESTResponse> T delete(
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to deprecate this? It seems like a reasonable thing to just keep it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have removed the deprecation for now, but I would still consider deprecating it. We have 4 different delete methods in RESTClient. I think just keeping the one with queryParams would be ok

@github-actions github-actions bot added the API label Nov 10, 2022
@nastra nastra force-pushed the revapi-on-other-modules branch 2 times, most recently from eb51a61 to 087ff88 Compare November 10, 2022 08:29
@nastra nastra requested a review from rdblue November 11, 2022 14:36
@nastra nastra force-pushed the revapi-on-other-modules branch from 087ff88 to ef8dca7 Compare November 14, 2022 18:14
@nastra nastra force-pushed the revapi-on-other-modules branch from ef8dca7 to 09b9435 Compare November 14, 2022 18:15
@rdblue rdblue merged commit f8aa513 into apache:master Nov 15, 2022
@rdblue
Copy link
Contributor

rdblue commented Nov 15, 2022

Thanks, @nastra! Really great to have this in.

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.

Enable revapi on iceberg-core / iceberg-common / iceberg-parquet / iceberg-orc / iceberg-data

5 participants