@@ -591,54 +591,6 @@ def f(fname, cindex, start, count): # pragma: no cover
591591 out += f_block .body [:- 2 ]
592592 out [- 1 ].target = assign .target
593593
594- # TODO: fix numba.extending
595- if sdc .config ._has_xenon and (fdef == ('read_xenon_col' , 'numba.extending' )
596- and self ._is_1D_arr (rhs .args [3 ].name )):
597- arr = rhs .args [3 ].name
598- assert len (self ._array_starts [arr ]) == 1 , "only 1D arrs in Xenon"
599- start_var = self ._array_starts [arr ][0 ]
600- count_var = self ._array_counts [arr ][0 ]
601- rhs .args += [start_var , count_var ]
602-
603- def f (connect_tp , dset_tp , col_id_tp , column_tp , schema_arr_tp , start , count ): # pragma: no cover
604- return sdc .io .xenon_ext .read_xenon_col_parallel (
605- connect_tp , dset_tp , col_id_tp , column_tp , schema_arr_tp , start , count )
606-
607- return self ._replace_func (f , rhs .args )
608-
609- if sdc .config ._has_xenon and (fdef == ('read_xenon_str' , 'numba.extending' )
610- and self ._is_1D_arr (lhs )):
611- arr = lhs
612- size_var = rhs .args [3 ]
613- assert self .state .typemap [size_var .name ] == types .intp
614- self ._array_sizes [arr ] = [size_var ]
615- out , start_var , count_var = self ._gen_1D_div (size_var , scope , loc ,
616- "$alloc" , "get_node_portion" , distributed_api .get_node_portion )
617- self ._array_starts [lhs ] = [start_var ]
618- self ._array_counts [lhs ] = [count_var ]
619- rhs .args .remove (size_var )
620- rhs .args .append (start_var )
621- rhs .args .append (count_var )
622-
623- def f (connect_tp , dset_tp , col_id_tp , schema_arr_tp , start_tp , count_tp ): # pragma: no cover
624- return sdc .io .xenon_ext .read_xenon_str_parallel (
625- connect_tp , dset_tp , col_id_tp , schema_arr_tp , start_tp , count_tp )
626-
627- f_block = compile_to_numba_ir (f ,
628- {'sdc' : sdc },
629- self .state .typingctx ,
630- (sdc .io .xenon_ext .xe_connect_type ,
631- sdc .io .xenon_ext .xe_dset_type ,
632- types .intp ,
633- self .state .typemap [rhs .args [3 ].name ],
634- types .intp ,
635- types .intp ),
636- self .state .typemap ,
637- self .state .calltypes ).blocks .popitem ()[1 ]
638- replace_arg_nodes (f_block , rhs .args )
639- out += f_block .body [:- 2 ]
640- out [- 1 ].target = assign .target
641-
642594 if (func_mod == 'sdc.hiframes.api' and func_name in (
643595 'to_arr_from_series' , 'ts_series_to_arr_typ' ,
644596 'to_date_series_type' , 'init_series' )
0 commit comments