diff --git a/internal/core/src/exec/expression/Utils.h b/internal/core/src/exec/expression/Utils.h index 8eeb735f09..c5be68c617 100644 --- a/internal/core/src/exec/expression/Utils.h +++ b/internal/core/src/exec/expression/Utils.h @@ -252,7 +252,7 @@ GetValueFromProtoInternal(const milvus::proto::plan::GenericValue& value_proto, } else { ThrowInfo(Unsupported, "unsupported generic value {}", - value_proto.DebugString()); + value_proto.ShortDebugString()); } } diff --git a/internal/core/src/expr/ITypeExpr.h b/internal/core/src/expr/ITypeExpr.h index 744b70580a..a1925f7259 100644 --- a/internal/core/src/expr/ITypeExpr.h +++ b/internal/core/src/expr/ITypeExpr.h @@ -360,7 +360,7 @@ class ValueExpr : public ITypeExpr { ToString() const override { std::stringstream ss; ss << "ValueExpr: {" - << " val:" << val_.DebugString() << "}"; + << " val:" << val_.ShortDebugString() << "}"; return ss.str(); } @@ -393,10 +393,10 @@ class UnaryRangeFilterExpr : public ITypeFilterExpr { std::stringstream ss; ss << "UnaryRangeFilterExpr: {columnInfo:" << column_.ToString() << " op_type:" << milvus::proto::plan::OpType_Name(op_type_) - << " val:" << val_.DebugString() << " extra_values: ["; + << " val:" << val_.ShortDebugString() << " extra_values: ["; for (size_t i = 0; i < extra_values_.size(); i++) { - ss << extra_values_[i].DebugString(); + ss << extra_values_[i].ShortDebugString(); if (i != extra_values_.size() - 1) { ss << ", "; } @@ -518,7 +518,7 @@ class TermFilterExpr : public ITypeFilterExpr { std::string values; for (const auto& val : vals_) { - values += val.DebugString() + ", "; + values += val.ShortDebugString() + ", "; } std::stringstream ss; @@ -615,8 +615,8 @@ class BinaryRangeFilterExpr : public ITypeFilterExpr { ToString() const override { std::stringstream ss; ss << "BinaryRangeFilterExpr:[Column: " << column_.ToString() - << ", Lower Value: " << lower_val_.DebugString() - << ", Upper Value: " << upper_val_.DebugString() + << ", Lower Value: " << lower_val_.ShortDebugString() + << ", Upper Value: " << upper_val_.ShortDebugString() << ", Lower Inclusive: " << (lower_inclusive_ ? "true" : "false") << ", Upper Inclusive: " << (upper_inclusive_ ? "true" : "false") << "]"; @@ -660,8 +660,8 @@ class BinaryArithOpEvalRangeExpr : public ITypeFilterExpr { << ", Operator Type: " << milvus::proto::plan::OpType_Name(op_type_) << ", Arith Operator Type: " << milvus::proto::plan::ArithOpType_Name(arith_op_type_) - << ", Value: " << value_.DebugString() - << ", Right Operand: " << right_operand_.DebugString() << "]"; + << ", Value: " << value_.ShortDebugString() + << ", Right Operand: " << right_operand_.ShortDebugString() << "]"; return ss.str(); } @@ -694,9 +694,9 @@ class TimestamptzArithCompareExpr : public ITypeFilterExpr { ss << "TimestamptzArithCompareExpr:[Column: " << timestamp_column_.ToString() << ", ArithOp: " << milvus::proto::plan::ArithOpType_Name(arith_op_) - << ", Interval: " << interval_.DebugString() + << ", Interval: " << interval_.ShortDebugString() << ", CompareOp: " << milvus::proto::plan::OpType_Name(compare_op_) - << ", CompareValue: " << compare_value_.DebugString() << "]"; + << ", CompareValue: " << compare_value_.ShortDebugString() << "]"; return ss.str(); } @@ -857,7 +857,7 @@ class JsonContainsExpr : public ITypeFilterExpr { ToString() const override { std::string values; for (const auto& val : vals_) { - values += val.DebugString() + ", "; + values += val.ShortDebugString() + ", "; } return fmt::format( "JsonContainsExpr:[Column: {}, Operator: {}, Same Type: {}, " diff --git a/internal/core/src/query/PlanProto.cpp b/internal/core/src/query/PlanProto.cpp index 14b6e992b3..e6065a5d4b 100644 --- a/internal/core/src/query/PlanProto.cpp +++ b/internal/core/src/query/PlanProto.cpp @@ -321,7 +321,7 @@ ProtoParser::RetrievePlanNodeFromProto( std::unique_ptr ProtoParser::CreatePlan(const proto::plan::PlanNode& plan_node_proto) { LOG_DEBUG("create search plan from proto: {}", - plan_node_proto.DebugString()); + plan_node_proto.ShortDebugString()); auto plan = std::make_unique(schema); auto plan_node = PlanNodeFromProto(plan_node_proto); @@ -345,7 +345,7 @@ ProtoParser::CreatePlan(const proto::plan::PlanNode& plan_node_proto) { std::unique_ptr ProtoParser::CreateRetrievePlan(const proto::plan::PlanNode& plan_node_proto) { LOG_DEBUG("create retrieve plan from proto: {}", - plan_node_proto.DebugString()); + plan_node_proto.ShortDebugString()); auto retrieve_plan = std::make_unique(schema); auto plan_node = RetrievePlanNodeFromProto(plan_node_proto);