String sql = "CREATE TABLE t1 (column1, column2, column3) AS (SELECT c1, c2, c3 FROM t2) WITH NO DATA";
createTableAsColumnGenerateAIS();
StatementNode stmt = parser.parseStatement(sql);
assertTrue (stmt instanceof CreateTableNode);
List<String> columnNames = Arrays.asList("c1", "c2", "c3");
DataTypeDescriptor d = new DataTypeDescriptor(TypeId.INTEGER_ID, false);
List<DataTypeDescriptor> descriptors = Arrays.asList(d,d,d);
TableDDL.createTable(ddlFunctions, null, DEFAULT_SCHEMA, (CreateTableNode)stmt, null, descriptors ,columnNames, null);
}