KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ .z.pd function throwing error for non unique handles Reply To: .z.pd function throwing error for non unique handles

  • sujoy

    Member
    June 16, 2024 at 3:26 am

    Your function is using peach and setting -s -2, it is expecting handles on .z.pd, which is blank and hence failing.

    Start your process

    q -s 2

    q).z.pd:u#int$()

    q).z.pd

    u#int$()

    q){x+til 2} peach til 2

    0 1

    1 2

    q)\s -2

    q){x+til 2} peach til 2

    '.z.pd - expected unique vector of int handles

    [0] {x+til 10} peach til 10

    ^

    q))