@@ -7,8 +7,8 @@ use url::Url;
77use crate :: plans:: { Plan , PlanExecutor , QueryPlanBuilder } ;
88use crate :: schema:: SchemaRef ;
99use crate :: {
10- DeltaResult , EngineData , FileDataReadResultIterator , FileMeta , FilteredEngineData , JsonHandler ,
11- PredicateRef ,
10+ DeltaResult , EngineData , Error , FileDataReadResultIterator , FileMeta , FilteredEngineData ,
11+ JsonHandler , PredicateRef ,
1212} ;
1313
1414/// A [`JsonHandler`] that delegates to a [`PlanExecutor`].
@@ -30,7 +30,9 @@ impl JsonHandler for PlanBasedJsonHandler {
3030 _json_strings : Box < dyn EngineData > ,
3131 _output_schema : SchemaRef ,
3232 ) -> DeltaResult < Box < dyn EngineData > > {
33- todo ! ( "PlanBasedJsonHandler does not support parse_json yet" ) ;
33+ Err ( Error :: unsupported (
34+ "PlanBasedJsonHandler does not support parse_json yet" ,
35+ ) )
3436 }
3537
3638 fn read_json_files (
@@ -52,7 +54,9 @@ impl JsonHandler for PlanBasedJsonHandler {
5254 _data : Box < dyn Iterator < Item = DeltaResult < FilteredEngineData > > + Send + ' _ > ,
5355 _overwrite : bool ,
5456 ) -> DeltaResult < ( ) > {
55- todo ! ( "PlanBasedJsonHandler does not support write_json_file yet" ) ;
57+ Err ( Error :: unsupported (
58+ "PlanBasedJsonHandler does not support write_json_file yet" ,
59+ ) )
5660 }
5761}
5862
0 commit comments