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

Method type

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

Source from the content-addressed store, hash-verified

110}
111
112const DataType* Expression::type() const {
113 if (impl_ == nullptr) return nullptr;
114
115 if (const Datum* lit = literal()) {
116 return lit->type().get();
117 }
118
119 if (const Parameter* parameter = this->parameter()) {
120 return parameter->type.type;
121 }
122
123 return CallNotNull(*this)->type.type;
124}
125
126namespace {
127

Callers 15

TestWithArrayFactoryMethod · 0.45
TEST_FFunction · 0.45
TestWithArrayFactoryMethod · 0.45
CheckImportMethod · 0.45
TestWithArrayFactoryMethod · 0.45
TestWithArrayFactoryMethod · 0.45
ASSERT_OK_AND_ASSIGNFunction · 0.45
ExampleRecordBatchFunction · 0.45
ExportImportArrayFunction · 0.45
CheckDLTensorFunction · 0.45
TEST_FFunction · 0.45
ExportArrayFunction · 0.45

Calls 4

parameterMethod · 0.95
CallNotNullFunction · 0.85
literalFunction · 0.70
getMethod · 0.45

Tested by 15

TestWithArrayFactoryMethod · 0.36
TEST_FFunction · 0.36
TestWithArrayFactoryMethod · 0.36
CheckImportMethod · 0.36
TestWithArrayFactoryMethod · 0.36
TestWithArrayFactoryMethod · 0.36
ASSERT_OK_AND_ASSIGNFunction · 0.36
CheckDLTensorFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
ExecCopyArrayDataFunction · 0.36
ExecCopyArraySpanFunction · 0.36