| 74 | namespace { |
| 75 | |
| 76 | bool HasNestedDict(const ArrayData& data) { |
| 77 | if (data.type->id() == Type::DICTIONARY) { |
| 78 | return true; |
| 79 | } |
| 80 | for (const auto& child : data.child_data) { |
| 81 | if (HasNestedDict(*child)) { |
| 82 | return true; |
| 83 | } |
| 84 | } |
| 85 | return false; |
| 86 | } |
| 87 | |
| 88 | Status GetTruncatedBitmap(int64_t offset, int64_t length, |
| 89 | const std::shared_ptr<Buffer>& input, MemoryPool* pool, |