| 294 | } |
| 295 | |
| 296 | DecimalVal 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 | |
| 313 | TimestampVal Literal::GetTimestampValInterpreted( |
| 314 | ScalarExprEvaluator* eval, const TupleRow* row) const { |
nothing calls this directly
no test coverage detected