[
https://issues.apache.org/jira/browse/TINKERPOP-1888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16425631#comment-16425631
]
ASF GitHub Bot commented on TINKERPOP-1888:
-------------------------------------------
Github user robertdale commented on a diff in the pull request:
https://github.com/apache/tinkerpop/pull/829#discussion_r179166002
--- Diff: docs/src/reference/the-traversal.asciidoc ---
@@ -1471,16 +1471,17 @@
link:++http://tinkerpop.apache.org/javadocs/x.y.z/core/org/apache/tinkerpop/grem
[[max-step]]
=== Max Step
-The `max()`-step (*map*) operates on a stream of numbers and determines
which is the largest number in the stream.
+The `max()`-step (*map*) operates on a stream of comparable objects and
determines which is the largest object in the stream.
--- End diff --
~~largest object~~ last object according to its natural sort order
> Extend max and min to all Comparable properties, not just Numbers
> -----------------------------------------------------------------
>
> Key: TINKERPOP-1888
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1888
> Project: TinkerPop
> Issue Type: Improvement
> Components: process
> Affects Versions: 3.2.7
> Reporter: Philip Graff
> Assignee: Daniel Kuppitz
> Priority: Major
> Labels: breaking
>
> Currently, min() and max() only operate on properties that extend Number.
> However, these should be able to be applied to anything which implements
> Comparable as they are well-defined for those, too. Other steps like mean()
> and sum() should stay just for Numbers.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)