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

Add Table.expand_to_rows to allow flattening vector and array values in table #8042

Merged
merged 47 commits into from
Oct 13, 2023

Conversation

GregoryTravis
Copy link
Contributor

@GregoryTravis GregoryTravis commented Oct 12, 2023

Pull Request Description

Important Notes

Also includes a fix for a reallocation bug in InferredBuilder.

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • All code has been tested:
    • Unit tests have been written where possible.
    • If GUI codebase was changed, the GUI was tested when built using ./run ide build.

@GregoryTravis GregoryTravis marked this pull request as ready for review October 12, 2023 16:45
@GregoryTravis GregoryTravis added CI: Clean build required CI runners will be cleaned before and after this PR is built. and removed CI: Clean build required CI runners will be cleaned before and after this PR is built. labels Oct 12, 2023
Copy link
Member

@jdunkerley jdunkerley left a comment

Choose a reason for hiding this comment

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

Looks great.

Copy link
Member

@radeusgd radeusgd left a comment

Choose a reason for hiding this comment

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

Looks great!

Ideally I'd suggest two changes before merging:

  1. Change the List conversion to avoid the unnecessarily costly O(N^2) traversal in favor of just re-using Vector logic.
  2. Add a test for rows disappearing due to [] being expanded - I did not see a test for that.

@GregoryTravis GregoryTravis added the CI: Ready to merge This PR is eligible for automatic merge label Oct 13, 2023
@GregoryTravis GregoryTravis added the CI: Clean build required CI runners will be cleaned before and after this PR is built. label Oct 13, 2023
@mergify mergify bot merged commit f18d132 into develop Oct 13, 2023
@mergify mergify bot deleted the wip/gmt/7959-etr branch October 13, 2023 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: Clean build required CI runners will be cleaned before and after this PR is built. CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Table.expand_to_rows to allow flattening vector and array values in table.
3 participants