Skip to content

Commit 806065c

Browse files
jayshrivastavagene-bordegaray
authored andcommitted
wip
1 parent c782b9b commit 806065c

10 files changed

Lines changed: 1341 additions & 44 deletions

File tree

datafusion/core/tests/physical_optimizer/filter_pushdown/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3894,7 +3894,7 @@ async fn test_hashjoin_dynamic_filter_pushdown_is_used() {
38943894

38953895
// Verify that a dynamic filter was created
38963896
let dynamic_filter = hash_join
3897-
.dynamic_filter_for_test()
3897+
.dynamic_filter()
38983898
.expect("Dynamic filter should be created");
38993899

39003900
// Verify that is_used() returns the expected value based on probe side support.

datafusion/physical-expr-common/src/physical_expr.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ pub trait PhysicalExpr: Any + Send + Sync + Display + Debug + DynEq + DynHash {
7474
/// Returns the physical expression as [`Any`] so that it can be
7575
/// downcast to a specific implementation.
7676
fn as_any(&self) -> &dyn Any;
77-
/// Get the data type of this expression, given the schema of the input
77+
/// Get the data type of this expression, given the schema of the input.
78+
/// Returns an error if the data type cannot be determined, ex. if the
79+
/// schema is missing a required field.
7880
fn data_type(&self, input_schema: &Schema) -> Result<DataType> {
7981
Ok(self.return_field(input_schema)?.data_type().to_owned())
8082
}

0 commit comments

Comments
 (0)