Optimize operator name with use_rich_format enabled

This commit is contained in:
Zach41
2024-01-17 08:48:36 +00:00
committed by ob-robot
parent 9002e5b34d
commit 0bea27fc06
7 changed files with 83 additions and 49 deletions

View File

@ -231,7 +231,7 @@ public:
virtual ~ObOpSpec();
DECLARE_VIRTUAL_TO_STRING;
const char *op_name() const { return ob_phy_operator_type_str(type_); }
const char *op_name() const { return ob_phy_operator_type_str(type_, use_rich_format_); }
// Pre-order recursive create execution components (ObOperator and ObOperatorInput)
// for current DFO.
@ -274,7 +274,7 @@ public:
int32_t get_child_num() const { return get_child_cnt(); }
ObPhyOperatorType get_type() const { return type_; }
uint64_t get_id() const { return id_; }
const char *get_name() const { return get_phy_op_name(type_); }
const char *get_name() const { return get_phy_op_name(type_, use_rich_format_); }
int accept(ObOpSpecVisitor &visitor) const;
int64_t get_rows() const { return rows_; }