MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / cast_to_decimal

Method cast_to_decimal

graphlite/src/exec/executor.rs:5136–5145  ·  view source on GitHub ↗

Cast value to DECIMAL

(
        &self,
        value: Value,
        _precision: Option<u8>,
        _scale: Option<u8>,
    )

Source from the content-addressed store, hash-verified

5134
5135 /// Cast value to DECIMAL
5136 fn cast_to_decimal(
5137 &self,
5138 value: Value,
5139 _precision: Option<u8>,
5140 _scale: Option<u8>,
5141 ) -> Result<Value, ExecutionError> {
5142 // For now, treat DECIMAL same as DOUBLE
5143 // In a full implementation, we'd respect precision and scale
5144 self.cast_to_double(value)
5145 }
5146
5147 /// Evaluate a literal value
5148 fn evaluate_literal(&self, literal: &crate::ast::Literal) -> Result<Value, ExecutionError> {

Callers 1

cast_valueMethod · 0.80

Calls 1

cast_to_doubleMethod · 0.80

Tested by

no test coverage detected