From ae2bde19e516b1bf61b6485b3cf8fcfb4faa5a0f Mon Sep 17 00:00:00 2001 From: John Kerl Date: Tue, 4 Oct 2022 10:43:32 -0400 Subject: [PATCH] read/write Table --- .github/workflows/ci.yml | 5 +++-- .github/workflows/cpp-ci.yml | 3 +-- apis/python/src/tiledbsoma/soma_dataframe.py | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e5fe93c79..8b0cb87f1d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,13 +14,14 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-22.04, macos-12, windows-2019] + os: [ubuntu-22.04, macos-11, windows-2019] python-version: ['3.8'] include: - runs-on: ubuntu-22.04 cc: gcc-11 cxx: g++-11 - - runs-on: macos-12 + # Pending https://github.com/actions/runner-images/issues/6350 + - runs-on: macos-11 cc: gcc-11 cxx: g++-11 diff --git a/.github/workflows/cpp-ci.yml b/.github/workflows/cpp-ci.yml index 31d1e6d1be..e22f826532 100644 --- a/.github/workflows/cpp-ci.yml +++ b/.github/workflows/cpp-ci.yml @@ -11,14 +11,13 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-22.04, macos-12] + os: [ubuntu-22.04, macos-11] python-version: ['3.8'] include: - runs-on: ubuntu-22.04 cc: gcc-11 cxx: g++-11 # Pending https://github.com/actions/runner-images/issues/6350 - # - runs-on: macos-12 - runs-on: macos-11 cc: gcc-11 cxx: g++-11 diff --git a/apis/python/src/tiledbsoma/soma_dataframe.py b/apis/python/src/tiledbsoma/soma_dataframe.py index e7e7d7ab97..7ce148e5bf 100644 --- a/apis/python/src/tiledbsoma/soma_dataframe.py +++ b/apis/python/src/tiledbsoma/soma_dataframe.py @@ -271,13 +271,13 @@ def _get_is_sparse(self) -> bool: return self._cached_is_sparse - def write(self, values: pa.RecordBatch) -> None: + def write(self, values: pa.Table) -> None: """ - Write an Arrow.RecordBatch to the persistent object. + Write an Arrow.Table to the persistent object. - :param values: An Arrow.RecordBatch containing all columns, including the index columns. The schema for the values must match the schema for the ``SOMADataFrame``. + :param values: An Arrow.Table containing all columns, including the index columns. The schema for the values must match the schema for the ``SOMADataFrame``. - The ``values`` Arrow RecordBatch must contain a ``soma_rowid`` (uint64) column, indicating which rows are being written. + The ``values`` Arrow Table must contain a ``soma_rowid`` (uint64) column, indicating which rows are being written. """ self._shape = None # cache-invalidate