| 1092 | } |
| 1093 | |
| 1094 | std::string Value::structToString() const { |
| 1095 | std::string result = "{"; |
| 1096 | auto fieldNames = StructType::getFieldNames(dataType); |
| 1097 | for (auto i = 0u; i < childrenSize; ++i) { |
| 1098 | result += fieldNames[i] + ": "; |
| 1099 | result += children[i]->toString(); |
| 1100 | if (i != childrenSize - 1) { |
| 1101 | result += ", "; |
| 1102 | } |
| 1103 | } |
| 1104 | result += "}"; |
| 1105 | return result; |
| 1106 | } |
| 1107 | |
| 1108 | std::string Value::nodeToString() const { |
| 1109 | if (children[0]->isNull_) { |