Skip to content

Conversation

@dimas-b
Copy link
Contributor

@dimas-b dimas-b commented Mar 10, 2025

Following up on #1131:

  • Fix annotations in PolarisEntityManager

  • Add unit tests for running without EntityCache

Following up on apache#1131:

* Fix annotations in `PolarisEntityManager`

* Add unit tests for running without `EntityCache`
Comment on lines +33 to +35
protected EntityCache createEntityCache(PolarisMetaStoreManager metaStoreManager) {
return null;
}
Copy link
Contributor

@eric-maynard eric-maynard Mar 10, 2025

Choose a reason for hiding this comment

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

Non-blocking comment: is using null for this not existing a best practice? In Spark, you would much more commonly see Option used but that's scala.

We already use null like this in many places throughout Polaris, so even if we decide to make a change this PR can go ahead as-is

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'm open to using Optional if we have a consensus.

This specific change is just a cleanup effort to align annotations and tests with existing behaviour :)

@github-project-automation github-project-automation bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Mar 11, 2025
@dimas-b dimas-b merged commit cbd8ad4 into apache:main Mar 11, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Ready to merge to Done in Basic Kanban Board Mar 11, 2025
@dimas-b dimas-b deleted the null-cache branch March 11, 2025 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants