Skip to content

Commit 6aaf2bc

Browse files
committed
param name shouldnt change
1 parent 03e273b commit 6aaf2bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/duckdb_py/pyrelation/initialize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ static void InitializeConsumers(py::class_<DuckDBPyRelation> &m) {
8181
m.def("fetch_record_batch", &DuckDBPyRelation::ToRecordBatch,
8282
"Execute and return an Arrow Record Batch Reader that yields all rows", py::arg("rows_per_batch") = 1000000)
8383
.def("fetch_arrow_reader", &DuckDBPyRelation::ToRecordBatch,
84-
"Execute and return an Arrow Record Batch Reader that yields all rows", py::arg("rows_per_batch") = 1000000)
84+
"Execute and return an Arrow Record Batch Reader that yields all rows", py::arg("batch_size") = 1000000)
8585
.def("record_batch",
8686
[](pybind11::object &self, idx_t rows_per_batch)
8787
{
8888
PyErr_WarnEx(PyExc_DeprecationWarning,
8989
"record_batch() is deprecated, use fetch_record_batch() instead.",
9090
0);
9191
return self.attr("fetch_record_batch")(rows_per_batch);
92-
}, py::arg("rows_per_batch") = 1000000);
92+
}, py::arg("batch_size") = 1000000);
9393
}
9494

9595
static void InitializeAggregates(py::class_<DuckDBPyRelation> &m) {

0 commit comments

Comments
 (0)