Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F3662200C14 for ; Tue, 7 Feb 2017 21:55:53 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id F21DC160B3E; Tue, 7 Feb 2017 20:55:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 455CF160B32 for ; Tue, 7 Feb 2017 21:55:53 +0100 (CET) Received: (qmail 15466 invoked by uid 500); 7 Feb 2017 20:55:52 -0000 Mailing-List: contact commits-help@airflow.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airflow.incubator.apache.org Delivered-To: mailing list commits@airflow.incubator.apache.org Received: (qmail 15457 invoked by uid 99); 7 Feb 2017 20:55:52 -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, 07 Feb 2017 20:55:52 +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 F19FE18C401 for ; Tue, 7 Feb 2017 20:55:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id UKv8URj7Ji71 for ; Tue, 7 Feb 2017 20:55:49 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 08C6660D2C for ; Tue, 7 Feb 2017 20:55:46 +0000 (UTC) Received: (qmail 14168 invoked by uid 99); 7 Feb 2017 20:55:46 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2017 20:55:46 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 33F9DDFBDB; Tue, 7 Feb 2017 20:55:46 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bolke@apache.org To: commits@airflow.incubator.apache.org Message-Id: <45993c66278f4a41887319c249404f5a@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: incubator-airflow git commit: [AIRFLOW-814] Fix Presto*CheckOperator.__init__ Date: Tue, 7 Feb 2017 20:55:46 +0000 (UTC) archived-at: Tue, 07 Feb 2017 20:55:54 -0000 Repository: incubator-airflow Updated Branches: refs/heads/v1-8-stable b8fd66172 -> a9eff38f5 [AIRFLOW-814] Fix Presto*CheckOperator.__init__ Use keyword args when initializing a Presto*CheckOperator. Closes #2029 from patrickmckenna/fix-presto-check- operators (cherry picked from commit d428a90286a8d34db65bb8f4d8252fbbe9665e55) Signed-off-by: Bolke de Bruin Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/a9eff38f Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/a9eff38f Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/a9eff38f Branch: refs/heads/v1-8-stable Commit: a9eff38f57dfd5af0ec48671363be8affe5c3399 Parents: b8fd661 Author: Patrick McKenna Authored: Tue Feb 7 21:54:13 2017 +0100 Committer: Bolke de Bruin Committed: Tue Feb 7 21:55:37 2017 +0100 ---------------------------------------------------------------------- airflow/operators/presto_check_operator.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/a9eff38f/airflow/operators/presto_check_operator.py ---------------------------------------------------------------------- diff --git a/airflow/operators/presto_check_operator.py b/airflow/operators/presto_check_operator.py index 6dfcdec..e6e1fd8 100644 --- a/airflow/operators/presto_check_operator.py +++ b/airflow/operators/presto_check_operator.py @@ -80,7 +80,9 @@ class PrestoValueCheckOperator(ValueCheckOperator): self, sql, pass_value, tolerance=None, presto_conn_id='presto_default', *args, **kwargs): - super(PrestoValueCheckOperator, self).__init__(sql, pass_value, tolerance, *args, **kwargs) + super(PrestoValueCheckOperator, self).__init__( + sql=sql, pass_value=pass_value, tolerance=tolerance, + *args, **kwargs) self.presto_conn_id = presto_conn_id def get_db_hook(self): @@ -110,7 +112,8 @@ class PrestoIntervalCheckOperator(IntervalCheckOperator): presto_conn_id='presto_default', *args, **kwargs): super(PrestoIntervalCheckOperator, self).__init__( - table, metrics_thresholds, date_filter_column, days_back, + table=table, metrics_thresholds=metrics_thresholds, + date_filter_column=date_filter_column, days_back=days_back, *args, **kwargs) self.presto_conn_id = presto_conn_id