@@ -204,7 +204,6 @@ mod test {
204204 use arrow:: array:: StringArray ;
205205 use arrow:: datatypes:: { DataType , Field , Schema } ;
206206 use arrow:: record_batch:: RecordBatch ;
207- use datafusion_common:: Result ;
208207
209208 use std:: sync:: Arc ;
210209
@@ -214,8 +213,9 @@ mod test {
214213 let col = Column :: new ( "id" , 9 ) ;
215214 let error = col. data_type ( & schema) . expect_err ( "error" ) . strip_backtrace ( ) ;
216215 assert ! ( "Internal error: PhysicalExpr Column references column 'id' at index 9 (zero-based) \
217- but input schema only has 1 columns: [\" foo\" ].\n This was likely caused by a bug in \
218- DataFusion's code and we would welcome that you file an bug report in our issue tracker". starts_with( & error) )
216+ but input schema only has 1 columns: [\" foo\" ].\n This issue was likely caused by a bug \
217+ in DataFusion's code. Please help us to resolve this by filing a bug report \
218+ in our issue tracker: https://github.com/apache/datafusion/issues". starts_with( & error) )
219219 }
220220
221221 #[ test]
@@ -224,20 +224,21 @@ mod test {
224224 let col = Column :: new ( "id" , 9 ) ;
225225 let error = col. nullable ( & schema) . expect_err ( "error" ) . strip_backtrace ( ) ;
226226 assert ! ( "Internal error: PhysicalExpr Column references column 'id' at index 9 (zero-based) \
227- but input schema only has 1 columns: [\" foo\" ].\n This was likely caused by a bug in \
228- DataFusion's code and we would welcome that you file an bug report in our issue tracker". starts_with( & error) )
227+ but input schema only has 1 columns: [\" foo\" ].\n This issue was likely caused by a bug \
228+ in DataFusion's code. Please help us to resolve this by filing a bug report \
229+ in our issue tracker: https://github.com/apache/datafusion/issues". starts_with( & error) ) ;
229230 }
230231
231232 #[ test]
232- fn out_of_bounds_evaluate ( ) -> Result < ( ) > {
233+ fn out_of_bounds_evaluate ( ) {
233234 let schema = Schema :: new ( vec ! [ Field :: new( "foo" , DataType :: Utf8 , true ) ] ) ;
234235 let data: StringArray = vec ! [ "data" ] . into ( ) ;
235- let batch = RecordBatch :: try_new ( Arc :: new ( schema) , vec ! [ Arc :: new( data) ] ) ? ;
236+ let batch = RecordBatch :: try_new ( Arc :: new ( schema) , vec ! [ Arc :: new( data) ] ) . unwrap ( ) ;
236237 let col = Column :: new ( "id" , 9 ) ;
237238 let error = col. evaluate ( & batch) . expect_err ( "error" ) . strip_backtrace ( ) ;
238239 assert ! ( "Internal error: PhysicalExpr Column references column 'id' at index 9 (zero-based) \
239- but input schema only has 1 columns: [\" foo\" ].\n This was likely caused by a bug in \
240- DataFusion's code and we would welcome that you file an bug report in our issue tracker" . starts_with ( & error ) ) ;
241- Ok ( ( ) )
240+ but input schema only has 1 columns: [\" foo\" ].\n This issue was likely caused by a bug \
241+ in DataFusion's code. Please help us to resolve this by filing a bug report \
242+ in our issue tracker: https://github.com/apache/datafusion/issues" . starts_with ( & error ) ) ;
242243 }
243244}
0 commit comments