A query that selects * can be problematic, in that it will change the columns actually selected if the underlying table gets new columns. This causes inefficiency, but doesn't break kdbgen, which selects from the result row by name. If possible, translate queries to expand * at compile time. And also, see if selecting by result row index would be more efficient.