morrySnow commented on code in PR #43828: URL: https://github.com/apache/doris/pull/43828#discussion_r1865735843
########## 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: could u add a test case? -- 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