Skip to content

Commit

Permalink
Better cleanup of optional arrow support
Browse files Browse the repository at this point in the history
  • Loading branch information
alippai authored Oct 18, 2024
1 parent 83dc0f6 commit cd287c0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
1 change: 0 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ py.install_sources(
'turbodbc/data_types.py',
'turbodbc/api_constants.py',
'turbodbc/connection.py',
'turbodbc/arrow_support.py',
'turbodbc/exceptions.py',
'turbodbc/constructors.py',
'turbodbc/cursor.py',
Expand Down
11 changes: 0 additions & 11 deletions turbodbc/arrow_support.py

This file was deleted.

5 changes: 2 additions & 3 deletions turbodbc/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
make_numpy_result_set,
make_parameter_set,
make_row_based_result_set,
set_numpy_parameters,
set_arrow_parameters,
set_numpy_parameters
)

from .exceptions import InterfaceError, translate_exceptions
Expand Down Expand Up @@ -184,8 +185,6 @@ def _num_chunks(c):
return c.num_chunks

if isinstance(columns, pa.Table):
from turbodbc.arrow_support import set_arrow_parameters # type: ignore

for column in columns.itercolumns():
if _num_chunks(column) != 1:
raise NotImplementedError("Chunked Arrays are " "not yet supported")
Expand Down

0 comments on commit cd287c0

Please sign in to comment.