This is an automated email from the ASF dual-hosted git repository.
morrysnow pushed a commit to branch 2.0.1-rc04-patch
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/2.0.1-rc04-patch by this push:
new 3488f4b87e [fix](compile) fe ut could not compile
3488f4b87e is described below
commit 3488f4b87e3488907f9badb8b21ed582eb380349
Author: morrySnow <[email protected]>
AuthorDate: Mon Sep 11 16:00:01 2023 +0800
[fix](compile) fe ut could not compile
---
docs/en/docs/advanced/variables.md | 2 +-
docs/zh-CN/docs/advanced/variables.md | 2 +-
.../doris/nereids/types/AbstractDataTypeTest.java | 38 +++++++++++-----------
3 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/docs/en/docs/advanced/variables.md
b/docs/en/docs/advanced/variables.md
index 0b93902122..cd71e74483 100644
--- a/docs/en/docs/advanced/variables.md
+++ b/docs/en/docs/advanced/variables.md
@@ -1931,7 +1931,7 @@ TODO
Type: `String`
-Default: `Doris version doris-2.0.1-rc04-f1039057c8`
+Default: `Doris version doris-2.0.1-rc04-ce9b23e226`
Read Only: `true`
diff --git a/docs/zh-CN/docs/advanced/variables.md
b/docs/zh-CN/docs/advanced/variables.md
index caa6c00099..a415835b88 100644
--- a/docs/zh-CN/docs/advanced/variables.md
+++ b/docs/zh-CN/docs/advanced/variables.md
@@ -1930,7 +1930,7 @@ SELECT /*+ SET_VAR(query_timeout = 1,
enable_partition_cache=true) */ sleep(3);
类型:`String`
-默认值:`Doris version doris-2.0.1-rc04-f1039057c8`
+默认值:`Doris version doris-2.0.1-rc04-ce9b23e226`
只读变量:`true`
diff --git
a/fe/fe-core/src/test/java/org/apache/doris/nereids/types/AbstractDataTypeTest.java
b/fe/fe-core/src/test/java/org/apache/doris/nereids/types/AbstractDataTypeTest.java
index 776b80ec47..65dc22307f 100644
---
a/fe/fe-core/src/test/java/org/apache/doris/nereids/types/AbstractDataTypeTest.java
+++
b/fe/fe-core/src/test/java/org/apache/doris/nereids/types/AbstractDataTypeTest.java
@@ -42,7 +42,7 @@ public class AbstractDataTypeTest {
Assertions.assertTrue(dateType.acceptsType(DoubleType.INSTANCE));
int precision = Math.abs(new Random().nextInt() %
(DecimalV2Type.MAX_PRECISION - 1)) + 1;
int scale = Math.min(precision, Math.abs(new Random().nextInt() %
DecimalV2Type.MAX_SCALE));
- Assertions.assertTrue(dateType.acceptsType(new
DecimalV2Type(precision, scale)));
+
Assertions.assertTrue(dateType.acceptsType(DecimalV2Type.createDecimalV2Type(precision,
scale)));
Assertions.assertTrue(dateType.acceptsType(new CharType(new
Random().nextInt())));
Assertions.assertTrue(dateType.acceptsType(new VarcharType(new
Random().nextInt())));
Assertions.assertTrue(dateType.acceptsType(StringType.INSTANCE));
@@ -64,7 +64,7 @@ public class AbstractDataTypeTest {
Assertions.assertFalse(dateType.acceptsType(DoubleType.INSTANCE));
int precision = Math.abs(new Random().nextInt() %
(DecimalV2Type.MAX_PRECISION - 1)) + 1;
int scale = Math.min(precision, Math.abs(new Random().nextInt() %
DecimalV2Type.MAX_SCALE));
- Assertions.assertFalse(dateType.acceptsType(new
DecimalV2Type(precision, scale)));
+
Assertions.assertFalse(dateType.acceptsType(DecimalV2Type.createDecimalV2Type(precision,
scale)));
Assertions.assertFalse(dateType.acceptsType(new CharType(new
Random().nextInt())));
Assertions.assertFalse(dateType.acceptsType(new VarcharType(new
Random().nextInt())));
Assertions.assertFalse(dateType.acceptsType(StringType.INSTANCE));
@@ -86,7 +86,7 @@ public class AbstractDataTypeTest {
Assertions.assertFalse(dateType.acceptsType(DoubleType.INSTANCE));
int precision = Math.abs(new Random().nextInt() %
(DecimalV2Type.MAX_PRECISION - 1)) + 1;
int scale = Math.min(precision, Math.abs(new Random().nextInt() %
DecimalV2Type.MAX_SCALE));
- Assertions.assertFalse(dateType.acceptsType(new
DecimalV2Type(precision, scale)));
+
Assertions.assertFalse(dateType.acceptsType(DecimalV2Type.createDecimalV2Type(precision,
scale)));
Assertions.assertFalse(dateType.acceptsType(new CharType(new
Random().nextInt())));
Assertions.assertFalse(dateType.acceptsType(new VarcharType(new
Random().nextInt())));
Assertions.assertFalse(dateType.acceptsType(StringType.INSTANCE));
@@ -108,7 +108,7 @@ public class AbstractDataTypeTest {
Assertions.assertTrue(dataType.acceptsType(DoubleType.INSTANCE));
int precision = Math.abs(new Random().nextInt() %
(DecimalV2Type.MAX_PRECISION - 1)) + 1;
int scale = Math.min(precision, Math.abs(new Random().nextInt() %
DecimalV2Type.MAX_SCALE));
- Assertions.assertTrue(dataType.acceptsType(new
DecimalV2Type(precision, scale)));
+
Assertions.assertTrue(dataType.acceptsType(DecimalV2Type.createDecimalV2Type(precision,
scale)));
Assertions.assertFalse(dataType.acceptsType(new CharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(new VarcharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(StringType.INSTANCE));
@@ -130,7 +130,7 @@ public class AbstractDataTypeTest {
Assertions.assertFalse(dataType.acceptsType(DoubleType.INSTANCE));
int precision = Math.abs(new Random().nextInt() %
(DecimalV2Type.MAX_PRECISION - 1)) + 1;
int scale = Math.min(precision, Math.abs(new Random().nextInt() %
DecimalV2Type.MAX_SCALE));
- Assertions.assertFalse(dataType.acceptsType(new
DecimalV2Type(precision, scale)));
+
Assertions.assertFalse(dataType.acceptsType(DecimalV2Type.createDecimalV2Type(precision,
scale)));
Assertions.assertFalse(dataType.acceptsType(new CharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(new VarcharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(StringType.INSTANCE));
@@ -152,7 +152,7 @@ public class AbstractDataTypeTest {
Assertions.assertFalse(dataType.acceptsType(DoubleType.INSTANCE));
int precision = Math.abs(new Random().nextInt() %
(DecimalV2Type.MAX_PRECISION - 1)) + 1;
int scale = Math.min(precision, Math.abs(new Random().nextInt() %
DecimalV2Type.MAX_SCALE));
- Assertions.assertFalse(dataType.acceptsType(new
DecimalV2Type(precision, scale)));
+
Assertions.assertFalse(dataType.acceptsType(DecimalV2Type.createDecimalV2Type(precision,
scale)));
Assertions.assertFalse(dataType.acceptsType(new CharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(new VarcharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(StringType.INSTANCE));
@@ -174,7 +174,7 @@ public class AbstractDataTypeTest {
Assertions.assertFalse(dataType.acceptsType(DoubleType.INSTANCE));
int precision = Math.abs(new Random().nextInt() %
(DecimalV2Type.MAX_PRECISION - 1)) + 1;
int scale = Math.min(precision, Math.abs(new Random().nextInt() %
DecimalV2Type.MAX_SCALE));
- Assertions.assertFalse(dataType.acceptsType(new
DecimalV2Type(precision, scale)));
+
Assertions.assertFalse(dataType.acceptsType(DecimalV2Type.createDecimalV2Type(precision,
scale)));
Assertions.assertFalse(dataType.acceptsType(new CharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(new VarcharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(StringType.INSTANCE));
@@ -196,7 +196,7 @@ public class AbstractDataTypeTest {
Assertions.assertFalse(dataType.acceptsType(DoubleType.INSTANCE));
int precision = Math.abs(new Random().nextInt() %
(DecimalV2Type.MAX_PRECISION - 1)) + 1;
int scale = Math.min(precision, Math.abs(new Random().nextInt() %
DecimalV2Type.MAX_SCALE));
- Assertions.assertFalse(dataType.acceptsType(new
DecimalV2Type(precision, scale)));
+
Assertions.assertFalse(dataType.acceptsType(DecimalV2Type.createDecimalV2Type(precision,
scale)));
Assertions.assertFalse(dataType.acceptsType(new CharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(new VarcharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(StringType.INSTANCE));
@@ -218,7 +218,7 @@ public class AbstractDataTypeTest {
Assertions.assertFalse(dataType.acceptsType(DoubleType.INSTANCE));
int precision = Math.abs(new Random().nextInt() %
(DecimalV2Type.MAX_PRECISION - 1)) + 1;
int scale = Math.min(precision, Math.abs(new Random().nextInt() %
DecimalV2Type.MAX_SCALE));
- Assertions.assertFalse(dataType.acceptsType(new
DecimalV2Type(precision, scale)));
+
Assertions.assertFalse(dataType.acceptsType(DecimalV2Type.createDecimalV2Type(precision,
scale)));
Assertions.assertFalse(dataType.acceptsType(new CharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(new VarcharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(StringType.INSTANCE));
@@ -240,7 +240,7 @@ public class AbstractDataTypeTest {
Assertions.assertFalse(dataType.acceptsType(DoubleType.INSTANCE));
int precision = Math.abs(new Random().nextInt() %
(DecimalV2Type.MAX_PRECISION - 1)) + 1;
int scale = Math.min(precision, Math.abs(new Random().nextInt() %
DecimalV2Type.MAX_SCALE));
- Assertions.assertFalse(dataType.acceptsType(new
DecimalV2Type(precision, scale)));
+
Assertions.assertFalse(dataType.acceptsType(DecimalV2Type.createDecimalV2Type(precision,
scale)));
Assertions.assertFalse(dataType.acceptsType(new CharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(new VarcharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(StringType.INSTANCE));
@@ -262,7 +262,7 @@ public class AbstractDataTypeTest {
Assertions.assertTrue(dataType.acceptsType(DoubleType.INSTANCE));
int precision = Math.abs(new Random().nextInt() %
(DecimalV2Type.MAX_PRECISION - 1)) + 1;
int scale = Math.min(precision, Math.abs(new Random().nextInt() %
DecimalV2Type.MAX_SCALE));
- Assertions.assertTrue(dataType.acceptsType(new
DecimalV2Type(precision, scale)));
+
Assertions.assertTrue(dataType.acceptsType(DecimalV2Type.createDecimalV2Type(precision,
scale)));
Assertions.assertFalse(dataType.acceptsType(new CharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(new VarcharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(StringType.INSTANCE));
@@ -284,7 +284,7 @@ public class AbstractDataTypeTest {
Assertions.assertFalse(dataType.acceptsType(DoubleType.INSTANCE));
int precision = Math.abs(new Random().nextInt() %
(DecimalV2Type.MAX_PRECISION - 1)) + 1;
int scale = Math.min(precision, Math.abs(new Random().nextInt() %
DecimalV2Type.MAX_SCALE));
- Assertions.assertFalse(dataType.acceptsType(new
DecimalV2Type(precision, scale)));
+
Assertions.assertFalse(dataType.acceptsType(DecimalV2Type.createDecimalV2Type(precision,
scale)));
Assertions.assertFalse(dataType.acceptsType(new CharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(new VarcharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(StringType.INSTANCE));
@@ -306,7 +306,7 @@ public class AbstractDataTypeTest {
Assertions.assertTrue(dataType.acceptsType(DoubleType.INSTANCE));
int precision = Math.abs(new Random().nextInt() %
(DecimalV2Type.MAX_PRECISION - 1)) + 1;
int scale = Math.min(precision, Math.abs(new Random().nextInt() %
DecimalV2Type.MAX_SCALE));
- Assertions.assertFalse(dataType.acceptsType(new
DecimalV2Type(precision, scale)));
+
Assertions.assertFalse(dataType.acceptsType(DecimalV2Type.createDecimalV2Type(precision,
scale)));
Assertions.assertFalse(dataType.acceptsType(new CharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(new VarcharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(StringType.INSTANCE));
@@ -328,7 +328,7 @@ public class AbstractDataTypeTest {
Assertions.assertFalse(dataType.acceptsType(DoubleType.INSTANCE));
int precision = Math.abs(new Random().nextInt() %
(DecimalV2Type.MAX_PRECISION - 1)) + 1;
int scale = Math.min(precision, Math.abs(new Random().nextInt() %
DecimalV2Type.MAX_SCALE));
- Assertions.assertTrue(dataType.acceptsType(new
DecimalV2Type(precision, scale)));
+
Assertions.assertTrue(dataType.acceptsType(DecimalV2Type.createDecimalV2Type(precision,
scale)));
Assertions.assertFalse(dataType.acceptsType(new CharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(new VarcharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(StringType.INSTANCE));
@@ -350,7 +350,7 @@ public class AbstractDataTypeTest {
Assertions.assertFalse(dataType.acceptsType(DoubleType.INSTANCE));
int precision = Math.abs(new Random().nextInt() %
(DecimalV2Type.MAX_PRECISION - 1)) + 1;
int scale = Math.min(precision, Math.abs(new Random().nextInt() %
DecimalV2Type.MAX_SCALE));
- Assertions.assertFalse(dataType.acceptsType(new
DecimalV2Type(precision, scale)));
+
Assertions.assertFalse(dataType.acceptsType(DecimalV2Type.createDecimalV2Type(precision,
scale)));
Assertions.assertTrue(dataType.acceptsType(new CharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(new VarcharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(StringType.INSTANCE));
@@ -372,7 +372,7 @@ public class AbstractDataTypeTest {
Assertions.assertFalse(dataType.acceptsType(DoubleType.INSTANCE));
int precision = Math.abs(new Random().nextInt() %
(DecimalV2Type.MAX_PRECISION - 1)) + 1;
int scale = Math.min(precision, Math.abs(new Random().nextInt() %
DecimalV2Type.MAX_SCALE));
- Assertions.assertFalse(dataType.acceptsType(new
DecimalV2Type(precision, scale)));
+
Assertions.assertFalse(dataType.acceptsType(DecimalV2Type.createDecimalV2Type(precision,
scale)));
Assertions.assertFalse(dataType.acceptsType(new CharType(new
Random().nextInt())));
Assertions.assertTrue(dataType.acceptsType(new VarcharType(new
Random().nextInt())));
Assertions.assertTrue(dataType.acceptsType(StringType.INSTANCE));
@@ -394,7 +394,7 @@ public class AbstractDataTypeTest {
Assertions.assertFalse(dataType.acceptsType(DoubleType.INSTANCE));
int precision = Math.abs(new Random().nextInt() %
(DecimalV2Type.MAX_PRECISION - 1)) + 1;
int scale = Math.min(precision, Math.abs(new Random().nextInt() %
DecimalV2Type.MAX_SCALE));
- Assertions.assertFalse(dataType.acceptsType(new
DecimalV2Type(precision, scale)));
+
Assertions.assertFalse(dataType.acceptsType(DecimalV2Type.createDecimalV2Type(precision,
scale)));
Assertions.assertFalse(dataType.acceptsType(new CharType(new
Random().nextInt())));
Assertions.assertTrue(dataType.acceptsType(new VarcharType(new
Random().nextInt())));
Assertions.assertTrue(dataType.acceptsType(StringType.INSTANCE));
@@ -416,7 +416,7 @@ public class AbstractDataTypeTest {
Assertions.assertFalse(dataType.acceptsType(DoubleType.INSTANCE));
int precision = Math.abs(new Random().nextInt() %
(DecimalV2Type.MAX_PRECISION - 1)) + 1;
int scale = Math.min(precision, Math.abs(new Random().nextInt() %
DecimalV2Type.MAX_SCALE));
- Assertions.assertFalse(dataType.acceptsType(new
DecimalV2Type(precision, scale)));
+
Assertions.assertFalse(dataType.acceptsType(DecimalV2Type.createDecimalV2Type(precision,
scale)));
Assertions.assertFalse(dataType.acceptsType(new CharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(new VarcharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(StringType.INSTANCE));
@@ -438,7 +438,7 @@ public class AbstractDataTypeTest {
Assertions.assertFalse(dataType.acceptsType(DoubleType.INSTANCE));
int precision = Math.abs(new Random().nextInt() %
(DecimalV2Type.MAX_PRECISION - 1)) + 1;
int scale = Math.min(precision, Math.abs(new Random().nextInt() %
DecimalV2Type.MAX_SCALE));
- Assertions.assertFalse(dataType.acceptsType(new
DecimalV2Type(precision, scale)));
+
Assertions.assertFalse(dataType.acceptsType(DecimalV2Type.createDecimalV2Type(precision,
scale)));
Assertions.assertFalse(dataType.acceptsType(new CharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(new VarcharType(new
Random().nextInt())));
Assertions.assertFalse(dataType.acceptsType(StringType.INSTANCE));
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]