---
source: crates/ruff_linter/src/rules/airflow/mod.rs
---
AIR302_pig.py:6:1: AIR302 [*] `airflow.hooks.pig_hook.PigCliHook` is moved into `apache-pig` provider in Airflow 3.0;
  |
4 | from airflow.operators.pig_operator import PigOperator
5 |
6 | PigCliHook()
  | ^^^^^^^^^^ AIR302
7 | PigOperator()
  |
  = help: Install `apache-airflow-providers-apache-pig>=1.0.0` and use `PigCliHook` from `airflow.providers.apache.pig.hooks.pig` instead.

ℹ Unsafe fix
1 1 | from __future__ import annotations
2 2 | 
3   |-from airflow.hooks.pig_hook import PigCliHook
4 3 | from airflow.operators.pig_operator import PigOperator
  4 |+from airflow.providers.apache.pig.hooks.pig import PigCliHook
5 5 | 
6 6 | PigCliHook()
7 7 | PigOperator()

AIR302_pig.py:7:1: AIR302 [*] `airflow.operators.pig_operator.PigOperator` is moved into `apache-pig` provider in Airflow 3.0;
  |
6 | PigCliHook()
7 | PigOperator()
  | ^^^^^^^^^^^ AIR302
  |
  = help: Install `apache-airflow-providers-apache-pig>=1.0.0` and use `PigOperator` from `airflow.providers.apache.pig.operators.pig` instead.

ℹ Unsafe fix
1 1 | from __future__ import annotations
2 2 | 
3 3 | from airflow.hooks.pig_hook import PigCliHook
4   |-from airflow.operators.pig_operator import PigOperator
  4 |+from airflow.providers.apache.pig.operators.pig import PigOperator
5 5 | 
6 6 | PigCliHook()
7 7 | PigOperator()
