Skip to content

Commit 93e7f1e

Browse files
author
zhanghaobo@kanzhun.com
committed
modify default page size to 20.
1 parent 0e6abd6 commit 93e7f1e

3 files changed

Lines changed: 2 additions & 9 deletions

File tree

python/src/lance_namespace_impls/hive2.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,7 @@ def drop_namespace(self, request: DropNamespaceRequest) -> DropNamespaceResponse
327327
raise
328328

329329
def list_tables(self, request: ListTablesRequest) -> ListTablesResponse:
330-
"""List tables in a database.
331-
332-
Pagination matches the Java Hive2Namespace implementation, ``limit`` defaults to 100 when unset
333-
or non-positive.
334-
"""
330+
"""List tables in a database."""
335331
try:
336332
# Root namespace has no tables
337333
if self._is_root_namespace(request.id):

python/src/lance_namespace_impls/hive2_page_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from typing import List, Optional, Tuple
88

9-
DEFAULT_LIST_TABLES_PAGE_SIZE = 100
9+
DEFAULT_LIST_TABLES_PAGE_SIZE = 20
1010

1111

1212
def normalize_list_tables_page_size(limit: Optional[int]) -> int:

python/tests/test_hive2_page_util.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# SPDX-License-Identifier: Apache-2.0
2-
# SPDX-FileCopyrightText: Copyright The Lance Authors
3-
41
"""
52
Unit tests for Hive2 list-tables pagination (Java PageUtil parity).
63

0 commit comments

Comments
 (0)