| 57 | } |
| 58 | |
| 59 | void TableFunctionNode::dumpTreeImpl(WriteBuffer & buffer, FormatState & format_state, size_t indent) const |
| 60 | { |
| 61 | buffer << std::string(indent, ' ') << "TABLE_FUNCTION id: " << format_state.getNodeId(this); |
| 62 | |
| 63 | if (hasAlias()) |
| 64 | buffer << ", alias: " << getAlias(); |
| 65 | |
| 66 | buffer << ", table_function_name: " << table_function_name; |
| 67 | |
| 68 | if (table_expression_modifiers) |
| 69 | { |
| 70 | buffer << ", "; |
| 71 | table_expression_modifiers->dump(buffer); |
| 72 | } |
| 73 | |
| 74 | const auto & arguments = getArguments(); |
| 75 | if (!arguments.getNodes().empty()) |
| 76 | { |
| 77 | buffer << '\n' << std::string(indent + 2, ' ') << "ARGUMENTS\n"; |
| 78 | arguments.dumpTreeImpl(buffer, format_state, indent + 4); |
| 79 | } |
| 80 | |
| 81 | if (!settings_changes.empty()) |
| 82 | { |
| 83 | buffer << '\n' << std::string(indent + 2, ' ') << "SETTINGS"; |
| 84 | for (const auto & change : settings_changes) |
| 85 | buffer << fmt::format(" {}={}", change.name, fieldToString(change.value)); |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | bool TableFunctionNode::isEqualImpl(const IQueryTreeNode & rhs, CompareOptions) const |
| 90 | { |