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

Function union

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

Source from the content-addressed store, hash-verified

2587
2588#[test]
2589fn union() {
2590 let sql = "SELECT order_id from orders UNION SELECT order_id FROM orders";
2591 let plan = logical_plan(sql).unwrap();
2592 assert_snapshot!(
2593 plan,
2594 @r"
2595 Distinct:
2596 Union
2597 Projection: orders.order_id
2598 TableScan: orders
2599 Projection: orders.order_id
2600 TableScan: orders
2601 "
2602 );
2603}
2604
2605#[test]
2606fn union_by_name_different_columns() {

Callers 3

apply_null_maskFunction · 0.50
map_from_entries_innerFunction · 0.50

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…