feat(python,node): support with_row_id in Python and remote (#1784)

Needed to support hybrid search in Remote SDK.
This commit is contained in:
Will Jones
2024-11-04 11:25:45 -08:00
committed by GitHub
parent 9708d829a9
commit 3604d20ad3
7 changed files with 60 additions and 0 deletions

View File

@@ -331,6 +331,12 @@ async def test_query_async(table_async: AsyncTable):
# Also check an empty query
await check_query(table_async.query().where("id < 0"), expected_num_rows=0)
# with row id
await check_query(
table_async.query().select(["id", "vector"]).with_row_id(),
expected_columns=["id", "vector", "_rowid"],
)
@pytest.mark.asyncio
async def test_query_to_arrow_async(table_async: AsyncTable):