-
Notifications
You must be signed in to change notification settings - Fork 326
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.cross_join and Table.zip to In-Memory Table #4063
Conversation
c980026
to
02571b9
Compare
02571b9
to
5ebec5e
Compare
e9ac947
to
2751525
Compare
for (int i = 0; i < this.rowCount(); i++) { | ||
if (!matchedLeftRows.contains(i)) { | ||
leftRows.add(i); | ||
rightRows.add(Index.NOT_FOUND); | ||
leftUnmatchedBuilder.addRow(i, Index.NOT_FOUND); |
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.
could we not just add to resultsToKeep
?
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.
resultsToKeep
is an aggregator for JoinResults
that later will be merged.
The idea is that the JoinResult.Builder
is building an array of primitives (to avoid unnecessary boxing of integers).
I guess I could rewrite this to use a single JoinResult.Builder
for the three sub-operations, if you think it is worth it.
for (int i = 0; i < right.rowCount(); i++) { | ||
if (!matchedRightRows.contains(i)) { | ||
leftRows.add(Index.NOT_FOUND); | ||
rightRows.add(i); | ||
rightUnmatchedBuilder.addRow(Index.NOT_FOUND, i); |
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.
as above
std-bits/table/src/main/java/org/enso/table/data/table/join/CrossJoin.java
Show resolved
Hide resolved
…ficient approach for indices
2751525
to
a31b8c6
Compare
Pull Request Description
Implements https://www.pivotaltracker.com/story/show/184239059
Important Notes
Checklist
Please include the following checklist in your PR:
Scala,
Java,
and
Rust
style guides.
./run ide build
and./run ide watch
.