diff --git a/python/python/lance/dataset.py b/python/python/lance/dataset.py index 5b6a4064d29..9616784a75a 100644 --- a/python/python/lance/dataset.py +++ b/python/python/lance/dataset.py @@ -3466,7 +3466,7 @@ def sql(self, sql: str) -> "SqlQueryBuilder": import lance dataset = lance.dataset("/tmp/data.lance") query = dataset.sql("SELECT id, name FROM dataset WHERE age > 30").build() - query.to_list() + query.to_batch_records() """ return SqlQueryBuilder(self._ds.sql(sql)) @@ -3575,24 +3575,6 @@ def to_stream_reader(self) -> pa.RecordBatchReader: """ return self._query.to_stream_reader() - def explain_plan(self, verbose: bool = False, analyze: bool = False) -> str: - """ - Explain the query plan. - - Parameters - ---------- - verbose: bool, default False - If True, print the verbose plan. - analyze: bool, default False - If True, analyze the query and print the statistics. - - Returns - ------- - str - The query plan. - """ - return self._query.explain_plan(verbose, analyze) - class SqlQueryBuilder: """