File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -116,8 +116,8 @@ macro_rules! downcast_value {
116
116
// Not public API.
117
117
#[ doc( hidden) ]
118
118
pub mod __private {
119
- use super :: DataFusionError ;
120
- use super :: Result ;
119
+ use crate :: error :: _internal_datafusion_err ;
120
+ use crate :: Result ;
121
121
use arrow:: array:: Array ;
122
122
use std:: any:: { type_name, Any } ;
123
123
@@ -129,11 +129,11 @@ pub mod __private {
129
129
impl < T : Array + ?Sized > DowncastArrayHelper for T {
130
130
fn downcast_array_helper < U : Any > ( & self ) -> Result < & U > {
131
131
self . as_any ( ) . downcast_ref ( ) . ok_or_else ( || {
132
- DataFusionError :: Internal ( format ! (
132
+ _internal_datafusion_err ! (
133
133
"could not cast array of type {} to {}" ,
134
134
self . data_type( ) ,
135
135
type_name:: <U >( )
136
- ) )
136
+ )
137
137
} )
138
138
}
139
139
}
@@ -167,7 +167,7 @@ mod tests {
167
167
. unwrap ( ) ;
168
168
169
169
assert_eq ! (
170
- error. to_string ( ) ,
170
+ error. strip_backtrace ( ) ,
171
171
"Internal error: could not cast array of type Int32 to arrow_array::array::primitive_array::PrimitiveArray<arrow_array::types::UInt64Type>.\n \
172
172
This was likely caused by a bug in DataFusion's code and we would welcome that you file an bug report in our issue tracker"
173
173
) ;
You can’t perform that action at this time.
0 commit comments