kazanzhy commented on code in PR #25299:
URL: https://github.com/apache/airflow/pull/25299#discussion_r930319937
##########
airflow/providers/common/sql/hooks/sql.py:
##########
@@ -181,7 +181,7 @@ def get_pandas_df_by_chunks(self, sql, parameters=None, *,
chunksize, **kwargs):
with closing(self.get_conn()) as conn:
yield from psql.read_sql(sql, con=conn, params=parameters,
chunksize=chunksize, **kwargs)
- def get_records(self, sql, parameters=None):
+ def get_records(self, sql: Union[str, List[str]], parameters:
Optional[Any] = None, **kwargs: dict):
Review Comment:
```suggestion
def get_records(self, sql: Union[str, List[str]], parameters:
Optional[Union[Iterable, Mapping]] = None, **kwargs: dict):
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]