apache-airflow-providers-common-sql 3.1.0__tar.gz → 3.2.0rc1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/PKG-INFO +14 -10
  2. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/README.rst +6 -4
  3. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/docs/changelog.rst +40 -0
  4. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/docs/commits.rst +0 -1
  5. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/docs/dataframes.rst +16 -16
  6. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/docs/index.rst +6 -4
  7. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/docs/operators.rst +2 -2
  8. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/docs/supported-database-types.rst +14 -14
  9. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/provider.yaml +2 -1
  10. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/pyproject.toml +12 -8
  11. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/__init__.py +1 -1
  12. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/datafusion/engine.py +40 -70
  13. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/datafusion/object_storage_provider.py +80 -99
  14. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/operators/sql.py +2 -1
  15. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/datafusion/test_engine.py +64 -164
  16. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/datafusion/test_object_storage_provider.py +255 -127
  17. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/operators/test_sql.py +26 -0
  18. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/.gitignore +0 -0
  19. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/LICENSE +0 -0
  20. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/NOTICE +0 -0
  21. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/docs/.latest-doc-only-change.txt +0 -0
  22. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/docs/conf.py +0 -0
  23. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/docs/connections.rst +0 -0
  24. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/docs/dialects.rst +0 -0
  25. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/docs/installing-providers-from-sources.rst +0 -0
  26. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/docs/integration-logos/sql.png +0 -0
  27. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/docs/security.rst +0 -0
  28. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/__init__.py +0 -0
  29. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/__init__.py +0 -0
  30. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/__init__.py +0 -0
  31. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/README_API.md +0 -0
  32. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/config.py +0 -0
  33. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/datafusion/__init__.py +0 -0
  34. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/datafusion/base.py +0 -0
  35. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/datafusion/exceptions.py +0 -0
  36. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/datafusion/format_handlers.py +0 -0
  37. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/decorators/__init__.py +0 -0
  38. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/decorators/analytics.py +0 -0
  39. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/decorators/sql.py +0 -0
  40. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/dialects/__init__.py +0 -0
  41. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/dialects/dialect.py +0 -0
  42. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/dialects/dialect.pyi +0 -0
  43. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/doc/adr/0001-record-architecture-decisions.md +0 -0
  44. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/doc/adr/0002-return-common-data-structure-from-dbapihook-derived-hooks.md +0 -0
  45. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/doc/adr/0003-introduce-notion-of-dialects-in-dbapihook.md +0 -0
  46. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/example_dags/__init__.py +0 -0
  47. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/example_dags/example_analytics.py +0 -0
  48. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/get_provider_info.py +0 -0
  49. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/get_provider_info.pyi +0 -0
  50. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/hooks/__init__.py +0 -0
  51. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/hooks/handlers.py +0 -0
  52. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/hooks/handlers.pyi +0 -0
  53. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/hooks/lineage.py +0 -0
  54. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/hooks/lineage.pyi +0 -0
  55. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/hooks/sql.py +0 -0
  56. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/hooks/sql.pyi +0 -0
  57. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/operators/__init__.py +0 -0
  58. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/operators/analytics.py +0 -0
  59. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/operators/generic_transfer.py +0 -0
  60. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/operators/generic_transfer.pyi +0 -0
  61. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/sensors/__init__.py +0 -0
  62. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/sensors/sql.py +0 -0
  63. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/sensors/sql.pyi +0 -0
  64. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/triggers/__init__.py +0 -0
  65. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/triggers/sql.py +0 -0
  66. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/triggers/sql.pyi +0 -0
  67. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/src/airflow/providers/common/sql/version_compat.py +0 -0
  68. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/conftest.py +0 -0
  69. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/system/__init__.py +0 -0
  70. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/system/common/__init__.py +0 -0
  71. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/system/common/sql/__init__.py +0 -0
  72. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/system/common/sql/example_generic_transfer.py +0 -0
  73. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/system/common/sql/example_sql_bulk_load.py +0 -0
  74. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/system/common/sql/example_sql_column_table_check.py +0 -0
  75. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/system/common/sql/example_sql_execute_query.py +0 -0
  76. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/system/common/sql/example_sql_insert_rows.py +0 -0
  77. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/system/common/sql/example_sql_sensor.py +0 -0
  78. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/system/common/sql/example_sql_threshold_check.py +0 -0
  79. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/system/common/sql/example_sql_value_check.py +0 -0
  80. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/__init__.py +0 -0
  81. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/__init__.py +0 -0
  82. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/__init__.py +0 -0
  83. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/datafusion/__init__.py +0 -0
  84. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/datafusion/test_base.py +0 -0
  85. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/datafusion/test_exceptions.py +0 -0
  86. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/datafusion/test_format_handlers.py +0 -0
  87. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/decorators/__init__.py +0 -0
  88. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/decorators/test_analytics.py +0 -0
  89. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/decorators/test_sql.py +0 -0
  90. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/dialects/__init__.py +0 -0
  91. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/dialects/test_dialect.py +0 -0
  92. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/hooks/__init__.py +0 -0
  93. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/hooks/test_dbapi.py +0 -0
  94. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/hooks/test_handlers.py +0 -0
  95. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/hooks/test_lineage.py +0 -0
  96. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/hooks/test_sql.py +0 -0
  97. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/hooks/test_sqlparse.py +0 -0
  98. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/operators/__init__.py +0 -0
  99. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/operators/test_analytics.py +0 -0
  100. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/operators/test_generic_transfer.py +0 -0
  101. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/operators/test_sql_execute.py +0 -0
  102. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/sensors/__init__.py +0 -0
  103. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/sensors/test_sql.py +0 -0
  104. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/test_config.py +0 -0
  105. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/triggers/__init__.py +0 -0
  106. {apache_airflow_providers_common_sql-3.1.0 → apache_airflow_providers_common_sql-3.2.0rc1}/tests/unit/common/sql/triggers/test_sql.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: apache-airflow-providers-common-sql
