Skip to content

feat: DH-22379: add getColumnSource from ColumnDefinition#7932

Merged
devinrsmith merged 2 commits intodeephaven:mainfrom
devinrsmith:table-column-source-from-column-def
Apr 25, 2026
Merged

feat: DH-22379: add getColumnSource from ColumnDefinition#7932
devinrsmith merged 2 commits intodeephaven:mainfrom
devinrsmith:table-column-source-from-column-def

Conversation

@devinrsmith
Copy link
Copy Markdown
Member

No description provided.

@devinrsmith devinrsmith self-assigned this Apr 23, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 23, 2026

No docs changes detected for cafa2a9

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a Table.getColumnSource(ColumnDefinition) overload to simplify retrieving typed ColumnSources directly from a ColumnDefinition, and updates several internal call sites to use the new overload.

Changes:

  • Add Table.getColumnSource(ColumnDefinition) API and a TableDefinition.checkHasColumn(ColumnDefinition) convenience overload.
  • Implement the new getColumnSource(ColumnDefinition) in TableDefaults by delegating to the existing typed overload.
  • Refactor stream + hierarchical table implementations to call getColumnSource(cd) instead of plumbing name/type/componentType manually.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
engine/table/src/main/java/io/deephaven/stream/TableStreamPublisherImpl.java Switches column source retrieval to the new getColumnSource(ColumnDefinition) overload.
engine/table/src/main/java/io/deephaven/engine/table/impl/hierarchical/TreeTableImpl.java Uses the new overload when building chunk source arrays.
engine/table/src/main/java/io/deephaven/engine/table/impl/hierarchical/RollupTableImpl.java Uses the new overload for aggregated/constituent chunk sources.
engine/table/src/main/java/io/deephaven/engine/table/impl/TableDefaults.java Adds the default implementation for getColumnSource(ColumnDefinition).
engine/api/src/main/java/io/deephaven/engine/table/TableDefinition.java Adds checkHasColumn(ColumnDefinition) convenience method.
engine/api/src/main/java/io/deephaven/engine/table/Table.java Adds the new getColumnSource(ColumnDefinition) API and updates related Javadoc.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread engine/api/src/main/java/io/deephaven/engine/table/Table.java
Comment thread engine/api/src/main/java/io/deephaven/engine/table/TableDefinition.java Outdated
Comment thread engine/api/src/main/java/io/deephaven/engine/table/Table.java Outdated
Comment thread engine/api/src/main/java/io/deephaven/engine/table/Table.java Outdated
Comment thread engine/api/src/main/java/io/deephaven/engine/table/Table.java Outdated
@devinrsmith devinrsmith marked this pull request as ready for review April 23, 2026 22:17
@devinrsmith devinrsmith requested a review from rcaudy April 23, 2026 22:17
@devinrsmith devinrsmith merged commit f0b0041 into deephaven:main Apr 25, 2026
24 checks passed
@devinrsmith devinrsmith deleted the table-column-source-from-column-def branch April 25, 2026 03:29
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants