KX Community

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

Home Forums kdb+ Strange data type prevents table operation on what looks like a table Re: Strange data type prevents table operation on what looks like a table

  • roryk

    Member
    February 15, 2024 at 12:00 am
    Dropping into k can be useful to see the representation.
    Tab is
    
    +`time`col1`col2!(times;(`col11`col12!1 3;`col11`col12!5 33);(`col11`col12!1 3;`col11`col12!5 33))

    What’s interesting is that

    exec col1 from tab

    then produces

    (`col11`col12!1 3;`col11`col12!5 33)

     

    But pasting this into the repl gives back a table,

    +`col11`col12!(1 5;3 33)

    So it seems like there’s some automatic table conversion that’s not happening in exec, that does happen in other cases. Interesting! Not much of an answer, but might help to find one.