Skip to content

Commit 570d09a

Browse files
committed
Make from_pyarrow_expression_str private
1 parent 827fe46 commit 570d09a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

python/arcticdb/version_store/processing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def get_name(self):
257257

258258

259259
@classmethod
260-
def from_pyarrow_expression_str(cls, expression_str : str, function_map : Optional[Dict[str, Callable]] = None) -> "ExpressionNode":
260+
def _from_pyarrow_expression_str(cls, expression_str : str, function_map : Optional[Dict[str, Callable]] = None) -> "ExpressionNode":
261261
"""
262262
Builds an ExpressionNode from a pyarrow expression string.
263263

python/tests/unit/arcticdb/version_store/test_query_builder_parse_pyarrow.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def df_with_all_column_types(num_rows=100):
2222

2323

2424
def compare_against_pyarrow(pyarrow_expr_str, expected_adb_qb, lib, function_map = None, expect_equal=True):
25-
adb_expr = ExpressionNode.from_pyarrow_expression_str(pyarrow_expr_str, function_map)
25+
adb_expr = ExpressionNode._from_pyarrow_expression_str(pyarrow_expr_str, function_map)
2626
q = QueryBuilder()
2727
q = q[adb_expr]
2828
assert q == expected_adb_qb
@@ -133,14 +133,14 @@ def test_broken_filters():
133133
# ill-formated filter
134134
expr = "pc.field('float_col'"
135135
with pytest.raises(ValueError):
136-
ExpressionNode.from_pyarrow_expression_str(expr)
136+
ExpressionNode._from_pyarrow_expression_str(expr)
137137

138138
# pyarrow expressions only support single comparisons
139139
expr = "1 < pc.field('int_col') < 10"
140140
with pytest.raises(ValueError):
141-
ExpressionNode.from_pyarrow_expression_str(expr)
141+
ExpressionNode._from_pyarrow_expression_str(expr)
142142

143143
# calling a mising function
144144
expr = "some.missing.function(5)"
145145
with pytest.raises(ValueError):
146-
ExpressionNode.from_pyarrow_expression_str(expr)
146+
ExpressionNode._from_pyarrow_expression_str(expr)

0 commit comments

Comments
 (0)