-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 Docs and Examples and helper methods to PhysicalSortExpr
#12589
Conversation
nulls_first: true, | ||
}, | ||
}, | ||
PhysicalSortExpr::new_default(physical_col("string_col", &schema).unwrap()) |
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.
This shows what I would like to be able to do
@@ -30,6 +30,51 @@ use datafusion_common::Result; | |||
use datafusion_expr_common::columnar_value::ColumnarValue; | |||
|
|||
/// Represents Sort operation for a column in a RecordBatch | |||
/// | |||
/// Example: |
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.
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.
lgtm thanks @alamb
Thanks for the quick review @comphead |
Which issue does this PR close?
Part of #12446
Closes #.
Rationale for this change
Basically while working on #12562 I got annoyed at the lack of documentation and display implementations as well as how award it was to create
PhysicalSortExprs
.What changes are included in this PR?
Are these changes tested?
Yes, by CI and doc tests
Are there any user-facing changes?
Better docs, easier to use APIs.
No API changes