zhongjiajie created AIRFLOW-3733: ------------------------------------ Summary: 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 Affects Versions: 1.10.1 Reporter: zhongjiajie Assignee: zhongjiajie
[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)