databricks-sql-python
databricks-sql-python copied to clipboard
Databricks SQL Connector for Python
This PR solves the proxy auth issue reported in #353. The idea is to use the *proxy_headers* argument of the *ProxyManager* instead of the *Proxy-Authorization* http header according to the...
- Throw when failed to download file - Retry properly while downloading file - Add a bunch of debug logs - Prevent thread issues TODO: http connection pools for cloud...
main(server_hostname = args.server_hostname, http_path = args.http_path, schema = args.schema, access_token = args.access_token) File "extract.py", line 24, in main dbx_extractor.execute_sql(sql_query, server_hostname, http_path, access_token) File "/mnt/azureml/cr/j/2c91464c9e0743f5860e8f48b407683d/exe/wd/dbextractor.py", line 23, in execute_sql with db_sql.connect(...
Resolves #324 MCVE ```python from datetime import datetime as DateTime from typing import TypeAlias import sqlalchemy as sa from databricks.sqlalchemy import TIMESTAMP from sqlalchemy.orm import ( DeclarativeBase, declared_attr, Mapped, mapped_column,...
# Problem I opened this issue: https://github.com/databricks/databricks-sql-python/issues/318. My use case involves using the Databricks SQL connector in a multi-threaded web application where we may not want to set the proxy...
## Description This pr updates our user-agent setting logic for the sqlalchemy dialect so that we include the sqlalchemy package version. I used this as an opportunity to reorganise the...
## Description This PR implements an additional boolean flag on `AsyncExecution` that indicates whether this execution returned directResults. When this happens, results cannot be fetched from the server again. Because...
Summary: When using the Databricks SQL Python integration to interpolate list parameters into a SQL query, the list parameters are incorrectly wrapped in double parentheses. This results in a malformed...
This is a duplicate of the relevant change from the discussion on #93. We aren't rewriting all the log messages across the connector for now. But this raises an exception...