From commits-return-66795-archive-asf-public=cust-asf.ponee.io@airflow.apache.org Tue Sep 17 14:22:08 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 3BFD2180645 for ; Tue, 17 Sep 2019 16:22:08 +0200 (CEST) Received: (qmail 63604 invoked by uid 500); 17 Sep 2019 14:22:07 -0000 Mailing-List: contact commits-help@airflow.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airflow.apache.org Delivered-To: mailing list commits@airflow.apache.org Received: (qmail 63595 invoked by uid 99); 17 Sep 2019 14:22:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Sep 2019 14:22:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id EB002180D9A for ; Tue, 17 Sep 2019 14:22:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -112.999 X-Spam-Level: X-Spam-Status: No, score=-112.999 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id NmkGVpzO7gCV for ; Tue, 17 Sep 2019 14:22:03 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=207.244.88.153; helo=mail.apache.org; envelope-from=jira@apache.org; receiver= Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with SMTP id 6C37B7DC5D for ; Tue, 17 Sep 2019 14:22:02 +0000 (UTC) Received: (qmail 63473 invoked by uid 99); 17 Sep 2019 14:22:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Sep 2019 14:22:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B5A73E3141 for ; Tue, 17 Sep 2019 14:22:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 2DF617806B9 for ; Tue, 17 Sep 2019 14:22:00 +0000 (UTC) Date: Tue, 17 Sep 2019 14:22:00 +0000 (UTC) From: "Rosalyn Taylor (Jira)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AIRFLOW-5509) Support PATCH method in `DatabricksHook` MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Rosalyn Taylor created AIRFLOW-5509: --------------------------------------- Summary: 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 The current `DatabricksHook` [0] currently only supports GET and POST HTTP = operations against the Databricks API: [1] {code:python} if method =3D=3D 'GET': request_func =3D requests.get elif method =3D=3D 'POST': request_func =3D 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()` meth= od of the `DatabricksHook` class. [3] =C2=A0If this proposal is suitable, I'm happy to submit a PR. [0]:=C2=A0[https://github.com/apache/airflow/blob/master//airflow/contrib/h= ooks/databricks_hook.py#L83:7] [1]:=C2=A0[https://github.com/apache/airflow/blob/master//airflow/contrib/h= ooks/databricks_hook.py#L164-L169] [2]:=C2=A0[https://docs.databricks.com/api/latest/scim.html#update-user-by-= id-patch] [3]:=C2=A0[https://github.com/apache/airflow/blob/master//airflow/contrib/h= ooks/databricks_hook.py#L136] -- This message was sent by Atlassian Jira (v8.3.2#803003)