@@ -243,11 +243,11 @@ def cast_to_varchar(arr, *args):
243243 # If the array is a float64, we can use the fast format_double_array_strings
244244 return format_double_array_ascii (arr )
245245 if arr .dtype == numpy .int64 :
246- from opteryx .compiled .list_ops .list_cast_int64_to_bytes import list_cast_int64_to_ascii
246+ from opteryx .compiled .list_ops .list_cast_int64_to_string import list_cast_int64_to_ascii
247247
248248 return list_cast_int64_to_ascii (arr )
249249 if arr .dtype == numpy .uint64 :
250- from opteryx .compiled .list_ops .list_cast_uint64_to_bytes import list_cast_uint64_to_ascii
250+ from opteryx .compiled .list_ops .list_cast_uint64_to_string import list_cast_uint64_to_ascii
251251
252252 return list_cast_uint64_to_ascii (arr )
253253
@@ -269,11 +269,11 @@ def cast_to_blob(arr, *args):
269269
270270 return format_double_array_bytes (arr )
271271 if arr .dtype == numpy .int64 :
272- from opteryx .compiled .list_ops .list_cast_int64_to_bytes import list_cast_int64_to_bytes
272+ from opteryx .compiled .list_ops .list_cast_int64_to_string import list_cast_int64_to_bytes
273273
274274 return list_cast_int64_to_bytes (arr )
275275 if arr .dtype == numpy .uint64 :
276- from opteryx .compiled .list_ops .list_cast_uint64_to_bytes import list_cast_uint64_to_bytes
276+ from opteryx .compiled .list_ops .list_cast_uint64_to_string import list_cast_uint64_to_bytes
277277
278278 return list_cast_uint64_to_bytes (arr )
279279
@@ -313,8 +313,8 @@ def cast_to_double(arr, *args):
313313 caster = OrsoTypes .DOUBLE .parse
314314 return [caster (i ) if i is not None else None for i in arr ]
315315
316- def cast_to_int (arr , * args ):
317316
317+ def cast_to_int (arr , * args ):
318318 from opteryx .compiled .list_ops .list_cast_string_to_int import list_cast_ascii_to_int
319319 from opteryx .compiled .list_ops .list_cast_string_to_int import list_cast_bytes_to_int
320320
@@ -331,6 +331,7 @@ def cast_to_int(arr, *args):
331331 caster = OrsoTypes .INTEGER .parse
332332 return [caster (i ) if i is not None else None for i in arr ]
333333
334+
334335def _iterate_single_parameter (func ):
335336 def _inner (array ):
336337 return pyarrow .array (list (map (func , array )))
0 commit comments