Deprecations¶
This is a summary of deprecated objects in latest versions of Apache Airflow Providers Packages.
Note
This is an experimental page that may not contain all deprecated entities. At the moment we only show deprecations for classes, functions, methods, properties etc. Support for an argument deprecation or an argument value deprecation will be added in the future.
apache-airflow-providers-alibaba¶
AnalyticDBSparkBaseOperator.get_hook
- use hook property instead.AnalyticDBSparkSensor.get_hook
- use hook property instead.OSSKeySensor.get_hook
- use hook property instead.
apache-airflow-providers-amazon¶
AwsBaseAsyncHook
- airflow.providers.amazon.aws.hook.base_aws.AwsBaseAsyncHook has been deprecated and will be removed in futureBaseAsyncSessionFactory
- airflow.providers.amazon.aws.hook.base_aws.BaseAsyncSessionFactory has been deprecated and will be removed in futureQuickSightHook.sts_hook
- QuickSightHook.sts_hook property is deprecated and will be removed in the future. This property used for obtain AWS Account ID, please consider to use QuickSightHook.account_id insteadRedshiftAsyncHook
- airflow.providers.amazon.aws.hook.base_aws.RedshiftAsyncHook has been deprecated and will be removed in futureDataSyncOperator.get_hook
- use hook property instead.EksCreateClusterOperator.eks_hook
- eks_hook property is deprecated and will be removed in the future. Please use hook property instead.BatchSensor.get_hook
- use hook property instead.DmsTaskBaseSensor.get_hook
- use hook property instead.EmrBaseSensor.get_hook
- use hook property instead.GlueCatalogPartitionSensor.get_hook
- use hook property instead.GlueCrawlerSensor.get_hook
- use hook property instead.QuickSightSensor.quicksight_hook
- QuickSightSensor.quicksight_hook property is deprecated, please use QuickSightSensor.hook property instead.QuickSightSensor.sts_hook
- QuickSightSensor.sts_hook property is deprecated and will be removed in the future. This property used for obtain AWS Account ID, please consider to use QuickSightSensor.hook.account_id insteadRedshiftClusterSensor.get_hook
- use hook property instead.S3KeySensor.get_hook
- use hook property instead.SageMakerBaseSensor.get_hook
- use hook property instead.SqsSensor.get_hook
- use hook property instead.StepFunctionExecutionSensor.get_hook
- use hook property instead.BatchOperatorTrigger
- use BatchJobTrigger insteadBatchSensorTrigger
- use BatchJobTrigger insteadRdsDbInstanceTrigger
- This trigger is deprecated, please use the other RDS triggers such as RdsDbDeletedTrigger, RdsDbStoppedTrigger or RdsDbAvailableTriggerAwsBaseHookMixin.region
- region is deprecated and will be removed in the future. Please use region_name instead.
apache-airflow-providers-apache-beam¶
BeamPipelineTrigger
- BeamPipelineTrigger is deprecated. Please use BeamPythonPipelineTrigger.
apache-airflow-providers-apache-drill¶
DrillOperator
- Please use airflow.providers.common.sql.operators.sql.SQLExecuteQueryOperator.
apache-airflow-providers-apache-druid¶
DruidCheckOperator
- Please use airflow.providers.common.sql.operators.sql.SQLCheckOperator.
apache-airflow-providers-apache-livy¶
LivyOperator.get_hook
- use hook property instead.
apache-airflow-providers-cncf-kubernetes¶
KubernetesPodOperator.execute_complete
- use trigger_reentry instead.PodGenerator.add_xcom_sidecar
- This function is deprecated. Please use airflow.providers.cncf.kubernetes.utils.xcom_sidecar.add_xcom_sidecar insteadPodGenerator.gen_pod
- This function is deprecated.PodGenerator.make_unique_pod_id
- This function is deprecated. Use add_pod_suffix in kubernetes_helper_functions.PodManager.follow_container_logs
- Method follow_container_logs is deprecated. Use fetch_container_logs instead with option follow=True.
apache-airflow-providers-databricks¶
DatabricksRunNowDeferrableOperator
- DatabricksRunNowDeferrableOperator has been deprecated. Please use airflow.providers.databricks.operators.DatabricksRunNowOperator with deferrable=True instead.DatabricksSubmitRunDeferrableOperator
- DatabricksSubmitRunDeferrableOperator has been deprecated. Please use airflow.providers.databricks.operators.DatabricksSubmitRunOperator with deferrable=True instead.
apache-airflow-providers-dbt-cloud¶
DbtCloudJobRunAsyncSensor
- Class DbtCloudJobRunAsyncSensor is deprecated and will be removed in a future release. Please use DbtCloudJobRunSensor and set deferrable attribute to True instead
apache-airflow-providers-docker¶
DockerOperator.get_hook
- use hook property instead.
apache-airflow-providers-elasticsearch¶
ElasticsearchHook
- Please use airflow.providers.elasticsearch.hooks.elasticsearch.ElasticsearchSQLHook.
apache-airflow-providers-fab¶
FabAirflowSecurityManagerOverride.oauth_whitelists
- The ‘oauth_whitelists’ property is deprecated. Please use ‘oauth_allow_list’ instead.
apache-airflow-providers-google¶
BigQueryBaseCursor.cancel_query
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.cancel_queryBigQueryBaseCursor.create_empty_dataset
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.create_empty_datasetBigQueryBaseCursor.create_empty_table
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.create_empty_tableBigQueryBaseCursor.create_external_table
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.create_external_tableBigQueryBaseCursor.delete_dataset
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.delete_datasetBigQueryBaseCursor.get_dataset
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.get_datasetBigQueryBaseCursor.get_dataset_tables
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.get_dataset_tablesBigQueryBaseCursor.get_dataset_tables_list
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.get_dataset_tables_listBigQueryBaseCursor.get_datasets_list
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.get_datasets_listBigQueryBaseCursor.get_schema
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.get_schemaBigQueryBaseCursor.get_tabledata
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.get_tabledataBigQueryBaseCursor.insert_all
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.insert_allBigQueryBaseCursor.patch_dataset
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.patch_datasetBigQueryBaseCursor.patch_table
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.patch_tableBigQueryBaseCursor.poll_job_complete
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.poll_job_completeBigQueryBaseCursor.run_copy
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.run_copyBigQueryBaseCursor.run_extract
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.run_extractBigQueryBaseCursor.run_grant_dataset_view_access
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.run_grant_dataset_view_accessBigQueryBaseCursor.run_load
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.run_loadBigQueryBaseCursor.run_query
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.run_queryBigQueryBaseCursor.run_table_delete
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.run_table_deleteBigQueryBaseCursor.run_table_upsert
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.run_table_upsertBigQueryBaseCursor.run_with_configuration
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.run_with_configurationBigQueryBaseCursor.update_dataset
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.update_datasetBigQueryHook.cancel_query
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.cancel_jobBigQueryHook.create_external_table
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.create_empty_table method with passing the table_resource object. This gives more flexibility than this method.BigQueryHook.credentials_path
- BigQueryHook.credentials_path property is deprecated and will be removed in the future. This property used for obtaining credentials path but no longer in actual use.BigQueryHook.get_dataset_tables_list
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.get_dataset_tables method.BigQueryHook.get_service
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.get_clientBigQueryHook.get_tabledata
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.list_rows method.BigQueryHook.patch_dataset
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.update_dataset method.BigQueryHook.patch_table
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.update_table method.BigQueryHook.run_copy
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.insert_jobBigQueryHook.run_extract
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.insert_jobBigQueryHook.run_load
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.insert_jobBigQueryHook.run_query
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.insert_jobBigQueryHook.run_table_delete
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.delete_table method.BigQueryHook.run_with_configuration
- Please use airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.insert_jobCloudBuildHook.create_build
- Please use create_build_without_waiting_for_resultDataflowHook.start_java_dataflow
- This method is deprecated. Please use airflow.providers.apache.beam.hooks.beam.start.start_java_pipeline to start pipeline and providers.google.cloud.hooks.dataflow.DataflowHook.wait_for_done to wait for the required pipeline state.DataflowHook.start_python_dataflow
- This method is deprecated. Please use airflow.providers.apache.beam.hooks.beam.start.start_python_pipeline to start pipeline and providers.google.cloud.hooks.dataflow.DataflowHook.wait_for_done to wait for the required pipeline state.GKECustomResourceHook
- The GKECustomResourceHook class is deprecated and will be removed after 01.10.2024, please use GKEKubernetesHook instead.GKEDeploymentHook
- The GKEDeploymentHook class is deprecated and will be removed after 01.10.2024, please use GKEKubernetesHook instead.GKEHook.get_client
- The get_client method has been deprecated. You should use the get_conn method.GKEHook.get_conn
- The get_conn method has been deprecated. You should use the get_cluster_manager_client method.GKEJobHook
- The GKEJobHook class is deprecated and will be removed after 01.10.2024, please use GKEKubernetesHook instead.GKEPodAsyncHook
- The GKEPodAsyncHook class is deprecated and will be removed after 01.10.2024, please use GKEKubernetesAsyncHook instead.GKEPodHook
- The GKEPodHook class is deprecated and will be removed after 01.10.2024, please use GKEKubernetesHook instead.LifeSciencesHook
- This hook is deprecated. Consider using Google Cloud Batch Operators’ hook instead. The Life Sciences API (beta) will be discontinued on July 8, 2025 in favor of Google Cloud Batch.CustomJobHook.cancel_pipeline_job
- Please use PipelineJobHook.cancel_pipeline_jobCustomJobHook.create_pipeline_job
- Please use PipelineJobHook.create_pipeline_jobCustomJobHook.delete_pipeline_job
- Please use PipelineJobHook.delete_pipeline_jobCustomJobHook.get_pipeline_job
- Please use PipelineJobHook.get_pipeline_jobCustomJobHook.list_pipeline_jobs
- Please use PipelineJobHook.list_pipeline_jobsBigQueryExecuteQueryOperator
- This operator is deprecated. Please use BigQueryInsertJobOperator.BigQueryPatchDatasetOperator
- This operator is deprecated. Please use BigQueryUpdateDatasetOperator.DataflowCreateJavaJobOperator
- Please use providers.apache.beam.operators.beam.BeamRunJavaPipelineOperator instead.DataflowCreatePythonJobOperator
- Please use providers.apache.beam.operators.beam.BeamRunPythonPipelineOperator instead.DataFusionPipelineLinkHelper.get_project_id
- Please use airflow.providers.google.cloud.utils.helpers.resource_path_to_dict instead.DataprocScaleClusterOperator
- Please use DataprocUpdateClusterOperator instead.DataprocSubmitHadoopJobOperator
- Please use DataprocSubmitJobOperator instead. You can use generate_job method to generate dictionary representing your job and use it with the new operator.DataprocSubmitHiveJobOperator
- Please use DataprocSubmitJobOperator instead. You can use generate_job method to generate dictionary representing your job and use it with the new operator.DataprocSubmitPigJobOperator
- Please use DataprocSubmitJobOperator instead. You can use generate_job method to generate dictionary representing your job and use it with the new operator.DataprocSubmitPySparkJobOperator
- Please use DataprocSubmitJobOperator instead. You can use generate_job method to generate dictionary representing your job and use it with the new operator.DataprocSubmitSparkJobOperator
- Please use DataprocSubmitJobOperator instead. You can use generate_job method to generate dictionary representing your job and use it with the new operator.DataprocSubmitSparkSqlJobOperator
- Please use DataprocSubmitJobOperator instead. You can use generate_job method to generate dictionary representing your job and use it with the new operator.GKEStartPodOperator.get_gke_config_file
- Please use fetch_cluster_info instead to get the cluster info for connecting to it.LifeSciencesRunPipelineOperator
- Consider using Google Cloud Batch Operators instead.The Life Sciences API (beta) will be discontinued on July 8, 2025 in favor of Google Cloud Batch.MLEngineCreateModelOperator
- This operator is deprecated. All the functionality of legacy MLEngine and new features are available on the Vertex AI platform. Please use appropriate VertexAI operator.MLEngineCreateVersionOperator
- This operator is deprecated. All the functionality of legacy MLEngine and new features are available on the Vertex AI platform. Please use parent_model parameter for VertexAI operators instead.MLEngineDeleteModelOperator
- This operator is deprecated. All the functionality of legacy MLEngine and new features are available on the Vertex AI platform. Please use DeleteModelOperatorMLEngineDeleteVersionOperator
- This operator is deprecated. All the functionality of legacy MLEngine and new features are available on the Vertex AI platform. Please use DeleteModelVersionOperatorMLEngineGetModelOperator
- This operator is deprecated. All the functionality of legacy MLEngine and new features are available on the Vertex AI platform. Please use GetModelOperatorMLEngineListVersionsOperator
- This operator is deprecated. All the functionality of legacy MLEngine and new features are available on the Vertex AI platform. Please use ListModelVersionsOperatorMLEngineManageModelOperator
- This operator is deprecated. Consider using operators for specific operations: MLEngineCreateModelOperator, MLEngineGetModelOperator.MLEngineManageVersionOperator
- This operator is deprecated. Consider using operators for specific operations: MLEngineCreateVersion, MLEngineSetDefaultVersion, MLEngineListVersions, MLEngineDeleteVersion.MLEngineSetDefaultVersionOperator
- This operator is deprecated. All the functionality of legacy MLEngine and new features are available on the Vertex AI platform. Please use SetDefaultVersionOnModelOperatorMLEngineStartBatchPredictionJobOperator
- This operator is deprecated. All the functionality of legacy MLEngine and new features are available on the Vertex AI platform. Please use CreateBatchPredictionJobOperatorMLEngineStartTrainingJobOperator
- This operator is deprecated. All the functionality of legacy MLEngine and new features are available on the Vertex AI platform. Please use CreateCustomPythonPackageTrainingJobOperatorMLEngineTrainingCancelJobOperator
- This operator is deprecated. All the functionality of legacy MLEngine and new features are available on the Vertex AI platform. Please use CancelCustomTrainingJobOperatorDeleteAutoMLTrainingJobOperator.training_pipeline
- training_pipeline is deprecated and will be removed in the future. Please use training_pipeline_id instead.DeleteCustomTrainingJobOperator.custom_job
- custom_job is deprecated and will be removed in the future. Please use custom_job_id instead.DeleteCustomTrainingJobOperator.training_pipeline
- training_pipeline is deprecated and will be removed in the future. Please use training_pipeline_id instead.CloudSecretManagerBackend.get_conn_uri
- Method CloudSecretManagerBackend.get_conn_uri is deprecated and will be removed in a future release. Please use method get_conn_value instead.BigQueryTableExistenceAsyncSensor
- Class BigQueryTableExistenceAsyncSensor is deprecated and will be removed in a future release. Please use BigQueryTableExistenceSensor and set deferrable attribute to True insteadBigQueryTableExistencePartitionAsyncSensor
- Class BigQueryTableExistencePartitionAsyncSensor is deprecated and will be removed in a future release. Please use BigQueryTablePartitionExistenceSensor and set deferrable attribute to True insteadCloudComposerEnvironmentSensor
- The CloudComposerEnvironmentSensor operator is deprecated. You can achieve the same functionality by using operators in deferrable or non-deferrable mode, since every operator for Cloud Composer will wait for the operation to complete.GCSObjectExistenceAsyncSensor
- Class GCSObjectExistenceAsyncSensor is deprecated and will be removed in a future release. Please use GCSObjectExistenceSensor and set deferrable attribute to True insteadGoogleBaseHook.client_info
- Please use airflow.providers.google.common.consts.CLIENT_INFO.GoogleAnalyticsHook
- The GoogleAnalyticsHook class is deprecated, please use GoogleAnalyticsAdminHook instead.GoogleAnalyticsDataImportUploadOperator
- The GoogleAnalyticsDataImportUploadOperator class is deprecated, please use GoogleAnalyticsAdminCreateDataStreamOperator instead.GoogleAnalyticsDeletePreviousDataUploadsOperator
- The GoogleAnalyticsDeletePreviousDataUploadsOperator class is deprecated, please use GoogleAnalyticsAdminDeleteDataStreamOperator instead.GoogleAnalyticsGetAdsLinkOperator
- The GoogleAnalyticsGetAdsLinkOperator class is deprecated, please use GoogleAnalyticsAdminGetGoogleAdsLinkOperator instead.GoogleAnalyticsListAccountsOperator
- The GoogleAnalyticsListAccountsOperator class is deprecated, please use GoogleAnalyticsAdminListAccountsOperator instead.GoogleAnalyticsRetrieveAdsLinksListOperator
- The GoogleAnalyticsRetrieveAdsLinksListOperator class is deprecated, please use GoogleAnalyticsAdminListGoogleAdsLinksOperator instead.
apache-airflow-providers-hashicorp¶
VaultBackend.get_conn_uri
- Method VaultBackend.get_conn_uri is deprecated and will be removed in a future release.
apache-airflow-providers-http¶
SimpleHttpOperator
- Class SimpleHttpOperator is deprecated and will be removed in a future release. Please use HttpOperator instead.
apache-airflow-providers-jdbc¶
JdbcOperator
- Please use airflow.providers.common.sql.operators.sql.SQLExecuteQueryOperator.
apache-airflow-providers-jenkins¶
JenkinsJobTriggerOperator.get_hook
- use hook property instead.
apache-airflow-providers-microsoft-azure¶
AzureContainerInstanceHook.get_messages
- get_messages() is deprecated. Related method is get_state()AzureContainerInstanceHook.get_state_exitcode_details
- get_state_exitcode_details() is deprecated. Related method is get_state()AzureDataExplorerQueryOperator.get_hook
- use hook property instead.AzureBatchOperator.get_hook
- use hook property instead.AzureKeyVaultBackend.get_conn_uri
- Method AzureKeyVaultBackend.get_conn_uri is deprecated and will be removed in a future release. Please use method get_conn_value instead.WasbBlobAsyncSensor
- Class WasbBlobAsyncSensor is deprecated and will be removed in a future release. Please use WasbBlobSensor and set deferrable attribute to True insteadAzureBlobStorageToGCSOperator
- Please use airflow.providers.google.cloud.transfers.azure_blob_to_gcs.AzureBlobStorageToGCSOperator.
apache-airflow-providers-microsoft-mssql¶
MsSqlOperator
- Please use airflow.providers.common.sql.operators.sql.SQLExecuteQueryOperator.Also, you can provide hook_params={‘schema’: <database>}.
apache-airflow-providers-mysql¶
MySqlOperator
- Please use airflow.providers.common.sql.operators.sql.SQLExecuteQueryOperator.Also, you can provide hook_params={‘schema’: <database>}.
apache-airflow-providers-openlineage¶
AirflowMappedTaskRunFacet
- To be removed in the next release. Make sure to use information from AirflowRunFacet instead.UnknownOperatorAttributeRunFacet
- To be removed in the next release. Make sure to use information from AirflowRunFacet instead.
apache-airflow-providers-oracle¶
OracleOperator
- Please use airflow.providers.common.sql.operators.sql.SQLExecuteQueryOperator.
apache-airflow-providers-pagerduty¶
PagerdutyHook.create_event
- This method will be deprecated. Please use the airflow.providers.pagerduty.hooks.PagerdutyEventsHook to interact with the Events APIPagerdutyEventsHook.create_event
- This method will be deprecated. Please use the PagerdutyEventsHook.send_event to interact with the Events API
apache-airflow-providers-postgres¶
PostgresHook.schema
- The “schema” variable has been renamed to “database” as it contained the database name.Please use “database” to get the database name.PostgresHook.schema
- The “schema” variable has been renamed to “database” as it contained the database name.Please use “database” to set the database name.PostgresOperator
- Please use airflow.providers.common.sql.operators.sql.SQLExecuteQueryOperator.Also, you can provide hook_params={‘schema’: <database>}.
apache-airflow-providers-slack¶
SqlToSlackOperator
- airflow.providers.slack.transfers.sql_to_slack.SqlToSlackOperator has been renamed and moved airflow.providers.slack.transfers.sql_to_slack_webhook.SqlToSlackWebhookOperator this operator deprecated and will be removed in futureSqlToSlackWebhookOperator.slack_conn_id
- SqlToSlackWebhookOperator.slack_conn_id property deprecated and will be removed in a future. Please use slack_webhook_conn_id instead.
apache-airflow-providers-snowflake¶
SnowflakeOperator
- This class is deprecated. Please use airflow.providers.common.sql.operators.sql.SQLExecuteQueryOperator. Also, you can provide hook_params={‘warehouse’: <warehouse>, ‘database’: <database>, ‘role’: <role>, ‘schema’: <schema>, ‘authenticator’: <authenticator>,’session_parameters’: <session_parameters>}.
apache-airflow-providers-sqlite¶
SqliteOperator
- Please use airflow.providers.common.sql.operators.sql.SQLExecuteQueryOperator.
apache-airflow-providers-ssh¶
SSHHook.create_tunnel
- SSHHook.create_tunnel is deprecated, Please use get_tunnel() instead. But please note that the order of the parameters have changed. This method will be removed in Airflow 2.0SSHOperator.exec_ssh_client_command
- exec_ssh_client_command method on SSHOperator is deprecated, call ssh_hook.exec_ssh_client_command insteadSSHOperator.get_hook
- use hook property instead.
apache-airflow-providers-trino¶
TrinoOperator
- Please use airflow.providers.common.sql.operators.sql.SQLExecuteQueryOperator.
apache-airflow-providers-vertica¶
VerticaOperator
- Please use airflow.providers.common.sql.operators.sql.SQLExecuteQueryOperator.
apache-airflow-providers-weaviate¶
WeaviateHook.get_client
- The get_client method has been renamed to get_conn