| 311 | } |
| 312 | |
| 313 | Status AppendUnionBatch(const liborc::Type* type, |
| 314 | liborc::ColumnVectorBatch* column_vector_batch, int64_t offset, |
| 315 | int64_t length, ArrayBuilder* abuilder) { |
| 316 | if (abuilder->type()->id() == Type::SPARSE_UNION) { |
| 317 | return AppendUnionBatchInternal<SparseUnionBuilder>(type, column_vector_batch, offset, |
| 318 | length, abuilder); |
| 319 | } |
| 320 | if (abuilder->type()->id() == Type::DENSE_UNION) { |
| 321 | return AppendUnionBatchInternal<DenseUnionBuilder>(type, column_vector_batch, offset, |
| 322 | length, abuilder); |
| 323 | } |
| 324 | return Status::Invalid("Invalid union type"); |
| 325 | } |
| 326 | |
| 327 | } // namespace |
| 328 |
no test coverage detected