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

Function test_partial_ord

datafusion/expr/src/logical_plan/ddl.rs:815–836  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

813
814 #[test]
815 fn test_partial_ord() {
816 let catalog = DdlStatement::CreateCatalog(CreateCatalog {
817 catalog_name: "name".to_string(),
818 if_not_exists: false,
819 schema: DFSchemaRef::new(DFSchema::empty()),
820 });
821 let catalog_2 = DdlStatement::CreateCatalog(CreateCatalog {
822 catalog_name: "name".to_string(),
823 if_not_exists: true,
824 schema: DFSchemaRef::new(DFSchema::empty()),
825 });
826
827 assert_eq!(catalog.partial_cmp(&catalog_2), Some(Ordering::Less));
828
829 let drop_view = DdlStatement::DropView(DropView {
830 name: TableReference::from("table"),
831 if_exists: false,
832 schema: DFSchemaRef::new(DFSchema::empty()),
833 });
834
835 assert_eq!(drop_view.partial_cmp(&catalog), Some(Ordering::Greater));
836 }
837}

Callers

nothing calls this directly

Calls 5

CreateCatalogClass · 0.85
newFunction · 0.85
DropViewClass · 0.85
emptyFunction · 0.50
to_stringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…