eskarimov opened a new pull request #19835: URL: https://github.com/apache/airflow/pull/19835
related: PR #19736 and feature request #18999 The PR intends to refactor `DatabricksHook` and related classes as a preparation step before introducing Deferrable Operator for Databricks. Main points: - Use `int` type for `run_id` and `job_id`. Databricks docs specifies it as integer. Also, actual responses from Databricks API return integer, not string. - Fix filling AAD headers. - Move AAD token validation into a separate function, covered with tests. - Change initialisation of `RunState` - make it explicit that `run_state` might be None. Currently there's a tiny comment in the code telling that result_state might be None in case a job is still running. - Align quotation style -- 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]
