Skip to content

Commit b017c04

Browse files
[Data] - Fix mongo datasource collStats invocation
Signed-off-by: Goutam V. <goutam@anyscale.com>
1 parent bc27a32 commit b017c04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ray/data/_internal/datasource/mongo_datasource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def _get_or_create_client(self):
5252
self._client, self._database, self._collection
5353
)
5454
self._avg_obj_size = self._client[self._database].command(
55-
"collstats", self._collection
55+
"collStats", self._collection
5656
)["avgObjSize"]
5757

5858
def get_read_tasks(

0 commit comments

Comments
 (0)