airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (AIRFLOW-378) Spark-sql operator does not allow integer parameters
Date Wed, 05 Oct 2016 10:59:20 GMT


ASF subversion and git services commented on AIRFLOW-378:

Commit 573fb991f4c7cecd1244be6bd687c1360f790a44 in incubator-airflow's branch refs/heads/master
from [~danielvdende]
[;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

> Spark-sql operator does not allow integer parameters
> ----------------------------------------------------
>                 Key: AIRFLOW-378
>                 URL:
>             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

View raw message