Skip to content

Missing explain_plan pymethod in SqlQuery #5084

@ddupg

Description

@ddupg

Execute the following code will result in an error

ds.sql("SELECT * FROM test WHERE id > 1").table_name("test").build().explain_plan(True)
self = <lance.dataset.SqlQuery object at 0x1122158e0>, verbose = True

    def explain_plan(self, verbose: bool = False) -> str:
        """
        Explain the query plan.
    
        Parameters
        ----------
        verbose: bool, default False
            If True, print the verbose plan.
    
        Returns
        -------
        str
            The query plan.
        """
>       return self._query.explain_plan(verbose)
               ^^^^^^^^^^^^^^^^^^^^^^^^
E       AttributeError: '_lib.SqlQuery' object has no attribute 'explain_plan'

../lance/dataset.py:3592: AttributeError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions