airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rosalyn Taylor (Jira)" <j...@apache.org>
Subject [jira] [Updated] (AIRFLOW-5509) Support PATCH method in `DatabricksHook`
Date Tue, 17 Sep 2019 14:58:00 GMT

     [ https://issues.apache.org/jira/browse/AIRFLOW-5509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rosalyn Taylor updated AIRFLOW-5509:
------------------------------------
    Priority: Major  (was: Minor)

> Support PATCH method in `DatabricksHook`
> ----------------------------------------
>
>                 Key: AIRFLOW-5509
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5509
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: hooks
>    Affects Versions: 1.10.5
>            Reporter: Rosalyn Taylor
>            Priority: Major
>
> The current `DatabricksHook` [0] currently only supports GET and POST HTTP operations
against the Databricks API: [1]
> {code:python}
> if method == 'GET':
>     request_func = requests.get
> elif method == 'POST':
>     request_func = requests.post
> else:
>     raise AirflowException('Unexpected HTTP Method: ' + method)
> {code}
> Some of the Databricks APIs require PATCH operations. [2] This ticket is to propose that
PATCH operation support is added to the `_do_api_call()` method of the `DatabricksHook` class.
[3]
>  If this proposal is suitable, I'm happy to submit a PR.
> [0]: [https://github.com/apache/airflow/blob/master//airflow/contrib/hooks/databricks_hook.py#L83:7]
> [1]: [https://github.com/apache/airflow/blob/master//airflow/contrib/hooks/databricks_hook.py#L164-L169]
> [2]: [https://docs.databricks.com/api/latest/scim.html#update-user-by-id-patch]
> [3]: [https://github.com/apache/airflow/blob/master//airflow/contrib/hooks/databricks_hook.py#L136]



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message