@@ -227,21 +227,19 @@ mod test {
227
227
let schema = Schema :: new ( vec ! [ Field :: new( "foo" , DataType :: Utf8 , true ) ] ) ;
228
228
let col = Column :: new ( "id" , 9 ) ;
229
229
let error = col. data_type ( & schema) . expect_err ( "error" ) . strip_backtrace ( ) ;
230
- assert_eq ! ( "Internal error: PhysicalExpr Column references column 'id' at index 9 (zero-based) \
230
+ assert ! ( "Internal error: PhysicalExpr Column references column 'id' at index 9 (zero-based) \
231
231
but input schema only has 1 columns: [\" foo\" ]. This was likely caused by a bug in \
232
- DataFusion's code and we would welcome that you file an bug report in our issue tracker",
233
- error)
232
+ DataFusion's code and we would welcome that you file an bug report in our issue tracker". starts_with( & error) )
234
233
}
235
234
236
235
#[ test]
237
236
fn out_of_bounds_nullable ( ) {
238
237
let schema = Schema :: new ( vec ! [ Field :: new( "foo" , DataType :: Utf8 , true ) ] ) ;
239
238
let col = Column :: new ( "id" , 9 ) ;
240
239
let error = col. nullable ( & schema) . expect_err ( "error" ) . strip_backtrace ( ) ;
241
- assert_eq ! ( "Internal error: PhysicalExpr Column references column 'id' at index 9 (zero-based) \
240
+ assert ! ( "Internal error: PhysicalExpr Column references column 'id' at index 9 (zero-based) \
242
241
but input schema only has 1 columns: [\" foo\" ]. This was likely caused by a bug in \
243
- DataFusion's code and we would welcome that you file an bug report in our issue tracker",
244
- error)
242
+ DataFusion's code and we would welcome that you file an bug report in our issue tracker". starts_with( & error) )
245
243
}
246
244
247
245
#[ test]
@@ -251,10 +249,9 @@ mod test {
251
249
let batch = RecordBatch :: try_new ( Arc :: new ( schema) , vec ! [ Arc :: new( data) ] ) ?;
252
250
let col = Column :: new ( "id" , 9 ) ;
253
251
let error = col. evaluate ( & batch) . expect_err ( "error" ) . strip_backtrace ( ) ;
254
- assert_eq ! ( "Internal error: PhysicalExpr Column references column 'id' at index 9 (zero-based) \
252
+ assert ! ( "Internal error: PhysicalExpr Column references column 'id' at index 9 (zero-based) \
255
253
but input schema only has 1 columns: [\" foo\" ]. This was likely caused by a bug in \
256
- DataFusion's code and we would welcome that you file an bug report in our issue tracker",
257
- error) ;
254
+ DataFusion's code and we would welcome that you file an bug report in our issue tracker". starts_with( & error) ) ;
258
255
Ok ( ( ) )
259
256
}
260
257
}
0 commit comments