langchain
bcb5f354 - community: Fix SQLDatabse.from_databricks issue when ran from Job (#24346)

Commit
1 year ago
community: Fix SQLDatabse.from_databricks issue when ran from Job (#24346) - Description: When SQLDatabase.from_databricks is ran from a Databricks Workflow job, line 205 (default_host = context.browserHostName) throws an ``AttributeError`` as the ``context`` object has no ``browserHostName`` attribute. The fix handles the exception and sets the ``default_host`` variable to null --------- Co-authored-by: lmorosdb <lmorosdb> Co-authored-by: Eugene Yurtsev <eugene@langchain.dev>
Author
Parents
Loading