You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/07/01 16:55:11 UTC

[jira] [Commented] (AIRFLOW-284) HiveHook Cursor Scope Persistency

    [ https://issues.apache.org/jira/browse/AIRFLOW-284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15359259#comment-15359259 ] 

ASF subversion and git services commented on AIRFLOW-284:
---------------------------------------------------------

Commit a9f9fe560a7ca7bf03ee577616ab38344e0d73b7 in incubator-airflow's branch refs/heads/master from sherwian_williamson
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=a9f9fe5 ]

[AIRFLOW-284] HiveServer2Hook fix for cursor scope for get_results

Dear Airflow Maintainers,

Please accept this PR that addresses the following issues:
- *(replace with a link to AIRFLOW-X)*

Detail:
The function `get_results` implemented in the `HiveServer2Hook` does not execute multiple commands passed to it in a list, in the singular cursor scope. This has caused SQL statements that depend on the execution of `add jar` and `set` commands to fail as they are being executed in different cursor scopes which are not persistent.
The code has been updated to have the cursor object persistent.

Testing Done:

Reminders for contributors:
* Your PR's title must reference an issue on [Airflow's JIRA](https://issues.apache.org/jira/browse/AIRFLOW/). For example, a PR called "[AIRFLOW-1] My Amazing PR" would close JIRA issue #1. Please open a new issue if required!
* Please squash your commits when possible and follow the [7 rules of good Git commits](http://chris.beams.io/posts/git-commit/#seven-rules).

mistercrunch

Closes #1629 from sherwian/hivehook_fx


> HiveHook Cursor Scope Persistency
> ---------------------------------
>
>                 Key: AIRFLOW-284
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-284
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: hive_hooks, hooks
>    Affects Versions: Airflow 2.0
>         Environment: Apache
>            Reporter: Sherwain Williamson
>            Assignee: Sherwain Williamson
>             Fix For: Airflow 2.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The function `get_results` implemented in the `HiveServer2Hook` does not execute multiple commands passed to it in a list, in the singular cursor scope. This has caused SQL statements that depend on the execution of add `jar` and `set` commands to fail as they are being executed in different cursor scopes which are not persistent.
> The code has been updated to have the cursor object persistent.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)