Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 1 addition & 19 deletions python/python/lance/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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:
"""
Expand Down