This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new a8f36a48134 branch-2.1: [fix](ctas) fix wrong resultType of column
typeDef #43828 (#44985)
a8f36a48134 is described below
commit a8f36a48134b5c9de4fd53969702a44ef9e88102
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Dec 4 22:10:11 2024 +0800
branch-2.1: [fix](ctas) fix wrong resultType of column typeDef #43828
(#44985)
Cherry-picked from #43828
Co-authored-by: TsukiokaKogane <[email protected]>
---
.../src/main/java/org/apache/doris/datasource/InternalCatalog.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
b/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
index 70a9cffe78d..f2f7eb7ebd2 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
@@ -1352,7 +1352,7 @@ public class InternalCatalog implements
CatalogIf<Database> {
// 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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]