3
- Version: 3.1.0
3
+ Version: 3.2.0rc1
4
4
  Summary: Provider package apache-airflow-providers-common-sql for Apache Airflow
5
5
  Keywords: airflow-provider,common.sql,airflow,integration
6
6
  Author-email: Apache Software Foundation <dev@airflow.apache.org>
@@ -22,14 +22,15 @@ Classifier: Programming Language :: Python :: 3.14
22
22
  Classifier: Topic :: System :: Monitoring
23
23
  License-File: LICENSE
24
24
  License-File: NOTICE
25
- Requires-Dist: apache-airflow>=2.11.0
26
- Requires-Dist: apache-airflow-providers-common-compat>=1.23.0
25
+ Requires-Dist: apache-airflow>=2.11.0rc1
26
+ Requires-Dist: apache-airflow-providers-common-compat>=1.23.0rc1
27
27
  Requires-Dist: sqlparse>=0.5.1
28
28
  Requires-Dist: more-itertools>=9.0.0
29
29
  Requires-Dist: methodtools>=0.4.7
30
- Requires-Dist: apache-airflow-providers-amazon ; extra == "amazon"
30
+ Requires-Dist: apache-airflow-providers-amazon>=9.42.0rc1 ; extra == "amazon"
31
31
  Requires-Dist: apache-airflow-providers-apache-iceberg ; extra == "apache-iceberg"
32
32
  Requires-Dist: datafusion>=50.0.0,<52.0.0 ; extra == "datafusion"
33
+ Requires-Dist: apache-airflow-providers-google>=23.1.0rc1 ; extra == "google"
33
34
  Requires-Dist: apache-airflow-providers-openlineage ; extra == "openlineage"
34
35
  Requires-Dist: pandas[sql-other]>=2.1.2 ; extra == "pandas" and ( python_version <"3.13")
35
36
  Requires-Dist: pandas>=2.2.3 ; extra == "pandas" and ( python_version >="3.13" and python_version <"3.14")
@@ -38,8 +39,8 @@ Requires-Dist: polars>=1.26.0 ; extra == "polars"
38
39
  Requires-Dist: pyiceberg-core>=0.8.0 ; extra == "pyiceberg-core"
39
40
  Requires-Dist: sqlalchemy>=1.4.54,!=2.1.0 ; extra == "sqlalchemy"
40
41
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
41
- Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-common-sql/3.1.0/changelog.html
42
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-common-sql/3.1.0
42
+ Project-URL: Changelog, https://airflow.staged.apache.org/docs/apache-airflow-providers-common-sql/3.2.0/changelog.html
43
+ Project-URL: Documentation, https://airflow.staged.apache.org/docs/apache-airflow-providers-common-sql/3.2.0
43
44
  Project-URL: Mastodon, https://fosstodon.org/@airflow
44
45
  Project-URL: Slack Chat, https://s.apache.org/airflow-slack
45
46
  Project-URL: Source Code, https://github.com/apache/airflow
@@ -47,6 +48,7 @@ Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
47
48
  Provides-Extra: amazon
48
49
  Provides-Extra: apache-iceberg
49
50
  Provides-Extra: datafusion
51
+ Provides-Extra: google
50
52
  Provides-Extra: openlineage
51
53
  Provides-Extra: pandas
52
54
  Provides-Extra: polars
@@ -82,7 +84,7 @@ Import-Namespace: airflow.providers.common
82
84
 
83
85
  Package ``apache-airflow-providers-common-sql``
