This is an automated email from the ASF dual-hosted git repository.
yiguolei 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 97f0d3a756 [Improvement](datatype) disable new types if vectorized
engine is disabled (#14561)
97f0d3a756 is described below
commit 97f0d3a756380c1353361b905c51893d3330ddd3
Author: Gabriel <[email protected]>
AuthorDate: Tue Nov 29 10:33:46 2022 +0800
[Improvement](datatype) disable new types if vectorized engine is disabled
(#14561)
* [Imptovement](datatype) disable new types if vectorized engine is disabled
disable datev2/datetimev2/decimalv3 if vectorized engine is disabled
---
fe/fe-core/src/main/java/org/apache/doris/catalog/ScalarType.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/ScalarType.java
b/fe/fe-core/src/main/java/org/apache/doris/catalog/ScalarType.java
index 5243ba315a..38915c28b7 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/ScalarType.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/ScalarType.java
@@ -19,7 +19,9 @@ package org.apache.doris.catalog;
import org.apache.doris.common.Config;
import org.apache.doris.common.io.Text;
+import org.apache.doris.common.util.VectorizedUtil;
import org.apache.doris.persist.gson.GsonUtils;
+import org.apache.doris.qe.ConnectContext;
import org.apache.doris.thrift.TColumnType;
import org.apache.doris.thrift.TScalarType;
import org.apache.doris.thrift.TTypeDesc;
@@ -623,6 +625,12 @@ public class ScalarType extends Type {
@Override
public void toThrift(TTypeDesc container) {
+ if (type.isDecimalV3Type() || type.isDateV2Type()) {
+ Preconditions.checkArgument((Config.enable_vectorized_load &&
ConnectContext.get() == null)
+ || (VectorizedUtil.isVectorized() &&
ConnectContext.get() != null),
+ "Please make sure vectorized load and vectorized query
engine are enabled to use data type: "
+ + type);
+ }
TTypeNode node = new TTypeNode();
container.types.add(node);
node.setType(TTypeNodeType.SCALAR);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]