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

Function cast_from_subquery

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

Source from the content-addressed store, hash-verified

384
385#[test]
386fn cast_from_subquery() {
387 let plan = logical_plan("SELECT CAST (a AS FLOAT) FROM (SELECT 1 AS a)").unwrap();
388 assert_snapshot!(
389 plan,
390 @r"
391 Projection: CAST(a AS Float32)
392 Projection: Int64(1) AS a
393 EmptyRelation: rows=1
394 "
395 );
396}
397
398#[test]
399fn try_cast_from_aggregation() {

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…