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

Function test_split_conjunction_alias

datafusion/expr/src/utils.rs:1632–1639  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1630
1631 #[test]
1632 fn test_split_conjunction_alias() {
1633 let expr = col("a").eq(lit(5)).and(col("b").alias("the_alias"));
1634 let expr1 = col("a").eq(lit(5));
1635 let expr2 = col("b"); // has no alias
1636
1637 let result = split_conjunction(&expr);
1638 assert_eq!(result, vec![&expr1, &expr2]);
1639 }
1640
1641 #[test]
1642 fn test_split_conjunction_or() {

Callers

nothing calls this directly

Calls 6

colFunction · 0.70
litFunction · 0.70
split_conjunctionFunction · 0.70
andMethod · 0.45
eqMethod · 0.45
aliasMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…