Skip to content

Error message if the dimension table in memory hasn't been populated#8505

Merged
richardstartin merged 2 commits intoapache:masterfrom
mneedham:dimension-table-not-loaded
Apr 11, 2022
Merged

Error message if the dimension table in memory hasn't been populated#8505
richardstartin merged 2 commits intoapache:masterfrom
mneedham:dimension-table-not-loaded

Conversation

@mneedham
Copy link
Contributor

There's a scenario where the Pinot Server previously downloaded the segment for a dimension table and is then restarted, which means the addSegment flow doesn't get called.

This means that the in-memory DimensionTable is empty and the lookupJoin function always returns null values. I'm not sure what the proper solution for solving that problem is - I guess the user could delete the segment and re-download it?

But this PR doesn't address that - instead, it throws an exception if you try to do a lookup join when the in-memory dimensions table is empty.

Copy link
Member

@richardstartin richardstartin left a comment

Choose a reason for hiding this comment

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

👍

@richardstartin richardstartin merged commit 436e8ee into apache:master Apr 11, 2022
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