From commits-return-29189-archive-asf-public=cust-asf.ponee.io@airflow.incubator.apache.org Thu Nov 29 09:04:02 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 7AE92180677 for ; Thu, 29 Nov 2018 09:04:02 +0100 (CET) Received: (qmail 98949 invoked by uid 500); 29 Nov 2018 08:04:01 -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 98927 invoked by uid 99); 29 Nov 2018 08:04:01 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2018 08:04:01 +0000 From: GitBox To: commits@airflow.apache.org Subject: [GitHub] tal181 commented on a change in pull request #4244: [AIRFLOW-3403] Create Athena sensor Message-ID: <154347864083.8501.10862047990460434846.gitbox@gitbox.apache.org> Date: Thu, 29 Nov 2018 08:04:00 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit tal181 commented on a change in pull request #4244: [AIRFLOW-3403] Create Athena sensor URL: https://github.com/apache/incubator-airflow/pull/4244#discussion_r237383269 ########## File path: airflow/contrib/sensors/aws_athena_sensor.py ########## @@ -0,0 +1,77 @@ +# -*- coding: utf-8 -*- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + + +from airflow.exceptions import AirflowException +from airflow.utils.decorators import apply_defaults +from airflow.contrib.hooks.aws_athena_hook import AWSAthenaHook +from airflow.sensors.base_sensor_operator import BaseSensorOperator + + +class AthenaSensor(BaseSensorOperator): + """ + Asks for the state of the Query until it reaches a failure state or success state. Review comment: done ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services