MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / dumpTreeImpl

Method dumpTreeImpl

src/Analyzer/ConstantNode.cpp:90–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void ConstantNode::dumpTreeImpl(WriteBuffer & buffer, FormatState & format_state, size_t indent) const
91{
92 buffer << std::string(indent, ' ') << "CONSTANT id: " << format_state.getNodeId(this);
93
94 if (hasAlias())
95 buffer << ", alias: " << getAlias();
96
97 buffer << ", constant_value: ";
98 if (mask_id)
99 {
100 if (mask_id == std::numeric_limits<decltype(mask_id)>::max())
101 buffer << "[HIDDEN]";
102 else
103 buffer << "[HIDDEN id: " << mask_id << "]";
104 }
105 else
106 buffer << getValue().dump();
107
108 buffer << ", constant_value_type: " << constant_value.getType()->getName();
109
110 if (!mask_id && getSourceExpression())
111 {
112 buffer << '\n' << std::string(indent + 2, ' ') << "EXPRESSION" << '\n';
113 getSourceExpression()->dumpTreeImpl(buffer, format_state, indent + 4);
114 }
115}
116
117void ConstantNode::convertToNullable()
118{

Callers

nothing calls this directly

Calls 6

maxFunction · 0.50
getValueFunction · 0.50
getNodeIdMethod · 0.45
dumpMethod · 0.45
getNameMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected