A maximum of 2047 columns are allowed in a database table for analytic functions. These columns include the feature columns, response columns, id columns, partitioning/grouping, and ordering columns. Some functions have additional restrictions on the maximum allowed number of columns, which are listed in the function description.