Forum Replies Created

  • cathan

    Member
    March 19, 2024 at 11:01 am in reply to: Five easy pieces #4: Little Six

    How about:

    sest:{[i] stanza:raze ,:[;” “]{x[5 0 4 1 3 2]}[5;i]; envoi:” “sv’ (i[0 1]; i[2 3]; i[4 5]); stanza,envoi}

  • cathan

    Member
    March 19, 2024 at 11:01 am in reply to: Five easy pieces #4: Little Six

    Hmm, perhaps this is more what you had in mind…

     

    sest:{(raze @[;5 0 4 1 3 2][x],:” “),” “sv’ 2 cut x}

     

    Edit: Whoops, meant to reply to above.

     

  • cathan

    Member
    March 11, 2022 at 12:00 am in reply to: Save creating 3 files

    From https://code.kx.com/q4m3/14_Introduction_to_Kdb%2B/#1423-splayed-tables-with-nested-columns :

    When you splay a table with compound columns, q creates not one but two files for each compound column. … If you examine these files you will discover that the sharp file contains the binary data of the original list in flattened form and the non-sharp file is a serialized q list of integers representing the lengths of each sublist of the original list.

    In this case, I think your column is doubly compounded which creates both a ot# and ot## file. As the other answerer says, you should be able to use get on the “non-sharped” file just fine.