Skip to content

Commit

Permalink
FEAT-#3793: Added support for getArrowTable() (#3799)
Browse files Browse the repository at this point in the history
* FEAT-#3793: Added invocation of getArrowTable

Signed-off-by: Gleb Novichkov <gleb.novichkov@intel.com>
  • Loading branch information
novichkovg committed Dec 8, 2021
1 parent cde6390 commit 6882ec2
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,13 @@ def run_exec_plan(cls, plan, index_cols, dtypes, columns):

curs = omniSession.executeRA(cmd_prefix + calcite_json)
assert curs
rb = curs.getArrowRecordBatch()
assert rb is not None
at = pyarrow.Table.from_batches([rb])
if hasattr(curs, "getArrowTable"):
at = curs.getArrowTable()
else:
rb = curs.getArrowRecordBatch()
assert rb is not None
at = pyarrow.Table.from_batches([rb])
assert at is not None

res = np.empty((1, 1), dtype=np.dtype(object))
# workaround for https://github.com/modin-project/modin/issues/1851
Expand Down

0 comments on commit 6882ec2

Please sign in to comment.