| 111 | } |
| 112 | |
| 113 | static void resizeGeneric(ArrowVector* vector, const LogicalType& type, int64_t capacity, |
| 114 | bool fallbackExtensionTypes) { |
| 115 | if (vector->capacity >= capacity) { |
| 116 | return; |
| 117 | } |
| 118 | while (vector->capacity < capacity) { |
| 119 | if (vector->capacity == 0) { |
| 120 | vector->capacity = 1; |
| 121 | } else { |
| 122 | vector->capacity *= 2; |
| 123 | } |
| 124 | } |
| 125 | resizeValidityBuffer(vector, vector->capacity); |
| 126 | resizeMainBuffer(vector, type, vector->capacity, fallbackExtensionTypes); |
| 127 | } |
| 128 | |
| 129 | static void resizeBLOBVector(ArrowVector* vector, const LogicalType& type, int64_t capacity, |
| 130 | int64_t overflowCapacity, bool fallbackExtensionTypes) { |
no test coverage detected