Skip to content

Commit

Permalink
Use schema when generating tables
Browse files Browse the repository at this point in the history
  • Loading branch information
janheinrichmerker committed Jul 3, 2024
1 parent c17d413 commit 5d6118e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ray_elasticsearch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ def iter_blocks() -> Iterator[Table]:
hits = response["hits"]["hits"]
if len(hits) == 0:
break
yield Table.from_pylist(hits)
yield Table.from_pylist(
mapping=hits,
schema=schema,
)
search_after = max(
hit["sort"]
for hit in hits
Expand Down

0 comments on commit 5d6118e

Please sign in to comment.