MCPcopy Create free account
hub / github.com/apache/impala / GetDecimalValInterpreted

Method GetDecimalValInterpreted

be/src/exprs/literal.cc:296–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296DecimalVal Literal::GetDecimalValInterpreted(
297 ScalarExprEvaluator* eval, const TupleRow* row) const {
298 DCHECK_EQ(type_.type, TYPE_DECIMAL) << type_;
299 switch (type().GetByteSize()) {
300 case 4:
301 return DecimalVal(value_.decimal4_val.value());
302 case 8:
303 return DecimalVal(value_.decimal8_val.value());
304 case 16:
305 return DecimalVal(value_.decimal16_val.value());
306 default:
307 DCHECK(false) << type_.DebugString();
308 }
309 // Quieten GCC.
310 return DecimalVal();
311}
312
313TimestampVal Literal::GetTimestampValInterpreted(
314 ScalarExprEvaluator* eval, const TupleRow* row) const {

Callers

nothing calls this directly

Calls 5

DecimalValClass · 0.85
GetByteSizeMethod · 0.80
typeEnum · 0.50
valueMethod · 0.45
DebugStringMethod · 0.45

Tested by

no test coverage detected