TsukiokaKogane commented on code in PR #43828: URL: https://github.com/apache/doris/pull/43828#discussion_r1865753426
########## fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java: ########## @@ -1405,7 +1405,7 @@ public void createTableAsSelect(CreateTableAsSelectStmt stmt) throws DdlExceptio // we change it to tinyint nullable. typeDef = TypeDef.create(PrimitiveType.TINYINT); } else { - typeDef = new TypeDef(resultExpr.getType()); + typeDef = new TypeDef(resultType); Review Comment: I think there are already cases in regression test, I found this bug when I dealing with 1.2.8 regression test pipeline -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org