Skip to content

Commit

Permalink
branch-2.1: [fix](ctas) fix wrong resultType of column typeDef apache…
Browse files Browse the repository at this point in the history
…#43828 (apache#44985)

Cherry-picked from apache#43828

Co-authored-by: TsukiokaKogane <[email protected]>
  • Loading branch information
github-actions[bot] and TsukiokaKogane authored Dec 4, 2024
1 parent c4bd0e8 commit a8f36a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,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 a8f36a4

Please sign in to comment.