84
86
 
85
- Release: ``3.1.0``
87
+ Release: ``3.2.0``
86
88
 
87
89
 
88
90
  `Common SQL Provider <https://en.wikipedia.org/wiki/SQL>`__
@@ -95,7 +97,7 @@ This is a provider package for ``common.sql`` provider. All classes for this pro
95
97
  are in ``airflow.providers.common.sql`` python package.
96
98
 
97
99
  You can find package information and changelog for the provider
98
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/3.1.0/>`_.
100
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/3.2.0/>`_.
99
101
 
100
102
  Installation
101
103
  ------------
@@ -137,6 +139,7 @@ Dependent package
137
139
  ==================================================================================================================== ==================
138
140
  `apache-airflow-providers-amazon <https://airflow.apache.org/docs/apache-airflow-providers-amazon>`_ ``amazon``
139
141
  `apache-airflow-providers-apache-iceberg <https://airflow.apache.org/docs/apache-airflow-providers-apache-iceberg>`_ ``apache.iceberg``
142
+ `apache-airflow-providers-google <https://airflow.apache.org/docs/apache-airflow-providers-google>`_ ``google``
140
143
  `apache-airflow-providers-openlineage <https://airflow.apache.org/docs/apache-airflow-providers-openlineage>`_ ``openlineage``
141
144
  ==================================================================================================================== ==================
142
145
 
@@ -150,12 +153,13 @@ Extra Dependencies
150
153
  ``openlineage`` ``apache-airflow-providers-openlineage``
151
154
  ``polars`` ``polars>=1.26.0``
152
155
  ``sqlalchemy`` ``sqlalchemy>=1.4.54,!=2.1.0``
153
- ``amazon`` ``apache-airflow-providers-amazon``
154
156
  ``datafusion`` ``datafusion>=50.0.0,<52.0.0``
155
157
  ``pyiceberg-core`` ``pyiceberg-core>=0.8.0``
156
158
  ``apache.iceberg`` ``apache-airflow-providers-apache-iceberg``
159
+ ``amazon`` ``apache-airflow-providers-amazon>=9.42.0``
160
+ ``google`` ``apache-airflow-providers-google>=23.1.0``
157
161
  ================== =======================================================================================================================================================================
158
162
 
159
163
  The changelog for the provider package can be found in the
160
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/3.1.0/changelog.html>`_.
164
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/3.2.0/changelog.html>`_.
161
165
 
@@ -23,7 +23,7 @@
23
23
 
24
24
  Package ``apache-airflow-providers-common-sql``
25
25
 
26
- Release: ``3.1.0``
26
+ Release: ``3.2.0``
27
27
 
28
28
 
29
29
  `Common SQL Provider <https://en.wikipedia.org/wiki/SQL>`__
@@ -36,7 +36,7 @@ This is a provider package for ``common.sql`` provider. All classes for this pro
36
36
  are in ``airflow.providers.common.sql`` python package.
37
37
 
38
38
  You can find package information and changelog for the provider
39
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/3.1.0/>`_.
39
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/3.2.0/>`_.
40
40
 
41
41
  Installation
42
42
  ------------
@@ -78,6 +78,7 @@ Dependent package
78
78
  ==================================================================================================================== ==================
79
79
  `apache-airflow-providers-amazon <https://airflow.apache.org/docs/apache-airflow-providers-amazon>`_ ``amazon``
80
80
  `apache-airflow-providers-apache-iceberg <https://airflow.apache.org/docs/apache-airflow-providers-apache-iceberg>`_ ``apache.iceberg``
81
+ `apache-airflow-providers-google <https://airflow.apache.org/docs/apache-airflow-providers-google>`_ ``google``
81
82
  `apache-airflow-providers-openlineage <https://airflow.apache.org/docs/apache-airflow-providers-openlineage>`_ ``openlineage``
82
83
  ==================================================================================================================== ==================
83
84
 
@@ -91,11 +92,12 @@ Extra Dependencies
91
92
  ``openlineage`` ``apache-airflow-providers-openlineage``
92
93
  ``polars`` ``polars>=1.26.0``
93
94
  ``sqlalchemy`` ``sqlalchemy>=1.4.54,!=2.1.0``
94
- ``amazon`` ``apache-airflow-providers-amazon``
95
95
  ``datafusion`` ``datafusion>=50.0.0,<52.0.0``
96
96
  ``pyiceberg-core`` ``pyiceberg-core>=0.8.0``
97
97
  ``apache.iceberg`` ``apache-airflow-providers-apache-iceberg``
98
+ ``amazon`` ``apache-airflow-providers-amazon>=9.42.0``
99
+ ``google`` ``apache-airflow-providers-google>=23.1.0``
98
100
  ================== =======================================================================================================================================================================
