Skip to content
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

Fix bugs in moveColumns and renameColumns #5193

Merged
merged 8 commits into from
Feb 29, 2024

Conversation

nbauernfeind
Copy link
Member

@nbauernfeind nbauernfeind commented Feb 24, 2024

Fixes #4824.

There were a few odd behaviors of the existing replace columns implementation. This hopefully makes behavior well defined and consistent. I've also added tests; which apparently were quite useful in extracting bugs.

I've explicitly disallowed having multiple entries for the same source or the same destination. You can lose columns by renaming some column to an existing column name; it was easy to support and there may be legitimate uses.

Nightlies: https://github.com/nbauernfeind/deephaven-core/actions/runs/8085227568

jmao-denver
jmao-denver previously approved these changes Feb 26, 2024
Copy link
Contributor

@jmao-denver jmao-denver left a comment

Choose a reason for hiding this comment

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

The Python changes LGTM

chipkent
chipkent previously approved these changes Feb 26, 2024
Copy link
Member

@chipkent chipkent left a comment

Choose a reason for hiding this comment

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

Python LGTM

Copy link
Contributor

@malhotrashivam malhotrashivam left a comment

Choose a reason for hiding this comment

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

I really like the new Javadoc and the new tests, helped me understand the code much better. I wonder if we can add similar move+rename examples in the official docs as well since I couldn't find such an example there.

Suggested a small correction in javadoc at one place. Would defer the discussion about semantics to the experts.

Co-authored-by: Shivam Malhotra <malhotraashivam@gmail.com>
malhotrashivam
malhotrashivam previously approved these changes Feb 27, 2024
py/server/deephaven/table.py Outdated Show resolved Hide resolved
py/server/deephaven/table.py Outdated Show resolved Hide resolved
py/server/deephaven/table.py Outdated Show resolved Hide resolved
py/server/deephaven/table.py Outdated Show resolved Hide resolved
Co-authored-by: Chip Kent <5250374+chipkent@users.noreply.github.com>
Copy link
Member

@rcaudy rcaudy left a comment

Choose a reason for hiding this comment

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

.

Copy link
Member

@rcaudy rcaudy left a comment

Choose a reason for hiding this comment

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

Don't hate me

@nbauernfeind nbauernfeind merged commit 9a9938b into deephaven:main Feb 29, 2024
19 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 29, 2024
@deephaven-internal
Copy link
Contributor

Labels indicate documentation is required. Issues for documentation have been opened:

Community: https://github.com/deephaven/deephaven.io/issues/3750

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working core Core development tasks DocumentationNeeded query engine ReleaseNotesNeeded Release notes are needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QueryTable#moveColumns(int, String...) May Drop Columns By Accident
6 participants