airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Homan (Jira)" <j...@apache.org>
Subject [jira] [Created] (AIRFLOW-5494) hive_hooks.py::run_cli method docstring is quite a mess
Date Fri, 13 Sep 2019 23:09:00 GMT
Jakob Homan created AIRFLOW-5494:
------------------------------------

             Summary: hive_hooks.py::run_cli method docstring is quite a mess
                 Key: AIRFLOW-5494
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5494
             Project: Apache Airflow
          Issue Type: Bug
          Components: hooks
    Affects Versions: 1.10.6
            Reporter: Jakob Homan


Note: This ticket's being created to facilitate a new contributor's workshop for Airflow.
After the workshop has completed, I'll mark these all available for anyone that might like
to take them on.

The run_cli method doc string is quite messed up.  It should be synced with what's really
expected.

airflow/hooks/hive_hooks.py:181
{code:java}
def run_cli(self, hql, schema=None, verbose=True, hive_conf=None):
    """
    Run an hql statement using the hive cli. If hive_conf is specified
    it should be a dict and the entries will be set as key/value pairs
    in HiveConf


    :param hive_conf: if specified these key value pairs will be passed
        to hive as ``-hiveconf "key"="value"``. Note that they will be
        passed after the ``hive_cli_params`` and thus will override
        whatever values are specified in the database.
    :type hive_conf: dict {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message