Skip to content

Conversation

@kbendick
Copy link
Contributor

@kbendick kbendick commented Oct 31, 2021

This includes the last round of cherry-picks for the 0.12.1 rc0.

It is a continuation of #3402 and #3429.

I will marked the things I needed to change, but mostly it was just updating files as we did not backport the project structural reorganization for multiple spark versions by path.

The only PR cherry-picked that wasn't 100% clean was #3338 Hive: Fix Catalogs.hiveCatalog method for default catalogs. But even that one, the differences between the two were exactly the same, it just wasn't considered clean as there were PRs prior to it that weren't grabbed but they didn't affect the parts we care about (just the line numbers).

Otherwise, everything cherry-picked cleanly, except for PRs that came after the structural reorganization which I changed to the new structure but everything was the same.

testCompile project(path: ':iceberg-spark', configuration: 'testArtifacts')
testCompile project(path: ':iceberg-spark3', configuration: 'testArtifacts')

testCompile "org.apache.avro:avro"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the original PR #3273, this was in spark/v3.0/build.gradle. But we're not including the structural refactor in the point release.

Additionally, this was testImplementation. Given that the above dependencies were also changed to testImplementation, I chose to be consistent and use testCompile.

This should improve performance by allocating the correct size directly rather than reallocating later.
if (catalogType != null) {
return CatalogUtil.ICEBERG_CATALOG_TYPE_HIVE.equalsIgnoreCase(catalogType);
}
return getCatalogProperties(conf, catalogName, catalogType).get(CatalogProperties.CATALOG_IMPL) == null;
Copy link
Contributor Author

@kbendick kbendick Oct 31, 2021

Choose a reason for hiding this comment

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

This whole block didn't cherry-pick cleanly, because we didn't grab this PR: Core: Throw an exception if both catalog type and catalog-impl are set #3162

This is the PR from which these changes came from: Hive: Fix Catalogs.hiveCatalog method for default catalogs #3338.

I don't think we should grab #3162 as it could break existing user's presently valid configs, but very much open to discussion on that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed. Let's not port #3162.

@kbendick kbendick force-pushed the second-pass-0.12.1-cherry-picks branch from 5385df6 to 5850573 Compare November 1, 2021 00:44
@github-actions github-actions bot added the hive label Nov 1, 2021
@github-actions github-actions bot added the ORC label Nov 1, 2021
@kbendick kbendick force-pushed the second-pass-0.12.1-cherry-picks branch from 57d3980 to a50ab92 Compare November 1, 2021 03:32
@kbendick kbendick marked this pull request as ready for review November 1, 2021 18:11
@kbendick
Copy link
Contributor Author

kbendick commented Nov 1, 2021

This is ready for review @rdblue, but should come after #3429:

We don't necessarily need #3264 (Hive: Ensure tableLevelMutex is unlocked when uncommitted metadata de...), but I grabbed it as the test suite was taking quite some time to run. It also seems like a correctness fix so argubaly we should grab it.

It's also in both this PR and the Part 2 PR #3429, but wanted to leave the green tests before I rebased and removed it in case there's other changes needed. If that causes issue for rebase and merge, I can remove it.

@kbendick kbendick changed the title 0.12.1 Cherry-picks: Part 2 0.12.1 Cherry-picks: Part 3 Nov 1, 2021
@kbendick kbendick changed the title 0.12.1 Cherry-picks: Part 3 0.12.1 Cherry-Picks: Part 3 Nov 1, 2021
@rdblue rdblue merged commit ded95a5 into apache:0.12.x Nov 1, 2021
@rdblue
Copy link
Contributor

rdblue commented Nov 1, 2021

Looks great! Thanks, @kbendick. I merged this.

@kbendick kbendick deleted the second-pass-0.12.1-cherry-picks branch November 1, 2021 20:39
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.

4 participants