Skip to content

Commit

Permalink
Remove condition import for SQLAlcRow
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajastro committed May 2, 2024
1 parent 677151d commit ea641af
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions python-sdk/src/astro/sql/operators/raw_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,11 @@
except ImportError: # pragma: no cover
from airflow.decorators import _TaskDecorator as TaskDecorator # type: ignore[attr-defined]

import airflow
import pandas as pd
from airflow.decorators.base import task_decorator_factory
from sqlalchemy.engine import ResultProxy

if airflow.__version__ >= "2.3":
from sqlalchemy.engine.row import LegacyRow as SQLAlcRow
else:
from sqlalchemy.engine.result import RowProxy as SQLAlcRow
from sqlalchemy.engine.row import LegacyRow as SQLAlcRow

from astro import settings
from astro.constants import RunRawSQLResultFormat
Expand Down

0 comments on commit ea641af

Please sign in to comment.