You can slice the "key1" row to get the columns that have "xyz" as the value for the first component in the column name. Check the docs in your client for how to do that.
Hope that helps. ----------------- Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com On 21/12/2011, at 3:04 PM, Maxim Potekhin wrote: > Let's say I have rows with composite columns Like > > ("key1", {('xyz', 'abc'): 'colval1'}, {('xyz', 'def'): 'colval2'}) > ("key2", {('ble', 'meh'): 'otherval'}) > > Is it possible to create a composite type index such that I can query on 'xyz' > and get the first two columns? > > Thanks > > Maxim >