Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Replace dictionary proxies with nested dictionaries 07/N #680

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

ienkovich
Copy link
Contributor

Avoid negative generation in dictionary proxy. There is no strong reason to create a proxy with a negative generation anyway. Non-zero generation on a proxy creation would allow us later to stop using negative indices for transient strings. Non-negative indices would allow deep nesting and let us treat proxy-encoded columns as regular dictionary-encoded columns.

@ienkovich ienkovich force-pushed the ienkovich/nested-dict-07 branch from aa365af to 391008c Compare September 28, 2023 17:37
: string_dict_(sd), generation_(generation) {}
: string_dict_(sd), generation_(generation) {
if (generation_ < 0) {
generation_ = static_cast<int64_t>(sd->storageEntryCount());
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you plan to forbid negative values later on?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it will be in the next patch.

@ienkovich ienkovich merged commit 03855db into main Sep 29, 2023
@ienkovich ienkovich deleted the ienkovich/nested-dict-07 branch September 29, 2023 17:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants