MCPcopy Create free account
hub / github.com/apache/datafusion / try_cast_from_aggregation

Function try_cast_from_aggregation

datafusion/sql/tests/sql_integration.rs:399–409  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

397
398#[test]
399fn try_cast_from_aggregation() {
400 let plan = logical_plan("SELECT TRY_CAST(sum(age) AS FLOAT) FROM person").unwrap();
401 assert_snapshot!(
402 plan,
403 @r"
404 Projection: TRY_CAST(sum(person.age) AS Float32)
405 Aggregate: groupBy=[[]], aggr=[[sum(person.age)]]
406 TableScan: person
407 "
408 );
409}
410
411#[test]
412fn cast_to_invalid_decimal_type_precision_0() {

Callers

nothing calls this directly

Calls 1

logical_planFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…