| 152 | namespace { |
| 153 | |
| 154 | bool HasUnresolvedNestedDict(const ArrayData& data) { |
| 155 | if (data.type->id() == Type::DICTIONARY) { |
| 156 | if (data.dictionary == nullptr) { |
| 157 | return true; |
| 158 | } |
| 159 | if (HasUnresolvedNestedDict(*data.dictionary)) { |
| 160 | return true; |
| 161 | } |
| 162 | } |
| 163 | for (const auto& child : data.child_data) { |
| 164 | if (HasUnresolvedNestedDict(*child)) { |
| 165 | return true; |
| 166 | } |
| 167 | } |
| 168 | return false; |
| 169 | } |
| 170 | |
| 171 | } // namespace |
| 172 |