Skip to content
Merged

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,33 @@ public final class DataNodeQueryMessages {
"The left hand value must be an identifier: ";
public static final String THE_TABLE_S_DOES_NOT_CONTAIN_A_TIME_COLUMN =
"The table '%s' does not contain a time column";
public static final String START_TIME_IS_GREATER_THAN_END_TIME =
"Start time %d is greater than end time %d";
public static final String THE_RIGHT_HAND_VALUE_OF_TIME_PREDICATE_MUST_BE_A_LONG =
"The right hand value of time predicate must be a long: ";
public static final String THE_OPERATOR_OF_TIME_PREDICATE_MUST_BE_FOR =
"The operator of time predicate must be <, <=, >, or >=: ";
public static final String THE_OPERATOR_OF_TAG_PREDICATE_MUST_BE_FOR =
"The operator of tag predicate must be '=' for ";
public static final String
THE_RIGHT_HAND_VALUE_OF_TAG_PREDICATE_CANNOT_BE_NULL_WITH_COMPARISON_OPERATOR =
"The right hand value of tag predicate cannot be null with '=' operator, "
+ "please use 'IS NULL' instead";
public static final String THE_RIGHT_HAND_VALUE_OF_TAG_PREDICATE_MUST_BE_A_STRING =
"The right hand value of tag predicate must be a string: ";
public static final String THE_OPERATOR_OF_ATTRIBUTE_PREDICATE_MUST_BE_FOR =
"The operator of attribute predicate must be =, !=, <, <=, >, >=, LIKE, or IN for ";
public static final String
THE_RIGHT_HAND_VALUE_OF_ATTRIBUTE_PREDICATE_CANNOT_BE_NULL_WITH_COMPARISON_OPERATOR =
"The right hand value of attribute predicate cannot be null with comparison operator, "
+ "please use IS NULL or IS NOT NULL instead";
public static final String THE_RIGHT_HAND_VALUE_OF_ATTRIBUTE_PREDICATE_MUST_BE_A_STRING =
"The right hand value of attribute predicate must be a string: ";
public static final String THE_COLUMN_S_DOES_NOT_EXIST_OR_IS_NOT_A_TAG_COLUMN =
"The column '%s' does not exist or is not a tag column";
public static final String TOO_MANY_DEVICES_MATCHED_BY_ATTRIBUTE_FILTERS_IN_DELETION =
"Too many devices (%d) matched by attribute filters in deletion, limit is %d. "
+ "Please remove all attribute filters (%s) or add more attribute filters.";
public static final String ONLY_TIME_FILTERS_ARE_SUPPORTED_IN_LAST_QUERY =
"Only time filters are supported in LAST query";
public static final String VIEWS_CANNOT_BE_USED_IN_GROUP_BY_TAGS =
Expand Down Expand Up @@ -1652,14 +1677,10 @@ public final class DataNodeQueryMessages {
"The column '";
public static final String DOES_NOT_EXIST_OR_IS_NOT_A_TAG_COLUMN =
"' does not exist or is not a tag column";
public static final String THE_RIGHT_HAND_VALUE_OF_TIME_PREDICATE_MUST_BE_A_LONG =
"The right hand value of time predicate must be a long: ";
public static final String THE_OPERATOR_OF_TIME_PREDICATE_MUST_BE_LT_LT_EQ_GT_OR_GT_EQ =
"The operator of time predicate must be <, <=, >, or >=: ";
public static final String THE_RIGHT_HAND_VALUE_OF_TAG_PREDICATE_CANNOT_BE_NULL_WITH_EQ_OPERATOR_PLEASE_USE_IS_NULL =
"The right hand value of tag predicate cannot be null with '=' operator, please use 'IS NULL' instead";
public static final String THE_RIGHT_HAND_VALUE_OF_TAG_PREDICATE_MUST_BE_A_STRING =
"The right hand value of tag predicate must be a string: ";
public static final String SELECT_INTO_PLACEHOLDER_CAN_ONLY_BE_USED_AT_THE_END_OF_THE_PATH =
"select into: placeholder `::` can only be used at the end of the path.";
public static final String SELECT_INTO_THE_I_OF_DOLLAR_I_SHOULD_BE_GREATER_THAN_0_AND_EQUAL_TO_OR_LESS_THAN_THE =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ private StorageEngineMessages() {}
public static final String INTERRUPTED_WAITING_THREAD_POOL_EXIT = "Interrupted while waiting {} thread pool to exit. ";
public static final String BUFFERED_ARRAY_SIZE_THRESHOLD = "BufferedArraySizeThreshold is {}";
public static final String CURRENT_SG_COST = "Current Sg cost is {}";
public static final String DIRECT_BUFFER_MEMORY_ALLOCATION_FAILED =
"Total allocated memory for direct buffer will be %d, which is greater than limit mem cost: %d";
public static final String FORCE_DEGRADE_TSFILE_RESOURCE = "Force degrade tsfile resource {}";
public static final String CANNOT_DEGRADE_TIME_INDEX_ALL_FILE_LEVEL = "Can't degrade time index any more because all time index are file level.";
public static final String DEGRADE_TSFILE_RESOURCE = "Degrade tsfile resource {}";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,30 @@ public final class DataNodeQueryMessages {
"左侧值必须是标识符:";
public static final String THE_TABLE_S_DOES_NOT_CONTAIN_A_TIME_COLUMN =
"表 '%s' 不包含时间列";
public static final String START_TIME_IS_GREATER_THAN_END_TIME =
"开始时间 %d 大于结束时间 %d";
public static final String THE_RIGHT_HAND_VALUE_OF_TIME_PREDICATE_MUST_BE_A_LONG =
"时间谓词的右值必须是 long 类型:";
public static final String THE_OPERATOR_OF_TIME_PREDICATE_MUST_BE_FOR =
"时间谓词的操作符必须是 <、<=、> 或 >=:";
public static final String THE_OPERATOR_OF_TAG_PREDICATE_MUST_BE_FOR =
"标签谓词的运算符必须为 '=',目标:";
public static final String
THE_RIGHT_HAND_VALUE_OF_TAG_PREDICATE_CANNOT_BE_NULL_WITH_COMPARISON_OPERATOR =
"标签谓词在使用 '=' 操作符时右值不能为 null,请改用 'IS NULL'";
public static final String THE_RIGHT_HAND_VALUE_OF_TAG_PREDICATE_MUST_BE_A_STRING =
"标签谓词的右值必须是字符串:";
public static final String THE_OPERATOR_OF_ATTRIBUTE_PREDICATE_MUST_BE_FOR =
"属性谓词的运算符必须为 =, !=, <, <=, >, >=, LIKE 或 IN,目标:";
public static final String
THE_RIGHT_HAND_VALUE_OF_ATTRIBUTE_PREDICATE_CANNOT_BE_NULL_WITH_COMPARISON_OPERATOR =
"属性谓词的右侧值不能在比较运算符中为 null,请改用 IS NULL 或 IS NOT NULL";
public static final String THE_RIGHT_HAND_VALUE_OF_ATTRIBUTE_PREDICATE_MUST_BE_A_STRING =
"属性谓词的右侧值必须为字符串:";
public static final String THE_COLUMN_S_DOES_NOT_EXIST_OR_IS_NOT_A_TAG_COLUMN =
"列 '%s' 不存在或不是标签列";
public static final String TOO_MANY_DEVICES_MATCHED_BY_ATTRIBUTE_FILTERS_IN_DELETION =
"删除语句中的属性过滤条件匹配了过多设备(%d),限制为 %d。请移除所有属性过滤条件(%s),或进一步增加属性过滤条件。";
public static final String ONLY_TIME_FILTERS_ARE_SUPPORTED_IN_LAST_QUERY =
"LAST 查询中仅支持时间过滤器";
public static final String VIEWS_CANNOT_BE_USED_IN_GROUP_BY_TAGS =
Expand Down Expand Up @@ -1714,19 +1736,13 @@ public final class DataNodeQueryMessages {
public static final String DOES_NOT_EXIST_OR_IS_NOT_A_TAG_COLUMN =

"' 不存在或不是标签列";
public static final String THE_RIGHT_HAND_VALUE_OF_TIME_PREDICATE_MUST_BE_A_LONG =

"时间谓词的右值必须为 long:";
public static final String THE_OPERATOR_OF_TIME_PREDICATE_MUST_BE_LT_LT_EQ_GT_OR_GT_EQ =

"时间谓词的操作符必须为 <、<=、> 或 >=:";
public static final String THE_RIGHT_HAND_VALUE_OF_TAG_PREDICATE_CANNOT_BE_NULL_WITH_EQ_OPERATOR_PLEASE_USE_IS_NULL =


"使用 '=' 操作符时,标签谓词的右值不能为 null,请改用 'IS NULL'";
public static final String THE_RIGHT_HAND_VALUE_OF_TAG_PREDICATE_MUST_BE_A_STRING =

"标签谓词的右值必须为字符串:";
public static final String SELECT_INTO_PLACEHOLDER_CAN_ONLY_BE_USED_AT_THE_END_OF_THE_PATH =


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ private StorageEngineMessages() {}
public static final String INTERRUPTED_WAITING_THREAD_POOL_EXIT = "等待 {} 线程池退出时被中断。 ";
public static final String BUFFERED_ARRAY_SIZE_THRESHOLD = "BufferedArraySizeThreshold 为 {}";
public static final String CURRENT_SG_COST = "当前存储组内存开销为 {}";
public static final String DIRECT_BUFFER_MEMORY_ALLOCATION_FAILED =
"DirectBuffer 总分配内存将达到 %d,超过内存限制:%d";
public static final String FORCE_DEGRADE_TSFILE_RESOURCE = "强制降级 TsFile 资源 {}";
public static final String CANNOT_DEGRADE_TIME_INDEX_ALL_FILE_LEVEL = "无法继续降级时间索引,所有时间索引已为文件级别。";
public static final String DEGRADE_TSFILE_RESOURCE = "降级 TsFile 资源 {}";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iotdb.db.exception;

Check warning on line 19 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/exception/DirectBufferMemoryAllocationException.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

'package' should be separated from previous line.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ8cUctw7UYFBmGm6wRh&open=AZ8cUctw7UYFBmGm6wRh&pullRequest=18079

import org.apache.iotdb.db.i18n.StorageEngineMessages;

public class DirectBufferMemoryAllocationException extends DataRegionException {

private static final long serialVersionUID = -8268138833145785933L;

public DirectBufferMemoryAllocationException(
long allocatedDirectBufferMemory, long directBufferMemoryLimit) {
super(
String.format(
StorageEngineMessages.DIRECT_BUFFER_MEMORY_ALLOCATION_FAILED,
allocatedDirectBufferMemory,
directBufferMemoryLimit));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@
import org.apache.iotdb.db.storageengine.dataregion.compaction.settle.SettleRequestHandler;
import org.apache.iotdb.db.storageengine.dataregion.flush.CompressionRatio;
import org.apache.iotdb.db.storageengine.dataregion.modification.DeletionPredicate;
import org.apache.iotdb.db.storageengine.dataregion.modification.IDPredicate;
import org.apache.iotdb.db.storageengine.dataregion.modification.TableDeletionEntry;
import org.apache.iotdb.db.storageengine.dataregion.modification.TagPredicate;
import org.apache.iotdb.db.storageengine.dataregion.tsfile.TsFileManager;
import org.apache.iotdb.db.storageengine.dataregion.tsfile.TsFileResource;
import org.apache.iotdb.db.storageengine.rescon.quotas.DataNodeSpaceQuotaManager;
Expand Down Expand Up @@ -2127,7 +2127,7 @@ public TSStatus deleteColumnData(final TDeleteColumnDataReq req) {
new TableDeletionEntry(
new DeletionPredicate(
req.getTableName(),
new IDPredicate.NOP(),
new TagPredicate.NOP(),
Collections.singletonList(req.getColumnName())),
new TimeRange(Long.MIN_VALUE, Long.MAX_VALUE)),
// the request is only sent to associated region
Expand Down
Loading
Loading