Skip to content

Commit

Permalink
[fix](ctas) fix wrong resultType of column typeDef (#43828)
Browse files Browse the repository at this point in the history
wrong resultType could lead to definition change of `Type.VARCHAR`
  • Loading branch information
TsukiokaKogane authored Dec 4, 2024
1 parent 06466c8 commit 04e58bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,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);
}
if (i == 0) {
// If this is the first column, because olap table does not support the first column to be
Expand Down

0 comments on commit 04e58bc

Please sign in to comment.