Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::DecimalScaleDownCheckOperator Struct Reference

Static Public Member Functions

template<class INPUT_TYPE, class RESULT_TYPE>
static RESULT_TYPE Operation (INPUT_TYPE input, ValidityMask &mask, idx_t idx, void *dataptr)

Member Function Documentation

◆ Operation()

template<class INPUT_TYPE, class RESULT_TYPE>
RESULT_TYPE duckdb::DecimalScaleDownCheckOperator::Operation ( INPUT_TYPE input,
ValidityMask & mask,
idx_t idx,
void * dataptr )
inlinestatic
213468 {
213469 auto data = static_cast<DecimalScaleInput<INPUT_TYPE> *>(dataptr);
213470 if (!CanScaleDownDecimal(input, *data)) {
213471 auto error = StringUtil::Format("Casting value \"%s\" to type %s failed: value is out of range!",
213472 Decimal::ToString(input, data->source_width, data->source_scale),
213473 data->result.GetType().ToString());
213474 return HandleVectorCastError::Operation<RESULT_TYPE>(std::move(error), mask, idx, data->vector_cast_data);
213475 }
213476 return DecimalScaleDownOperator::Operation<INPUT_TYPE, RESULT_TYPE>(input, mask, idx, dataptr);
213477 }
static string Format(const string fmt_str, ARGS... params)
Format a string using printf semantics.
Definition duckdb.hpp:4002

The documentation for this struct was generated from the following file: