You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated databricks-sql-cli to version 0.3.0. Now my authentication details - host name, HTTP path and access token - fail when I pass them directly to the command line. I get the following error:
It seems that there is one argument missing, mainly the auth_type. However, the following code suggests that in case credentials key cannot be found in the conf file, apply_credentials_from_cfg should return 3 values. In other cases, it returns 4 values.
DBSQLCli class on the other hand, always tries to unpack 4 values coming from the apply_credentials_from_cfg function. This fails in my case, as I don't pass the auth_type and therefore I only have 3 values returned by the function.
Activity
naveen-arumugam commentedon May 19, 2023
Facing the same issue; any suggestions?
naveen-arumugam commentedon May 19, 2023
It works if auth_type is added to the credentials check; not elegant, but works. Any suggestion?
https://github.com/databricks/databricks-sql-cli/blob/345ca09bcf602b45755a6137af5e83f9e673272f/dbsqlcli/main.py#LL67C24-L67C24
return hostname, http_path, access_tokenchanging the above with auth_type makes the dbsqlcli to work
return hostname, http_path, access_token, auth_typeAlso, this fails (suggesting that this file ~/.dbsqlcli/dbsqlclirc is ignored?)
This works
naveen-arumugam commentedon May 19, 2023
do we've plan to add "-f" flag for SQL files?