diff --git a/datafusion/common/src/lib.rs b/datafusion/common/src/lib.rs index 2992596c564cc..d9fd2503e9582 100644 --- a/datafusion/common/src/lib.rs +++ b/datafusion/common/src/lib.rs @@ -43,10 +43,10 @@ macro_rules! downcast_value { })? }}; ($Value: expr, $Type: ident, $T: tt) => {{ - $Value.as_any().downcast_ref::<$Type>().ok_or_else(|| { + $Value.as_any().downcast_ref::<$Type<$T>>().ok_or_else(|| { DataFusionError::Internal(format!( "could not cast value to {}", - type_name::<$Type>() + type_name::<$Type<$T>>() )) })? }};