Skip to content

Commit

Permalink
fix(python): default value for io threads (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaneur2020 authored May 27, 2024
1 parent f2841d6 commit 59edaf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions python/databend_udf/udf.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ScalarFunction(UserDefinedFunction):
_skip_null: bool

def __init__(
self, func, input_types, result_type, name=None, io_threads=32, skip_null=None
self, func, input_types, result_type, name=None, io_threads=None, skip_null=None
):
self._func = func
self._input_schema = pa.schema(
Expand Down Expand Up @@ -138,7 +138,7 @@ def udf(
input_types: Union[List[Union[str, pa.DataType]], Union[str, pa.DataType]],
result_type: Union[str, pa.DataType],
name: Optional[str] = None,
io_threads: Optional[int] = None,
io_threads: Optional[int] = 32,
skip_null: Optional[bool] = False,
) -> Callable:
"""
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ classifiers = [
description = "Databend UDF Server"
license = { text = "Apache-2.0" }
name = "databend-udf"
version = "0.2.3"
version = "0.2.4"
readme = "README.md"
requires-python = ">=3.7"
dependencies = ["pyarrow"]
Expand Down

0 comments on commit 59edaf7

Please sign in to comment.