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 67CDB200CD2 for ; Thu, 27 Jul 2017 23:15:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 65EB916BA2F; Thu, 27 Jul 2017 21:15:12 +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 AD90616BA2D for ; Thu, 27 Jul 2017 23:15:11 +0200 (CEST) Received: (qmail 65290 invoked by uid 500); 27 Jul 2017 21:15:10 -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 65281 invoked by uid 99); 27 Jul 2017 21:15:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jul 2017 21:15:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 6BD371A0A9E for ; Thu, 27 Jul 2017 21:15:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id MxeCjY0Ezzqo for ; Thu, 27 Jul 2017 21:15:08 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 5E7C85F243 for ; Thu, 27 Jul 2017 21:15:08 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 30402E0DDB for ; Thu, 27 Jul 2017 21:15:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 8970424D2F for ; Thu, 27 Jul 2017 21:15:01 +0000 (UTC) Date: Thu, 27 Jul 2017 21:15:01 +0000 (UTC) From: "Yu Ishikawa (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (AIRFLOW-1461) BigQueryOperator has a bug on destination_dataset_table MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 27 Jul 2017 21:15:12 -0000 [ https://issues.apache.org/jira/browse/AIRFLOW-1461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yu Ishikawa closed AIRFLOW-1461. -------------------------------- Resolution: Cannot Reproduce The cause is derived my environment, sorry. > BigQueryOperator has a bug on destination_dataset_table > ------------------------------------------------------- > > Key: AIRFLOW-1461 > URL: https://issues.apache.org/jira/browse/AIRFLOW-1461 > Project: Apache Airflow > Issue Type: Bug > Components: contrib, operators > Affects Versions: 1.8.2 > Reporter: Yu Ishikawa > > h3. Environment > - Python 2.7 > - apache-airflow==1.8.2rc1 > h3. Code > {noformat} > dataset_id1 = 'machine_learning_us' > table_id_prefix1 = 'stats_item_view_by_category' > destination_dataset_table1 = "%s:%s.%s_{{ ds_nodash }}" % (project_id, dataset_id1, table_id_prefix1), > destination_dataset_table1 = "%s:%s.%s" % (project_id, dataset_id1, table_id_prefix1), > t1 = BigQueryOperator( > dag=dag, > task_id=table_id_prefix1, > bigquery_conn_id=get_default_google_cloud_connection_id(), > bql=query1, > destination_dataset_table=destination_dataset_table1, > allow_large_results=True, > use_legacy_sql=False, > ) > {noformat} > h3. Log > {noformat} > [2017-07-25 20:28:56,697] {base_task_runner.py:95} INFO - Subtask: [2017-07-25 20:28:56,697] {models.py:1478} ERROR - Expected destination_dataset_table in the format of .. Got: [u'dummy-project-id:machine_learning_us.stats_item_view_by_category_20170707'] > [2017-07-25 20:28:56,697] {base_task_runner.py:95} INFO - Subtask: Traceback (most recent call last): > [2017-07-25 20:28:56,697] {base_task_runner.py:95} INFO - Subtask: File "/usr/local/bin/airflow", line 28, in > [2017-07-25 20:28:56,697] {base_task_runner.py:95} INFO - Subtask: args.func(args) > [2017-07-25 20:28:56,698] {base_task_runner.py:95} INFO - Subtask: File "/usr/local/lib/python2.7/dist-packages/airflow/bin/cli.py", line 422, in run > [2017-07-25 20:28:56,698] {base_task_runner.py:95} INFO - Subtask: pool=args.pool, > [2017-07-25 20:28:56,698] {base_task_runner.py:95} INFO - Subtask: File "/usr/local/lib/python2.7/dist-packages/airflow/utils/db.py", line 53, in wrapper > [2017-07-25 20:28:56,698] {base_task_runner.py:95} INFO - Subtask: result = func(*args, **kwargs) > [2017-07-25 20:28:56,698] {base_task_runner.py:95} INFO - Subtask: File "/usr/local/lib/python2.7/dist-packages/airflow/models.py", line 1390, in run > [2017-07-25 20:28:56,698] {base_task_runner.py:95} INFO - Subtask: result = task_copy.execute(context=context) > [2017-07-25 20:28:56,698] {base_task_runner.py:95} INFO - Subtask: File "/usr/local/lib/python2.7/dist-packages/airflow/contrib/operators/bigquery_operator.py", line 82, in execute > [2017-07-25 20:28:56,699] {base_task_runner.py:95} INFO - Subtask: self.allow_large_results, self.udf_config, self.use_legacy_sql) > [2017-07-25 20:28:56,699] {base_task_runner.py:95} INFO - Subtask: File "/usr/local/lib/python2.7/dist-packages/airflow/contrib/hooks/bigquery_hook.py", line 225, in run_query > [2017-07-25 20:28:56,699] {base_task_runner.py:95} INFO - Subtask: '.
. Got: {}').format(destination_dataset_table) > [2017-07-25 20:28:56,700] {base_task_runner.py:95} INFO - Subtask: AssertionError: Expected destination_dataset_table in the format of .
. Got: [u'dummy-project-id:machine_learning_us.stats_item_view_by_category_20170707'] > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)