99
101
 
100
102
  The changelog for the provider package can be found in the
101
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/3.1.0/changelog.html>`_.
103
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/3.2.0/changelog.html>`_.
@@ -25,6 +25,46 @@
25
25
  Changelog
26
26
  ---------
27
27
 
28
+ 3.2.0
29
+ .....
30
+
31
+ .. note::
32
+ The S3 and GCS DataFusion object storage providers used by ``AnalyticsOperator`` moved out of
33
+ common-sql into the provider that owns the connection type. ``s3://`` sources now need
34
+ ``apache-airflow-providers-amazon[datafusion]`` and ``gs://`` sources need
35
+ ``apache-airflow-providers-google[datafusion]``; without them, resolving the storage type raises
36
+ a ``ValueError`` naming the extra to install. Connection errors for these storage types (unknown
37
+ connection type, unsupported or conflicting credential fields) now surface as
38
+ ``ObjectStoreCreationException`` instead of ``ValueError``. Importing ``S3ObjectStorageProvider``
39
+ or ``GCSObjectStorageProvider`` from
40
+ ``airflow.providers.common.sql.datafusion.object_storage_provider`` still works but emits
41
+ ``AirflowProviderDeprecationWarning``.
42
+
43
+ .. note::
44
+ ``DataFusionEngine.get_schema()`` is deprecated. Use the new ``DataFusionEngine.get_table_schema()``, which
45
+ returns ``list[dict[str, str]]`` (one dict per column with ``name`` and ``type`` keys, the same shape as
46
+ ``DbApiHook.get_table_schema()``) instead of the pre-formatted Arrow schema string.
47
+
48
+ Features
49
+ ~~~~~~~~
50
+
51
+ * ``Return structured column metadata from 'DataFusionEngine.get_schema()' (#73466)``
52
+ * ``Decouple GCS ObjectStorageProvider from common-sql into google provider (#77621)``
53
+ * ``Decouple S3 ObjectStorageProvider from common-sql into amazon provider (#64941)``
54
+
55
+ Bug Fixes
56
+ ~~~~~~~~~
57
+
58
+ * ``Read SQLInsertRowsOperator columns after the preoperator (#77778)``
59
+
60
+ Doc-only
61
+ ~~~~~~~~
62
+
63
+ * ``Normalize the license header format in the provider documentation files (#75838)``
64
+
65
+ .. Below changes are excluded from the changelog. Move them to
66
+ appropriate section above if needed. Do not delete the lines(!):
67
+
28
68
  3.1.0
29
69
  .....
30
70
 
@@ -1,4 +1,3 @@
1
-
2
1
  .. Licensed to the Apache Software Foundation (ASF) under one
3
2
  or more contributor license agreements. See the NOTICE file
4
3
  distributed with this work for additional information
@@ -1,19 +1,19 @@
1
- .. Licensed to the Apache Software Foundation (ASF) under one
2
- or more contributor license agreements. See the NOTICE file
3
- distributed with this work for additional information
4
- regarding copyright ownership. The ASF licenses this file
5
- to you under the Apache License, Version 2.0 (the
6
- "License"); you may not use this file except in compliance
7
- with the License. You may obtain a copy of the License at
8
-
9
- .. http://www.apache.org/licenses/LICENSE-2.0
10
-
11
- .. Unless required by applicable law or agreed to in writing,
12
- software distributed under the License is distributed on an
13
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- KIND, either express or implied. See the License for the
15
- specific language governing permissions and limitations
16
- under the License.
1
+ .. Licensed to the Apache Software Foundation (ASF) under one
2
+ or more contributor license agreements. See the NOTICE file
3
+ distributed with this work for additional information
4
+ regarding copyright ownership. The ASF licenses this file
5
+ to you under the Apache License, Version 2.0 (the
6
+ "License"); you may not use this file except in compliance
7
+ with the License. You may obtain a copy of the License at
8
+
9
+ .. http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ .. Unless required by applicable law or agreed to in writing,
12
+ software distributed under the License is distributed on an
13
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ KIND, either express or implied. See the License for the
15
+ specific language governing permissions and limitations
16
+ under the License.
17
17
 
18
18
  SQL Data Frames Integration
19
19
  ==============================
@@ -79,7 +79,7 @@ apache-airflow-providers-common-sql package
79
79
  `Common SQL Provider <https://en.wikipedia.org/wiki/SQL>`__
80
80
 
81
81
 
82
- Release: 3.1.0
82
+ Release: 3.2.0
83
83
 
84
84
  Provider package
85
85
  ----------------
@@ -127,6 +127,7 @@ Dependent package
127
127
  ==================================================================================================================== ==================
128
128
  `apache-airflow-providers-amazon <https://airflow.apache.org/docs/apache-airflow-providers-amazon>`_ ``amazon``
129
129
  `apache-airflow-providers-apache-iceberg <https://airflow.apache.org/docs/apache-airflow-providers-apache-iceberg>`_ ``apache.iceberg``
130
+ `apache-airflow-providers-google <https://airflow.apache.org/docs/apache-airflow-providers-google>`_ ``google``
130
131
  `apache-airflow-providers-openlineage <https://airflow.apache.org/docs/apache-airflow-providers-openlineage>`_ ``openlineage``
131
132
  ==================================================================================================================== ==================
132
133
 
@@ -148,10 +149,11 @@ Extra Dependencies
148
149
  ``openlineage`` ``apache-airflow-providers-openlineage``
149
150
  ``polars`` ``polars>=1.26.0``
150
151
  ``sqlalchemy`` ``sqlalchemy>=1.4.54,!=2.1.0``
151
- ``amazon`` ``apache-airflow-providers-amazon``
152
152
  ``datafusion`` ``datafusion>=50.0.0,<52.0.0``
153
153
  ``pyiceberg-core`` ``pyiceberg-core>=0.8.0``
154
154
  ``apache.iceberg`` ``apache-airflow-providers-apache-iceberg``
155
+ ``amazon`` ``apache-airflow-providers-amazon>=9.42.0``
156
+ ``google`` ``apache-airflow-providers-google>=23.1.0``
155
157
  ================== =======================================================================================================================================================================
156
158
 
157
159
  Downloading official packages
@@ -160,5 +162,5 @@ Downloading official packages
160
162
  You can download officially released packages and verify their checksums and signatures from the
161
163
  `Official Apache Download site <https://downloads.apache.org/airflow/providers/>`_
162
164
 
163
- * `The apache-airflow-providers-common-sql 3.1.0 sdist package <https://downloads.apache.org/airflow/providers/apache_airflow_providers_common_sql-3.1.0.tar.gz>`_ (`asc <https://downloads.apache.org/airflow/providers/apache_airflow_providers_common_sql-3.1.0.tar.gz.asc>`__, `sha512 <https://downloads.apache.org/airflow/providers/apache_airflow_providers_common_sql-3.1.0.tar.gz.sha512>`__)
164
- * `The apache-airflow-providers-common-sql 3.1.0 wheel package <https://downloads.apache.org/airflow/providers/apache_airflow_providers_common_sql-3.1.0-py3-none-any.whl>`_ (`asc <https://downloads.apache.org/airflow/providers/apache_airflow_providers_common_sql-3.1.0-py3-none-any.whl.asc>`__, `sha512 <https://downloads.apache.org/airflow/providers/apache_airflow_providers_common_sql-3.1.0-py3-none-any.whl.sha512>`__)
165
+ * `The apache-airflow-providers-common-sql 3.2.0 sdist package <https://downloads.apache.org/airflow/providers/apache_airflow_providers_common_sql-3.2.0.tar.gz>`_ (`asc <https://downloads.apache.org/airflow/providers/apache_airflow_providers_common_sql-3.2.0.tar.gz.asc>`__, `sha512 <https://downloads.apache.org/airflow/providers/apache_airflow_providers_common_sql-3.2.0.tar.gz.sha512>`__)
166
+ * `The apache-airflow-providers-common-sql 3.2.0 wheel package <https://downloads.apache.org/airflow/providers/apache_airflow_providers_common_sql-3.2.0-py3-none-any.whl>`_ (`asc <https://downloads.apache.org/airflow/providers/apache_airflow_providers_common_sql-3.2.0-py3-none-any.whl.asc>`__, `sha512 <https://downloads.apache.org/airflow/providers/apache_airflow_providers_common_sql-3.2.0-py3-none-any.whl.sha512>`__)
@@ -342,8 +342,8 @@ The Analytics Operator is ideal for performing efficient, high-performance analy
342
342
 
343
343
  Supported Storage Systems
344
344
  -------------------------
345
- - S3
346
- - GCS
345
+ - S3 (requires ``apache-airflow-providers-amazon[datafusion]``)
346
+ - GCS (requires ``apache-airflow-providers-google[datafusion]``)
347
347
  - Azure Blob Storage
348
348
  - Local File System
349
349
 
@@ -1,19 +1,19 @@
1
- .. Licensed to the Apache Software Foundation (ASF) under one
2
- or more contributor license agreements. See the NOTICE file
3
- distributed with this work for additional information
4
- regarding copyright ownership. The ASF licenses this file
5
- to you under the Apache License, Version 2.0 (the
6
- "License"); you may not use this file except in compliance
7
- with the License. You may obtain a copy of the License at
1
+ .. Licensed to the Apache Software Foundation (ASF) under one
2
+ or more contributor license agreements. See the NOTICE file
3
+ distributed with this work for additional information
4
+ regarding copyright ownership. The ASF licenses this file
5
+ to you under the Apache License, Version 2.0 (the
6
+ "License"); you may not use this file except in compliance
7
+ with the License. You may obtain a copy of the License at
8
8
 
9
- .. http://www.apache.org/licenses/LICENSE-2.0
9
+ .. http://www.apache.org/licenses/LICENSE-2.0
10
10
 
11
- .. Unless required by applicable law or agreed to in writing,
12
- software distributed under the License is distributed on an
13
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- KIND, either express or implied. See the License for the
15
- specific language governing permissions and limitations
16
- under the License.
11
+ .. Unless required by applicable law or agreed to in writing,
12
+ software distributed under the License is distributed on an
13
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ KIND, either express or implied. See the License for the
15
+ specific language governing permissions and limitations
16
+ under the License.
17
17
 
18
18
  Supported Database Types
19
19
  ========================
@@ -23,12 +23,13 @@ description: |
23
23
 
24
24
  state: ready
25
25
  lifecycle: production
26
- source-date-epoch: 1795014796
26
+ source-date-epoch: 1796153389
27
27
  # Note that those versions are maintained by release manager - do not update them manually
28
28
  # with the exception of case where other provider in sources has >= new provider version.
29
29
  # In such case adding >= NEW_VERSION and bumping to NEW_VERSION in a provider have
30
30
  # to be done in the same PR
31
31
  versions:
32
+ - 3.2.0
32
33
  - 3.1.0
33
34
  - 3.0.0
34
35
  - 2.4.0
@@ -25,7 +25,7 @@ build-backend = "flit_core.buildapi"
25
25
 
26
26
  [project]
27
27
  name = "apache-airflow-providers-common-sql"
28
- version = "3.1.0"
28
+ version = "3.2.0rc1"
29
29
  description = "Provider package apache-airflow-providers-common-sql for Apache Airflow"
30
30
  readme = "README.rst"
31
31
  license = "Apache-2.0"
@@ -58,8 +58,8 @@ requires-python = ">=3.11"
58
58
  # Make sure to run ``prek update-providers-dependencies --all-files``
59
59
  # After you modify the dependencies, and rebuild your Breeze CI image with ``breeze ci-image build``
60
60
  dependencies = [
61
- "apache-airflow>=2.11.0",
62
- "apache-airflow-providers-common-compat>=1.23.0",
61
+ "apache-airflow>=2.11.0rc1",
62
+ "apache-airflow-providers-common-compat>=1.23.0rc1",
63
63
  "sqlparse>=0.5.1",
64
64
  "more-itertools>=9.0.0",
65
65
  # The methodtools dependency is necessary since the introduction of dialects:
@@ -86,9 +86,6 @@ dependencies = [
86
86
  "sqlalchemy" = [
87
87
  "sqlalchemy>=1.4.54,!=2.1.0",
88
88
  ]
89
- "amazon" = [
90
- "apache-airflow-providers-amazon"
91
- ]
92
89
  # DataFusion 52.0.0 crate is not supported at the moment with iceberg-core
93
90
  "datafusion" = [
94
91
  "datafusion>=50.0.0,<52.0.0",
@@ -99,6 +96,12 @@ dependencies = [
99
96
  "apache.iceberg" = [
100
97
  "apache-airflow-providers-apache-iceberg"
101
98
  ]
99
+ "amazon" = [
100
+ "apache-airflow-providers-amazon>=9.42.0rc1"
101
+ ]
102
+ "google" = [
103
+ "apache-airflow-providers-google>=23.1.0rc1"
104
+ ]
102
105
 
103
106
  [dependency-groups]
104
107
  dev = [
@@ -108,6 +111,7 @@ dev = [
108
111
  "apache-airflow-providers-amazon",
109
112
  "apache-airflow-providers-apache-iceberg",
110
113
  "apache-airflow-providers-common-compat",
114
+ "apache-airflow-providers-google",
111
115
  "apache-airflow-providers-openlineage",
112
116
  # Additional devel dependencies (do not remove this line and add extra development dependencies)
113
117
  "apache-airflow-providers-common-sql[pandas]",
@@ -147,8 +151,8 @@ apache-airflow-providers-common-sql = {workspace = true}
147
151
  apache-airflow-providers-standard = {workspace = true}
148
152
 
149
153
  [project.urls]
150
- "Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-common-sql/3.1.0"
151
- "Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-common-sql/3.1.0/changelog.html"
154
+ "Documentation" = "https://airflow.staged.apache.org/docs/apache-airflow-providers-common-sql/3.2.0"
155
+ "Changelog" = "https://airflow.staged.apache.org/docs/apache-airflow-providers-common-sql/3.2.0/changelog.html"
152
156
  "Bug Tracker" = "https://github.com/apache/airflow/issues"
153
157
  "Source Code" = "https://github.com/apache/airflow"
154
158
  "Slack Chat" = "https://s.apache.org/airflow-slack"
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
29
29
 
30
30
  __all__ = ["__version__"]
31
31
 
32
- __version__ = "3.1.0"
32
+ __version__ = "3.2.0"
33
33
 
34
34
  if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
35
35
  "2.11.0"
@@ -17,12 +17,14 @@
17
17
  from __future__ import annotations
18
18
 
19
19
  import os
20
+ import warnings
20
21
  from dataclasses import replace
21
22
  from typing import TYPE_CHECKING, Any
22
23
  from urllib.parse import parse_qsl, urlsplit
23
24
 
24
25
  from datafusion import SessionContext
25
26
 
27
+ from airflow.exceptions import AirflowProviderDeprecationWarning
26
28
  from airflow.providers.common.compat.sdk import BaseHook, Connection
27
29
  from airflow.providers.common.sql.config import ConnectionConfig, DataSourceConfig, StorageType
28
30
  from airflow.providers.common.sql.datafusion.exceptions import (
@@ -30,7 +32,10 @@ from airflow.providers.common.sql.datafusion.exceptions import (
30
32
  QueryExecutionException,
31
33
  )
32
34
  from airflow.providers.common.sql.datafusion.format_handlers import get_format_handler
33
- from airflow.providers.common.sql.datafusion.object_storage_provider import get_object_storage_provider
35
+ from airflow.providers.common.sql.datafusion.object_storage_provider import (
36
+ EMBEDDED_PROVIDERS,
37
+ get_object_storage_provider,
38
+ )
34
39
  from airflow.utils.log.logging_mixin import LoggingMixin
35
40
 
36
41
 
@@ -39,7 +44,6 @@ class DataFusionEngine(LoggingMixin):
39
44
 
40
45
  def __init__(self):
41
46
  super().__init__()
42
- # TODO: session context has additional parameters via SessionConfig see what's possible we can use Possible via DataFusionHook ?
43
47
  self.df_ctx = SessionContext()
44
48
  self.registered_tables: dict[str, str] = {}
45
49
 
@@ -63,7 +67,9 @@ class DataFusionEngine(LoggingMixin):
63
67
  if datasource_config.storage_type == StorageType.LOCAL:
64
68
  connection_config = None
65
69
  else:
66
- connection_config = self._get_connection_config(datasource_config.conn_id)
70
+ connection_config = self._get_connection_config(
71
+ datasource_config.conn_id, datasource_config.storage_type
72
+ )
67
73
 
68
74
  canonical_uri = self._register_object_store(datasource_config, connection_config)
69
75
  datasource_config = replace(datasource_config, uri=canonical_uri)
@@ -136,10 +142,12 @@ class DataFusionEngine(LoggingMixin):
136
142
  except Exception as e:
137
143
  raise QueryExecutionException(f"Error while executing query: {e}")
138
144
 
139
- def _get_connection_config(self, conn_id: str) -> ConnectionConfig:
145
+ def _get_connection_config(self, conn_id: str, storage_type: StorageType | None) -> ConnectionConfig:
146
+ """Build a ConnectionConfig, resolving credentials only for storage types implemented here."""
147
+ if storage_type not in EMBEDDED_PROVIDERS:
148
+ return ConnectionConfig(conn_id=conn_id)
140
149
 
141
150
  airflow_conn = BaseHook.get_connection(conn_id)
142
-
143
151
  credentials, extra_config = self._get_credentials(airflow_conn)
144
152
 
145
153
  return ConnectionConfig(
@@ -149,25 +157,8 @@ class DataFusionEngine(LoggingMixin):
149
157
  )
150
158
 
151
159
  def _get_credentials(self, conn: Connection) -> tuple[dict[str, Any], dict[str, Any]]:
152
-
153
- credentials = {}
154
- extra_config = {}
155
-
156
- def _fetch_extra_configs(keys: list[str]) -> dict[str, Any]:
157
- conf = {}
158
- extra_dejson = conn.extra_dejson
159
- for key in keys:
160
- if key in extra_dejson:
161
- conf[key] = conn.extra_dejson[key]
162
- return conf
163
-
164
- def _get_gcp_extra_field(extra_dejson: dict[str, Any], field_name: str) -> Any:
165
- # Older Airflow connection UIs wrote custom extra fields as
166
- # extra__google_cloud_platform__<field_name> instead of the bare key; GoogleBaseHook
167
- # still reads that legacy spelling as a fallback, so this must too.
168
- if field_name in extra_dejson:
169
- return extra_dejson[field_name]
170
- return extra_dejson.get(f"extra__google_cloud_platform__{field_name}")
160
+ credentials: dict[str, Any] = {}
161
+ extra_config: dict[str, Any] = {}
171
162
 
172
163
  def _get_wasb_extra_field(extra_dejson: dict[str, Any], field_name: str) -> Any:
173
164
  # Older Airflow connection UIs wrote custom extra fields as
@@ -176,48 +167,6 @@ class DataFusionEngine(LoggingMixin):
176
167
  return extra_dejson.get(field_name, extra_dejson.get(f"extra__wasb__{field_name}"))
177
168
 
178
169
  match conn.conn_type:
179
- case "aws":
180
- try:
181
- from airflow.providers.amazon.aws.hooks.base_aws import AwsGenericHook
182
- except ImportError:
183
- from airflow.providers.common.compat.sdk import AirflowOptionalProviderFeatureException
184
-
185
- raise AirflowOptionalProviderFeatureException(
186
- "Failed to import AwsGenericHook. To use the S3 storage functionality, please install the "
187
- "apache-airflow-providers-amazon package."
188
- )
189
- aws_hook: AwsGenericHook = AwsGenericHook(aws_conn_id=conn.conn_id, client_type="s3")
190
- creds = aws_hook.get_credentials()
191
- credentials.update(
192
- {
193
- "access_key_id": conn.login or creds.access_key,
194
- "secret_access_key": conn.password or creds.secret_key,
195
- "session_token": creds.token if creds.token else None,
196
- }
197
- )
198
- credentials = self._remove_none_values(credentials)
199
- extra_config = _fetch_extra_configs(["region", "endpoint"])
200
-
201
- case "google_cloud_platform":
202
- extra_dejson = conn.extra_dejson
203
- for unsupported_field in ("key_secret_name", "credential_config_file", "impersonation_chain"):
204
- if _get_gcp_extra_field(extra_dejson, unsupported_field):
205
- raise ValueError(
206
- f"Connection field {unsupported_field!r} is not supported for DataFusion "
207
- "GCS access; only key_path, keyfile_dict, GOOGLE_APPLICATION_CREDENTIALS, or "
208
- "ambient credentials (gcloud ADC file / metadata server) are used."
209
- )
210
- key_path = _get_gcp_extra_field(extra_dejson, "key_path") or None
211
- keyfile_dict = _get_gcp_extra_field(extra_dejson, "keyfile_dict") or None
212
- if key_path and keyfile_dict:
213
- raise ValueError(
214
- "The `keyfile_dict` and `key_path` fields are mutually exclusive. "
215
- "Please provide only one value."
216
- )
217
- if not key_path and not keyfile_dict:
218
- key_path = os.environ.get("GOOGLE_APPLICATION_CREDENTIALS")
219
- credentials = self._remove_none_values({"key_path": key_path, "keyfile_dict": keyfile_dict})
220
-
221
170
  case "wasb":
222
171
  extra_dejson = conn.extra_dejson
223
172
  for unsupported_field in (
@@ -409,7 +358,28 @@ class DataFusionEngine(LoggingMixin):
409
358
  # Azure storage account names are capped at 24 characters.
410
359
  return netloc.split(".", 1)[0][:24]
411
360
 
412
- def get_schema(self, table_name: str):
413
- """Get the schema of a table."""
414
- schema = str(self.session_context.table(table_name).schema())
415
- return schema
361
+ def get_table_schema(self, table_name: str) -> list[dict[str, str]]:
362
+ """
363
+ Return column names and types for a table from its Arrow schema.
364
+
365
+ :param table_name: Name of the table registered in the session context.
366
+ :return: List of dicts with ``name`` and ``type`` keys, the same shape as
367
+ ``DbApiHook.get_table_schema()``.
368
+ """
369
+ table = self.session_context.table(table_name)
370
+ return [{"name": f.name, "type": str(f.type)} for f in table.schema()]
371
+
372
+ def get_schema(self, table_name: str) -> str:
373
+ """
374
+ Return the Arrow schema of a table as a string.
375
+
376
+ Deprecated: use :meth:`get_table_schema`, which returns structured column metadata.
377
+
378
+ :param table_name: Name of the table registered in the session context.
379
+ """
380
+ warnings.warn(
381
+ "DataFusionEngine.get_schema() is deprecated. Use DataFusionEngine.get_table_schema() instead.",
382
+ AirflowProviderDeprecationWarning,
383
+ stacklevel=2,
384
+ )
385
+ return str(self.session_context.table(table_name).schema())