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/10/05 10:59:20 UTC

[jira] [Commented] (AIRFLOW-378) Spark-sql operator does not allow integer parameters

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

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

Commit 573fb991f4c7cecd1244be6bd687c1360f790a44 in incubator-airflow's branch refs/heads/master from [~danielvdende]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=573fb99 ]

[AIRFLOW-378] Add string casting to params of spark-sql operator

For parameters num_executors and executor_cores
add casts to strings to prevent issues when these
parameters are passed as integers (as comments specify).
Also fix minor typo that breaks the use of num-executors param.

Closes #1694 from
danielvdende/spark_sql_operator_bugfixes


> Spark-sql operator does not allow integer parameters
> ----------------------------------------------------
>
>                 Key: AIRFLOW-378
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-378
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: contrib, hooks, operators
>            Reporter: Daniel van der Ende
>            Assignee: Daniel van der Ende
>            Priority: Minor
>
> The Spark-sql hook-operator pair contains two parameters whose type is marked to be integer, but that actually cause errors when integers are passed (params in question: executor_cores and num_executors). These need to be cast to string to be able to execute spark-sql with the CLI binary.
> Also, the num_executors parameter has a minor typo which causes it to break when someone tries to use this.



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