Skip to content

Commit a16126d

Browse files
authored
Migrate presto provider to use airflow.sdk.configuration.conf (#59985)
1 parent d3f089c commit a16126d

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

providers/presto/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ requires-python = ">=3.10"
5959
# After you modify the dependencies, and rebuild your Breeze CI image with ``breeze ci-image build``
6060
dependencies = [
6161
"apache-airflow>=2.11.0",
62-
"apache-airflow-providers-common-compat>=1.10.1",
62+
"apache-airflow-providers-common-compat>=1.10.1", # use next version
6363
"apache-airflow-providers-common-sql>=1.26.0",
6464
"presto-python-client>=0.8.4",
6565
'pandas>=2.1.2; python_version <"3.13"',

providers/presto/src/airflow/providers/presto/hooks/presto.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@
2626
from prestodb.exceptions import DatabaseError
2727
from prestodb.transaction import IsolationLevel
2828

29-
from airflow.configuration import conf
3029
from airflow.exceptions import AirflowOptionalProviderFeatureException, AirflowProviderDeprecationWarning
31-
from airflow.providers.common.compat.sdk import AirflowException
30+
from airflow.providers.common.compat.sdk import AirflowException, conf
3231
from airflow.providers.common.sql.hooks.sql import DbApiHook
3332
from airflow.providers.presto.version_compat import AIRFLOW_V_3_0_PLUS
3433

0 commit comments

Comments
 (0)