Skip to Content

Sorting values within the context of queue

Hi Experts,

sorting.jpg

From the screenshot, 1 and 3 the input queues with dynamic number of context inside. 2 is the sorted version of 1. Now we need 4 which should be sorted version of 3 based on 2. Something like sortby key.

When done with sortby key after removing context its gives random sort but not the desired.

Our requirement is without the context disturbances the values inside each context should be sorted based on already sorted context.

Tried HASHMAP, but as we have duplicates its not fulfilled.

Please suggest.

Regards,

Farooq

sorting.jpg (292.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Nov 19, 2018 at 09:45 AM

    Hi Faroog!

    Not sure if I completely understand your requirement, but it seems that if you use SortByKey on 3 using 1 as a source - you should get correct result.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 23, 2018 at 07:02 AM

    nullcontext.jpg

    Hi Evgeniy,

    Thanks for the response. Now the problem is there is a one context with totally suppressed in the queue containing 3 contexts.

    Cant able to remove that null context with any UDF or mapdefault or formatbyexample.

    Please have the look at the image and suggest.

    Thanks,

    Farooq.


    nullcontext.jpg (163.5 kB)
    Add comment
    10|10000 characters needed characters exceeded