betodealmeida commented on code in PR #20320:
URL: https://github.com/apache/superset/pull/20320#discussion_r892962521


##########
docs/docs/databases/databricks.mdx:
##########
@@ -27,31 +23,60 @@ These can be found under "Configuration" -> "Advanced 
Options" -> "JDBC/ODBC".
 
 You also need an access token from "Settings" -> "User Settings" -> "Access 
Tokens".
 
-Once you have all this information, add a database of type "Databricks (Hive)" 
in Superset, and use the following SQLAlchemy URI:
+Once you have all this information, add a database of type "Databricks Native 
Connector" and use the following SQLAlchemy URI:
 
 ```
-databricks+pyhive://token:{access token}@{server hostname}:{port}/{database 
name}
+databricks+connector://token:{access_token}@{server_hostname}:{port}/{database_name}
 ```
 
 You also need to add the following configuration to "Other" -> "Engine 
Parameters", with your HTTP path:
 
+```json
+{
+    "connect_args": {"http_path": "sql/protocolv1/o/****"},
+    "http_headers": [["User-Agent", "Apache Superset"]]
+}
 ```
+
+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.

Review Comment:
   ```suggestion
   The `User-Agent` header is optional, but helps Databricks identify traffic 
from Superset. If you need to use a different user agent please reach out to 
Databricks and let them know.
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to