mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-02 11:49:23 +00:00
fix(ingest/databricks): Pinning databricks sdk to not fail on mypy issues (#9500)
This commit is contained in:
parent
a18c72083d
commit
cfc641f0d0
@ -274,7 +274,9 @@ powerbi_report_server = {"requests", "requests_ntlm"}
|
||||
|
||||
databricks = {
|
||||
# 0.1.11 appears to have authentication issues with azure databricks
|
||||
"databricks-sdk>=0.9.0",
|
||||
# 0.16.0 added py.typed support which caused mypy to fail. The databricks sdk is pinned until we resolve mypy issues.
|
||||
# https://github.com/databricks/databricks-sdk-py/pull/483
|
||||
"databricks-sdk>=0.9.0,<0.16.0",
|
||||
"pyspark~=3.3.0",
|
||||
"requests",
|
||||
# Version 2.4.0 includes sqlalchemy dialect, 2.8.0 includes some bug fixes
|
||||
|
||||
@ -167,7 +167,7 @@ class AwsConnectionConfig(ConfigModel):
|
||||
|
||||
return session
|
||||
|
||||
def get_credentials(self) -> Dict[str, str]:
|
||||
def get_credentials(self) -> Dict[str, Optional[str]]:
|
||||
credentials = self.get_session().get_credentials()
|
||||
if credentials is not None:
|
||||
return {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user