Skip to content

Conversation

@lidavidm
Copy link
Member

@lidavidm lidavidm commented Aug 5, 2021

This adds a section about hash aggregates. Also, adds Kleene logic to the hash any/all kernels.

@lidavidm
Copy link
Member Author

lidavidm commented Aug 5, 2021

image

@github-actions
Copy link

github-actions bot commented Aug 5, 2021

@lidavidm lidavidm force-pushed the arrow-13311 branch 2 times, most recently from 5e8e39a to fd03cc7 Compare August 10, 2021 17:04
@ianmcook
Copy link
Member

Thanks for doing this @lidavidm!

Could you rebase to fix the conflict then request a review? Thanks!

Copy link
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

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

Thank you very much! Just a couple comments/questions.

@lidavidm
Copy link
Member Author

I added an example and reworded things to talk about grouped aggregations, since this is part of the User Guide:

image

@lidavidm
Copy link
Member Author

Updated wording/explanation of "hash_":

image

@pitrou
Copy link
Member

pitrou commented Aug 18, 2021

I pushed a number of minor changes. @nealrichardson @ianmcook Can you give this the final go when you're fine with the changes?

lidavidm and others added 3 commits August 18, 2021 11:19
Co-authored-by: Ian Cook <ianmcook@gmail.com>
Co-authored-by: Ian Cook <ianmcook@gmail.com>
Co-authored-by: Ian Cook <ianmcook@gmail.com>
Copy link
Member

@ianmcook ianmcook left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks David and Antoine

Comment on lines 294 to 296
| hash_all | Unary | Boolean | Int64 | :struct:`ScalarAggregateOptions` | \(1) |
+---------------+-------+-------------+----------------+----------------------------------+-------+
| hash_any | Unary | Any | Int64 | :struct:`ScalarAggregateOptions` | \(1) |
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
| hash_all | Unary | Boolean | Int64 | :struct:`ScalarAggregateOptions` | \(1) |
+---------------+-------+-------------+----------------+----------------------------------+-------+
| hash_any | Unary | Any | Int64 | :struct:`ScalarAggregateOptions` | \(1) |
| hash_all | Unary | Boolean | Boolean | :struct:`ScalarAggregateOptions` | \(1) |
+---------------+-------+-------------+----------------+----------------------------------+-------+
| hash_any | Unary | Boolean | Boolean | :struct:`ScalarAggregateOptions` | \(1) |

?

At least, the non-hash versions of any/all only work on boolean input, and return booleans (didn't check for the hashed version)

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah you're right, I probably forgot to fix it up after copy-paste. I've fixed these rows (+ hash_count).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants