We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4704971 commit a1557cfCopy full SHA for a1557cf
vortex-array/src/expr/expression.rs
@@ -105,6 +105,9 @@ impl Expression {
105
106
/// Computes the return dtype of this expression given the input dtype.
107
pub fn return_dtype(&self, scope: &DType) -> VortexResult<DType> {
108
+ if self.is::<Root>() {
109
+ return Ok(scope.clone());
110
+ }
111
self.scalar_fn.return_dtype(&ExpressionReturnDTypeCtx {
112
expr: self,
113
scope_dtype: scope,
@@ -247,7 +250,6 @@ impl ReturnDTypeCtx for ExpressionReturnDTypeCtx<'_> {
247
250
248
251
fn return_dtype(&self, child_idx: usize) -> VortexResult<DType> {
249
252
let child = &self.expr.children()[child_idx];
-
253
if child.is::<Root>() {
254
return Ok(self.scope_dtype.clone());
255
}
0 commit comments