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

Function test_display_set_comparison

datafusion/expr/src/expr.rs:4135–4154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4133
4134 #[test]
4135 fn test_display_set_comparison() {
4136 let subquery = Subquery {
4137 subquery: Arc::new(LogicalPlan::EmptyRelation(EmptyRelation {
4138 produce_one_row: false,
4139 schema: Arc::new(DFSchema::empty()),
4140 })),
4141 outer_ref_columns: vec![],
4142 spans: Spans::new(),
4143 };
4144
4145 let expr = Expr::SetComparison(SetComparison::new(
4146 Box::new(Expr::Column(Column::from_name("a"))),
4147 subquery,
4148 Operator::Gt,
4149 SetQuantifier::Any,
4150 ));
4151
4152 assert_eq!(format!("{expr}"), "a > ANY (<subquery>)");
4153 assert_eq!(format!("{}", expr.human_display()), "a > ANY (<subquery>)");
4154 }
4155
4156 #[test]
4157 fn test_schema_display_alias_with_relation() {

Callers

nothing calls this directly

Calls 5

newFunction · 0.85
EmptyRelationClass · 0.85
SetComparisonClass · 0.85
emptyFunction · 0.50
ColumnClass · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…