MCPcopy Create free account
hub / github.com/apache/arrow / GetScalar

Method GetScalar

cpp/src/arrow/compute/expression.cc:1610–1619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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()) {

Callers 15

MakeExecBatchFunction · 0.45
TESTFunction · 0.45
GenericToScalarFunction · 0.45
EmitResultMethod · 0.45
ExecBatchFromJSONFunction · 0.45
ToScalarsFunction · 0.45
ConsumeMethod · 0.45
AssertUnaryOpMethod · 0.45
AssertBinaryOpMethod · 0.45
BenchArrayScalarFunction · 0.45

Calls 3

InvalidFunction · 0.50
num_columnsMethod · 0.45
columnMethod · 0.45

Tested by 10

TESTFunction · 0.36
ExecBatchFromJSONFunction · 0.36
AssertUnaryOpMethod · 0.36
AssertBinaryOpMethod · 0.36
GetScalarsFunction · 0.36
CheckScalarFunction · 0.36
AssertUnaryOpMethod · 0.36
AssertBinopMethod · 0.36
AssertUnaryOpMethod · 0.36
AssertBinaryOpMethod · 0.36