Jump to content
  • Using the Spotfire® Streaming Gather operator with a multi-field key


    Issue

    How do I use the Gather operator to gather on a more than one field? My unique key values are spread across more than one field in the input schemas.


    Solution

    Gather does not directly support multi-field keys.

    One way to work around this limitation is to create a key field in each input port's schema that is a tuple whose fields are all the fields that make up your multi-field key and then have that field be the Key field by which to gather tuples.

    gatherbymultifieldkeymapprops.jpg.39f37195618face1b14d71d2ee72d29e.jpg

    And the ABGather Gather Settings:

    gathermultiprops.jpg.619d56eb0309238462c5cdcbf488f2c8.jpg

    Attached as gatherbymultikeyfield.zip is a Spotfire® Streaming 7.5.1 Studio project that illustrates this idea.

    Attachments

    You can download attachments from resources.

    gatherbymultifieldkey.zip


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...