I try to import class ClickHouseHook from airflow.hooks.clickhouse_hook
from airflow.hooks.clickhouse_hook import ClickHouseHook
This is no problem. No import errors here.
But when I try:
import airflow.hooks.clickhouse_hook
I have an error:
ModuleNotFoundError: No module named 'airflow.hooks.clickhouse_hook'
And I can't understand how it works? I have no module named clickhouse_hook in directory airflow.hooks, but how can I import class ClickHouseHook without error in this way?