Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Memory Group By - sorted output

  1. #1
    Join Date
    Apr 2007
    Posts
    2,010

    Default Memory Group By - sorted output

    Hi,

    Is the output of the Memory Group By step guaranteed to be sorted?

    i.e. if we want sorted stream later on, can we use this step? or should we always use sort and group separate steps?

    http://wiki.pentaho.com/display/EAI/Memory+Group+by

    Dan

  2. #2
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    Use a Sort Rows / Group By combo, if you need the rows sorted by the group keys.
    The aggregates are stored in a HashMap and retrieved via iterator - no particular order guaranteed.
    So long, and thanks for all the fish.

  3. #3
    Join Date
    Apr 2007
    Posts
    2,010

    Default

    OK just as I suspected, thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.