toColumns with a table