-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RowKey-Agnostic ColumnSource Optimizations #3329
RowKey-Agnostic ColumnSource Optimizations #3329
Conversation
Port DH-12201: Create BooleanSingleValueSource Port DH-12310: SingleValue Column Sources Must Handle NULL_ROW_KEY
engine/table/src/main/java/io/deephaven/engine/table/impl/SortOperation.java
Outdated
Show resolved
Hide resolved
...engine/table/impl/by/IncrementalChunkedOperatorAggregationStateManagerOpenAddressedBase.java
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/sources/BooleanSingleValueSource.java
Show resolved
Hide resolved
.../main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableConstantCharSource.java
Outdated
Show resolved
Hide resolved
.../main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableConstantCharSource.java
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/sources/RedirectedColumnSource.java
Outdated
Show resolved
Hide resolved
...e/table/src/main/java/io/deephaven/engine/table/impl/sources/CharacterSingleValueSource.java
Outdated
Show resolved
Hide resolved
@Override | ||
public void fillPrevChunk(@NotNull FillContext context, | ||
@NotNull WritableChunk<? super Values> destination, @NotNull RowSequence rowSequence) { | ||
// We can only hold one value, fill the chunk with the value obtained from an arbitrarily valid rowKey |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question, except prev
, although at least prev has logic you might want to avoid replicating.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed up the comment - but yeah, it feels easier to maintain to not duplicate
...e/table/src/main/java/io/deephaven/engine/table/impl/sources/CharacterSingleValueSource.java
Outdated
Show resolved
Hide resolved
...e/table/src/main/java/io/deephaven/engine/table/impl/sources/CrossJoinRightColumnSource.java
Outdated
Show resolved
Hide resolved
…Operation.java Co-authored-by: Ryan Caudy <[email protected]>
There are some cases where we do not actually need to wrap column sources with redirections. These three sets of
ColumnSource
s are agnostic to the row key:SingleValue
,ImmutableConstant
, andNullValue
. Since all rows are identical for columns of these types we can avoid wrapping them in scenarios where we do not rely onNULL_ROW_KEY
mappings.We do need
NULL_ROW_KEY
mappings for naturalJoin, leftOuterJoin, and asOfJoin. It may make sense for me to back-out themaybeRedirect
calls in some of the hash table, and/or aggregation, implementations when we know that we've created column sources that will always be redirected.This change set includes some of the performance improvements suggested in #2425.
Includes the following DHE ports:
Nightlies ran here. They failed normal Check CI due to spotless. I've squashed the spotless fix into the commit already; and believe that we can use the CI run from regular PR actions to confirm they pass.