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

Function skip_generate_different_schema

datafusion/optimizer/src/optimizer.rs:575–583  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

573
574 #[test]
575 fn skip_generate_different_schema() {
576 let opt = Optimizer::with_rules(vec![Arc::new(GetTableScanRule {})]);
577 let config = OptimizerContext::new().with_skip_failing_rules(true);
578 let plan = LogicalPlan::EmptyRelation(EmptyRelation {
579 produce_one_row: false,
580 schema: Arc::new(DFSchema::empty()),
581 });
582 opt.optimize(plan, &config, &observe).unwrap();
583 }
584
585 #[test]
586 fn generate_same_schema_different_metadata() -> Result<()> {

Callers

nothing calls this directly

Calls 5

newFunction · 0.85
EmptyRelationClass · 0.85
emptyFunction · 0.50
optimizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…