You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Aizhamal Nurmamat kyzy (JIRA)" <ji...@apache.org> on 2019/05/17 21:16:00 UTC
[jira] [Updated] (AIRFLOW-3733) raise NameError if hql result had
no record
[ https://issues.apache.org/jira/browse/AIRFLOW-3733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aizhamal Nurmamat kyzy updated AIRFLOW-3733:
--------------------------------------------
Labels: easyfix hive hive-hooks (was: easyfix)
Component/s: hooks
adding 'hooks' component and tagging with 'hive' label
> raise NameError if hql result had no record
> -------------------------------------------
>
> Key: AIRFLOW-3733
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3733
> Project: Apache Airflow
> Issue Type: Bug
> Components: hive_hooks, hooks
> Affects Versions: 1.10.1
> Reporter: zhongjiajie
> Assignee: zhongjiajie
> Priority: Major
> Labels: easyfix, hive, hive-hooks
> Fix For: 1.10.3
>
>
> [to_csv|https://github.com/apache/airflow/blob/233f6c750c543a669c5319c7167a68a1f5b33c16/airflow/hooks/hive_hooks.py#L881-L903] function will raise `NameError` while hql result had not record, we should init variable i like [oracle_hooks|https://github.com/apache/airflow/blob/233f6c750c543a669c5319c7167a68a1f5b33c16/airflow/hooks/oracle_hook.py#L92-L124]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)