You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2024/01/16 09:11:02 UTC
(doris) branch master updated: [fix](Nereids) struct type coercion call wrong api (#30018)
This is an automated email from the ASF dual-hosted git repository.
morrysnow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new ff8e756fbbe [fix](Nereids) struct type coercion call wrong api (#30018)
ff8e756fbbe is described below
commit ff8e756fbbe7e9c63a905e6060497a381d2fc119
Author: morrySnow <10...@users.noreply.github.com>
AuthorDate: Tue Jan 16 17:10:54 2024 +0800
[fix](Nereids) struct type coercion call wrong api (#30018)
---
.../main/java/org/apache/doris/nereids/util/TypeCoercionUtils.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/util/TypeCoercionUtils.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/util/TypeCoercionUtils.java
index 63a6a552f6d..185bcc055b3 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/nereids/util/TypeCoercionUtils.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/util/TypeCoercionUtils.java
@@ -1120,7 +1120,7 @@ public class TypeCoercionUtils {
}
List<StructField> newFields = Lists.newArrayList();
for (int i = 0; i < leftFields.size(); i++) {
- Optional<DataType> newDataType = findCommonComplexTypeForComparison(leftFields.get(i).getDataType(),
+ Optional<DataType> newDataType = findWiderTypeForTwoForComparison(leftFields.get(i).getDataType(),
rightFields.get(i).getDataType(), intStringToString);
if (newDataType.isPresent()) {
newFields.add(leftFields.get(i).withDataType(newDataType.get()));
@@ -1348,7 +1348,7 @@ public class TypeCoercionUtils {
}
List<StructField> newFields = Lists.newArrayList();
for (int i = 0; i < leftFields.size(); i++) {
- Optional<DataType> newDataType = findCommonComplexTypeForCaseWhen(leftFields.get(i).getDataType(),
+ Optional<DataType> newDataType = findWiderTypeForTwoForCaseWhen(leftFields.get(i).getDataType(),
rightFields.get(i).getDataType());
if (newDataType.isPresent()) {
newFields.add(leftFields.get(i).withDataType(newDataType.get()));
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org