Skip to content

Commit

Permalink
fix(google): set default use_legacy_sql value to False for BigQueryGe…
Browse files Browse the repository at this point in the history
…tDataOperatorAsync
  • Loading branch information
Lee-W committed Jan 25, 2024
1 parent 46ee507 commit ec4880a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion astronomer/providers/google/cloud/operators/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class BigQueryGetDataOperatorAsync(BigQueryGetDataOperator):
and set `deferrable` param to `True` instead.
"""

def __init__(self, *args: Any, **kwargs: Any) -> None:
def __init__(self, *args: Any, use_legacy_sql: bool = False, **kwargs: Any) -> None:
warnings.warn(
(
"This class is deprecated."
Expand All @@ -79,6 +79,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
)
poll_interval: float = kwargs.pop("poll_interval", 4.0)
super().__init__(*args, deferrable=True, **kwargs)
self.use_legacy_sql = use_legacy_sql
self.poll_interval = poll_interval


Expand Down

0 comments on commit ec4880a

Please sign in to comment.