Skip to content

Commit

Permalink
Merge pull request #1983 from mabel-dev/0.17.0
Browse files Browse the repository at this point in the history
0.17.0
  • Loading branch information
joocer authored Sep 5, 2024
2 parents 9e872bf + 3764a1f commit f3ab736
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions opteryx/__version__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__build__ = 767
__build__ = 768

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -29,7 +29,7 @@ class VersionStatus(Enum):
_major = 0
_minor = 17
_revision = 0
_status = VersionStatus.ALPHA
_status = VersionStatus.RELEASE

__author__ = "@joocer"
__version__ = f"{_major}.{_minor}.{_revision}" + (
Expand Down
2 changes: 1 addition & 1 deletion opteryx/connectors/capabilities/predicate_pushable.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _predicate_to_dnf(root):
raise NotSupportedError()
if root.left.node_type != NodeType.IDENTIFIER:
root.left, root.right = root.right, root.left
if root.right.type in (OrsoTypes.DATE):
if root.right.type == OrsoTypes.DATE:
date_val = root.right.value
if hasattr(date_val, "item"):
date_val = date_val.item()
Expand Down
7 changes: 7 additions & 0 deletions opteryx/operators/async_read_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import pyarrow
import pyarrow.parquet
from orso.schema import RelationSchema
from orso.schema import convert_orso_schema_to_arrow_schema

from opteryx import config
from opteryx.exceptions import DataError
Expand Down Expand Up @@ -228,3 +229,9 @@ def execute(self) -> Generator:

if morsel:
self.statistics.columns_read += morsel.num_columns
else:
self.statistics.empty_datasets += 1
arrow_schema = convert_orso_schema_to_arrow_schema(orso_schema, use_identities=True)
yield pyarrow.Table.from_arrays(
[pyarrow.array([]) for _ in arrow_schema], schema=arrow_schema
)

0 comments on commit f3ab736

Please sign in to comment.