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:18:01 UTC
[jira] [Resolved] (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 resolved AIRFLOW-3733.
---------------------------------------------
Resolution: Fixed
Resolving reopened issues for component refactor.
> 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)