throw an error if no columns have been passed to index creation