langchain
langchain copied to clipboard
Add Spark SQL support
Add Spark SQL support
- Add Spark SQL support, based on SQL Database agent. It can connect to Spark via building a local/remote SparkSession.
- Include a notebook example
I tried some complicated queries (window function, table joins), and the tool works well. Compared to the Spark Dataframe agent, this tool is able to generate queries across multiple tables.
cc @hwchase17 @vowelparrot @skcoirz
Hi @dev2049, I have addressed your comments. Could you take another look?
Created a new PR which doesn't inherit from SQLDatabase: https://github.com/hwchase17/langchain/pull/4602 I am closing this one for now.