-
Notifications
You must be signed in to change notification settings - Fork 81
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
feat: DH-18778: Add rebase method to TreeTable and RollupTable in support of ACLs. #6666
base: main
Are you sure you want to change the base?
Conversation
…f ACL application.
engine/test-utils/src/main/java/io/deephaven/engine/testutil/HierarchicalTableTestTools.java
Show resolved
Hide resolved
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.
Will run coverage on the final product.
engine/api/src/main/java/io/deephaven/engine/table/hierarchical/RollupTable.java
Outdated
Show resolved
Hide resolved
engine/api/src/main/java/io/deephaven/engine/table/hierarchical/TreeTable.java
Outdated
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/hierarchical/RollupTableImpl.java
Outdated
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/hierarchical/RollupTableImpl.java
Outdated
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/hierarchical/RollupTableImpl.java
Outdated
Show resolved
Hide resolved
@@ -222,6 +222,28 @@ protected TreeTableImpl copy() { | |||
parentIdentifierColumn, nodeFilterColumns, nodeOperations, availableColumnDefinitions); | |||
} | |||
|
|||
@Override | |||
public TreeTable rebase(@NotNull final Table newSource) { | |||
if (!newSource.getDefinition().equals(source.getDefinition())) { |
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.
We could make a case that we just need to have the parent and id columns present on newSource
. I guess we don't need to do that for the ACL case.
engine/table/src/main/java/io/deephaven/engine/table/impl/hierarchical/TreeTableImpl.java
Outdated
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/hierarchical/TreeTableImpl.java
Outdated
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/hierarchical/TreeTableImpl.java
Outdated
Show resolved
Hide resolved
engine/test-utils/src/main/java/io/deephaven/engine/testutil/HierarchicalTableTestTools.java
Show resolved
Hide resolved
…l/RollupTable.java Co-authored-by: Ryan Caudy <rcaudy@gmail.com>
…core into nightly/cpw/DH-18778
…archical/TreeTableImpl.java Co-authored-by: Ryan Caudy <rcaudy@gmail.com>
…archical/TreeTableImpl.java Co-authored-by: Ryan Caudy <rcaudy@gmail.com>
…core into nightly/cpw/DH-18778
} | ||
|
||
@Override | ||
public RollupTableImpl rebase(final Table newSource) { | ||
public RollupTableImpl rebase(final @NotNull Table newSource) { |
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.
public RollupTableImpl rebase(final @NotNull Table newSource) { | |
public RollupTableImpl rebase(@NotNull final Table newSource) { |
private static @NotNull RollupTableImpl makeRollupInternal(@NotNull final QueryTable source, | ||
@NotNull final Collection<? extends Aggregation> aggregations, |
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.
private static @NotNull RollupTableImpl makeRollupInternal(@NotNull final QueryTable source, | |
@NotNull final Collection<? extends Aggregation> aggregations, | |
private static @NotNull RollupTableImpl makeRollupInternal( | |
@NotNull final QueryTable source, | |
@NotNull final Collection<? extends Aggregation> aggregations, |
aggregatedNodeDefinition, aggregatedNodeOperations, | ||
constituentNodeDefinition, constituentNodeOperations, | ||
null, | ||
return makeRollupInternal(newSourceQueryTable, aggregations, includesConstituents, groupByColumns, |
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.
I believe you have lost some attributes you should be keeping with this change (specifically sortable columns and column descriptions, which aren't labeled as copyable for rollups, presumably because they get re-written by makeRollup
). I think you need to pass the new attribute map in. I see you did it the other way in TreeTableImpl
.
private static @NotNull TreeTableImpl makeTreeInternal(@NotNull final QueryTable source, | ||
@NotNull final ColumnName identifierColumn, |
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.
private static @NotNull TreeTableImpl makeTreeInternal(@NotNull final QueryTable source, | |
@NotNull final ColumnName identifierColumn, | |
private static @NotNull TreeTableImpl makeTreeInternal( | |
@NotNull final QueryTable source, | |
@NotNull final ColumnName identifierColumn, |
No description provided.