| 1608 | } |
| 1609 | |
| 1610 | Result<std::shared_ptr<Scalar>> GetScalar(const std::string& i) { |
| 1611 | int32_t column_index; |
| 1612 | if (!ParseInteger(i, &column_index)) { |
| 1613 | return Status::Invalid("Couldn't parse column_index"); |
| 1614 | } |
| 1615 | if (column_index >= batch_.num_columns()) { |
| 1616 | return Status::Invalid("column_index out of bounds"); |
| 1617 | } |
| 1618 | return batch_.column(column_index)->GetScalar(0); |
| 1619 | } |
| 1620 | |
| 1621 | Result<Expression> GetOne() { |
| 1622 | if (index_ >= metadata().size()) { |