v.20.11Improvement
Allow Column Specification in CREATE TABLE AS table_function Query
Allow explicitly specify columns list in CREATE TABLE table AS table_function(...) query. Fixes #9249 Fixes #14214. #14295 (tavplubix).Why it matters
This feature addresses issues where users could not define a custom column list when creating a table from a table function. It enables more precise schema control and fixes related problems reported in issues #9249 and #14214.How to use it
When usingCREATE TABLE with AS table_function(...), specify the desired columns explicitly by providing a column list after the table name, for example:CREATE TABLE my_table (col1 Int32, col2 String) AS some_table_function(...)