Skip to content

Commit

Permalink
Add kwargs in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
22quinn committed Aug 6, 2020
1 parent fa7192e commit e47eeb9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airflow/hooks/dbapi_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ def get_pandas_df(self, sql, parameters=None, **kwargs):
:type sql: str or list
:param parameters: The parameters to render the SQL query with.
:type parameters: dict or iterable
:param kwargs: (optional) passed into pandas.io.sql.read_sql method
:type kwargs: dict
"""
from pandas.io import sql as psql

Expand Down
2 changes: 2 additions & 0 deletions airflow/providers/apache/hive/hooks/hive.py
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,8 @@ def get_pandas_df(self, hql: Union[str, Text], # type: ignore
:type schema: str
:param hive_conf: hive_conf to execute alone with the hql.
:type hive_conf: dict
:param kwargs: (optional) passed into pandas.DataFrame constructor
:type kwargs: dict
:return: result of hive execution
:rtype: DataFrame
Expand Down
2 changes: 2 additions & 0 deletions airflow/providers/exasol/hooks/exasol.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ def get_pandas_df(self, sql, parameters=None, **kwargs):
:type sql: str or list
:param parameters: The parameters to render the SQL query with.
:type parameters: dict or iterable
:param kwargs: (optional) passed into pyexasol.ExaConnection.export_to_pandas method
:type kwargs: dict
"""
with closing(self.get_conn()) as conn:
conn.export_to_pandas(sql, query_params=parameters, **kwargs)
Expand Down
2 changes: 2 additions & 0 deletions airflow/providers/google/cloud/hooks/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ def get_pandas_df(
:param dialect: Dialect of BigQuery SQL – legacy SQL or standard SQL
defaults to use `self.use_legacy_sql` if not specified
:type dialect: str in {'legacy', 'standard'}
:param kwargs: (optional) passed into pandas_gbq.read_gbq method
:type kwargs: dict
"""
if dialect is None:
dialect = 'legacy' if self.use_legacy_sql else 'standard'
Expand Down

0 comments on commit e47eeb9

Please sign in to comment.