-
Notifications
You must be signed in to change notification settings - Fork 39
docs: Add comments to clarify Distribution #147
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
base: main
Are you sure you want to change the base?
Conversation
|
CC: @feilong-liu @MBkkt |
mbasmanova
left a comment
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.
@oerling Thank you for adding these comments. Super helpful. Please, fix typos before landing.
| /// data at rest and workers for data in flight based on values of | ||
| /// special columns. We use the word partitioning to mean that where | ||
| /// a row of data at rest or in flight is found depends on a | ||
| /// function of one or more columns of the row. Hash partitioning nd |
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.
typo: partitioning nd -> partitioning and
| /// rows of a partition are the rows of a dataset for which the | ||
| /// partitioning function satisfy some criteria, e.g. has % number | ||
| /// of partitions == id of partition. The corresponding concept in | ||
| /// Hive, e.g. Presto or Spark is bucketing. the word partitioning |
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.
typo: the word -> The word
|
|
||
| /// Distribution of data. 'numPartitions' is 1 if the data is not partitioned. | ||
| /// There is copartitioning if the DistributionType is the same on both sides | ||
| /// There is copartitioning if the DistributionType iscompatible on both sides |
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.
typo: iscompatible -> is compatible
Should there be a function that takes 2 DistributionType's and returns true if they are compatible?
| ShuffleMode mode{ShuffleMode::kNone}; | ||
| int32_t numPartitions{1}; | ||
| LocusCP locus{nullptr}; | ||
| bool isGather{false}; |
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.
Would you document locus and isGather properties? Why do we need 'locus'?
| /// True if 'other' has the same ordering columns and order type. | ||
| bool isSameOrder(const Distribution& other) const; | ||
|
|
||
| /// makes a new Distribution where 'exprs' are replaced with the |
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.
typo: makes -> Makes
No description provided.