chore: add user agent to Databricks requests (#20660)

This commit is contained in:
Beto Dealmeida
2022-07-20 08:17:52 -07:00
committed by GitHub
parent 81bd4968d0
commit 2a4c7cfb2a
3 changed files with 20 additions and 5 deletions

View File

@@ -33,13 +33,10 @@ You also need to add the following configuration to "Other" -> "Engine Parameter
```json
{
"connect_args": {"http_path": "sql/protocolv1/o/****"},
"http_headers": [["User-Agent", "Apache Superset"]]
"connect_args": {"http_path": "sql/protocolv1/o/****"}
}
```
The `User-Agent` header is optional, but helps Databricks identify traffic from Superset. If you need to use a different header please reach out to Databricks and let them know.
## Older driver
Originally Superset used `databricks-dbapi` to connect to Databricks. You might want to try it if you're having problems with the official Databricks connector: