File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -918,16 +918,14 @@ impl SimpleFunctionExecutor for Executor {
918918 let table = output
919919 . into_iter ( )
920920 . map ( |chunk_output| {
921+ let output_start = chunk_output. start_pos . output . unwrap ( ) ;
922+ let output_end = chunk_output. end_pos . output . unwrap ( ) ;
921923 (
922- RangeValue :: new (
923- chunk_output. start_pos . byte_offset ,
924- chunk_output. end_pos . byte_offset ,
925- )
926- . into ( ) ,
924+ RangeValue :: new ( output_start. char_offset , output_end. char_offset ) . into ( ) ,
927925 fields_value ! (
928926 Arc :: <str >:: from( chunk_output. text) ,
929- chunk_output . start_pos . output . unwrap ( ) . into_output( ) ,
930- chunk_output . end_pos . output . unwrap ( ) . into_output( )
927+ output_start . into_output( ) ,
928+ output_end . into_output( )
931929 )
932930 . into ( ) ,
933931 )
You can’t perform that action at this time.
0 commit comments