forked from hyrise/hyrise
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Projection: Stop materializing forwarded columns (hyrise#2247)
Up to now, whenever a Projection SELECT a, a+1 FROM t emitted a newly generate column (here: a+1), it also materialized all columns that it forwarded (here: a). The reason for that is that we do not allow ValueSegments and ReferenceSegments to be mixed within one table. With this PR, we instead forward the ReferenceSegments and create new ReferenceSegments for the newly generated columns. These point to a new, temporary table. Because we use the EntireChunkPosList, this virtually causes no overhead. Also does a minor improvement to segment_iterate which causes a segment that is iterated on using an EntireChunkPosLists to use the sequential iterator, not the random access one.
- Loading branch information
Showing
4 changed files
with
139 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.