astronomer / airflow-provider-duckdb

A provider package for DuckDB
Apache License 2.0
14 stars 3 forks source link

Add `connection_types` to `get_provider_info()` entrypoint #8

Closed josh-fell closed 1 year ago

josh-fell commented 1 year ago

As of Airflow 2.2, the hook-class-names property has been deprecated for use in the get_provider_info() entrypoint in provider packages in favor of connection-types. However, if the provider needs to support Airflow versions <2.2 (which this provider does) than both hook-class-names and connection-types should exist in the entrypoint.

Also, users will see this warning in webserver logs due to missing connection-types on Airflow versions 2.2+:

DeprecationWarning: The provider airflow-provider-duckdb uses `hook-class-names` property in provider-info and has no `connection-types` one. The 'hook-class-names' property has been deprecated in favour of 'connection-types' in Airflow 2.2. Use **both** in case you want to have backwards compatibility with Airflow < 2.2