Skip to content

Commit

Permalink
Fix schema usage
Browse files Browse the repository at this point in the history
  • Loading branch information
janheinrichmerker committed Jul 3, 2024
1 parent 5d6118e commit 4beee15
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ray_elasticsearch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ def iter_blocks() -> Iterator[Table]:
break
yield Table.from_pylist(
mapping=hits,
schema=schema,
schema=(
schema
if schema is not None and isinstance(schema, Schema)
else None
),
)
search_after = max(
hit["sort"]
Expand Down

0 comments on commit 4beee15

Please sign in to comment.