KX Community

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

Home Forums kdb+ Why do we use sel[x] here in u.q, could we not have just used x? Re: Why do we use sel[x] here in u.q, could we not have just used x?

  • pmallon

    Member
    March 17, 2022 at 12:00 am

    Hi,

    The sel[x]w 1 , call is the same as sel[x;w 1].  So, y =w 1, which will be a list of symbols or ` if no filtering on syms is to be applied.
    Then within sel function, filtering is applied if y is not equal to `  with the select from x where sym in y.

    Omitting sel from the pub function would remove this functionality to subscribe to a subset of syms.

    Let me know if this helps or not.

    Patrick