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 95A63200C14 for ; Tue, 7 Feb 2017 21:55:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 94342160B3E; Tue, 7 Feb 2017 20:55:00 +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 DBCB0160B32 for ; Tue, 7 Feb 2017 21:54:59 +0100 (CET) Received: (qmail 5092 invoked by uid 500); 7 Feb 2017 20:54:59 -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 5083 invoked by uid 99); 7 Feb 2017 20:54:59 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2017 20:54:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 9085FC0C5C for ; Tue, 7 Feb 2017 20:54:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id LjXq50hMMyGL for ; Tue, 7 Feb 2017 20:54:56 +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 AA89D5F473 for ; Tue, 7 Feb 2017 20:54:55 +0000 (UTC) Received: (qmail 5057 invoked by uid 99); 7 Feb 2017 20:54:54 -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:54:54 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D60B8DFBDB; Tue, 7 Feb 2017 20:54:54 +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: <3445412802314001a75ddc46c40d3cd2@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:54:54 +0000 (UTC) archived-at: Tue, 07 Feb 2017 20:55:00 -0000 Repository: incubator-airflow Updated Branches: refs/heads/master ad15f5efd -> d428a9028 [AIRFLOW-814] Fix Presto*CheckOperator.__init__ Use keyword args when initializing a Presto*CheckOperator. Closes #2029 from patrickmckenna/fix-presto-check- operators Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/d428a902 Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/d428a902 Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/d428a902 Branch: refs/heads/master Commit: d428a90286a8d34db65bb8f4d8252fbbe9665e55 Parents: ad15f5e Author: Patrick McKenna Authored: Tue Feb 7 21:54:13 2017 +0100 Committer: Bolke de Bruin Committed: Tue Feb 7 21:54:20 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/d428a902/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