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

Function build_is_not_distinct_from

datafusion/pruning/src/pruning_predicate.rs:1786–1804  ·  view source on GitHub ↗
(
    expr_builder: &mut PruningExpressionBuilder,
)

Source from the content-addressed store, hash-verified

1784}
1785
1786fn build_is_not_distinct_from(
1787 expr_builder: &mut PruningExpressionBuilder,
1788) -> Result<Arc<dyn PhysicalExpr>> {
1789 let scalar_expr = Arc::clone(expr_builder.scalar_expr());
1790
1791 Ok(or_expr(
1792 and_expr(
1793 Arc::new(phys_expr::IsNullExpr::new(Arc::clone(&scalar_expr))),
1794 column_has_nulls_expr(expr_builder)?,
1795 ),
1796 and_expr(
1797 Arc::new(phys_expr::IsNotNullExpr::new(scalar_expr)),
1798 and_expr(
1799 column_has_non_nulls_expr(expr_builder)?,
1800 build_eq_statistics_expr(expr_builder)?,
1801 ),
1802 ),
1803 ))
1804}
1805
1806/// returns the string literal of the scalar value if it is a string
1807fn unpack_string(s: &ScalarValue) -> Option<&str> {

Callers 1

build_statistics_exprFunction · 0.85

Calls 7

or_exprFunction · 0.85
and_exprFunction · 0.85
newFunction · 0.85
column_has_nulls_exprFunction · 0.85
build_eq_statistics_exprFunction · 0.85
scalar_exprMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…