()
| 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() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…