SQL query capabilities in LanceDB Enterprise for analytical queries and data exploration.
Enterprise-onlyLanceDB Enterprise comes with an SQL endpoint that can be used for analytical queries and data exploration. The SQL endpoint is designed to be compatible with the
Arrow FlightSQL protocol, which allows you to use any Arrow FlightSQL-compatible client to query your data.
There are Flight SQL clients available for most languages and tools. If you find that your
preferred language or tool is not listed here, please reach out to us and we can help you find a solution. The following examples demonstrate how to install the Python and TypeScript
clients.
Copy
# The `flightsql-dbapi` package provides a Python DB API 2 interface to the# LanceDB SQL endpoint. You can use it to connect to the SQL endpoint and# execute queries directly and get back results in pyarrow format.pip install flightsql-dbapi
LanceDB uses the powerful DataFusion query engine to execute SQL queries. This means that
you can use a wide variety of SQL syntax and functions to query your data. For more detailed
information on the SQL syntax and functions supported by DataFusion, please refer to the
DataFusion documentation.