Files
AldoandCursor Agent 50a2f28840 Use bulk ingest in AdbcHook.insert_rows when fast_executemany is set (#76363)
* Use bulk ingest in AdbcHook.insert_rows when fast_executemany is set

AdbcHook.insert_rows built an Arrow RecordBatch per commit_every chunk
and bound it with cursor.executemany. Several ADBC drivers run a bound
stream once per row, so the previous fast_executemany path was a no-op
that set cursor.fast_executemany inside suppress(AttributeError).

Route fast_executemany (now the default) to cursor.adbc_ingest in
append mode. Keep executemany when fast_executemany is False, and
always bind when replace=True because bulk ingest cannot carry the
dialect's conflict clause. Chunking, commits, target_fields, and
schema.table splitting are unchanged.

Co-authored-by: Aldo <aoelvp94@gmail.com>

* Fall back to binding when the ADBC driver has no bulk ingest

Co-authored-by: Aldo <aoelvp94@gmail.com>

* Use Logger spec and patch decorators in ADBC insert_rows tests

Match AGENTS.md: spec every mock, and prefer @mock.patch.object over
a with-block for the replace=True insert_rows tests.

Co-authored-by: Aldo <aoelvp94@gmail.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-11-03 16:16:15 +01:00
..
…
…

.. Licensed to the Apache Software Foundation (ASF) under one
   or more contributor license agreements.  See the NOTICE file
   distributed with this work for additional information
   regarding copyright ownership.  The ASF licenses this file
   to you under the Apache License, Version 2.0 (the
   "License"); you may not use this file except in compliance
   with the License.  You may obtain a copy of the License at

..   http://www.apache.org/licenses/LICENSE-2.0

.. Unless required by applicable law or agreed to in writing,
   software distributed under the License is distributed on an
   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   KIND, either express or implied.  See the License for the
   specific language governing permissions and limitations
   under the License.

.. NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE OVERWRITTEN!

.. IF YOU WANT TO MODIFY TEMPLATE FOR THIS FILE, YOU SHOULD MODIFY THE TEMPLATE
   ``PROVIDER_README_TEMPLATE.rst.jinja2`` IN the ``dev/breeze/src/airflow_breeze/templates`` DIRECTORY

Package ``apache-airflow-providers-apache-arrow``

Release: ``0.1.1``


`Apache Arrow <https://arrow.apache.org/>`__ provider for Airflow. Offers ``AdbcHook``,
a general-purpose hook that connects to any database supported by an
`Arrow Database Connectivity (ADBC) <https://arrow.apache.org/adbc/>`__ driver
(PostgreSQL, SQLite, DuckDB, Snowflake, BigQuery, Flight SQL, and more) and transfers data
as columnar Arrow ``RecordBatch`` objects for efficient, zero-copy bulk loads.


Provider package
----------------

This is a provider package for ``apache.arrow`` provider. All classes for this provider package
are in ``airflow.providers.apache.arrow`` python package.

You can find package information and changelog for the provider
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-apache-arrow/0.1.1/>`_.

Installation
------------

You can install this package on top of an existing Airflow installation (see ``Requirements`` below
for the minimum Airflow version supported) via
``pip install apache-airflow-providers-apache-arrow``

The package supports the following python versions: 3.11,3.12,3.13,3.14

Requirements
------------

=======================================  ======================================
PIP package                              Version required
=======================================  ======================================
``apache-airflow``                       ``>=2.11.0``
``apache-airflow-providers-common-sql``  ``>=1.28.2``
``adbc-driver-manager``                  ``>=1.7.0``
``more-itertools``                       ``>=9.0.0``
``pyarrow``                              ``>=16.1.0; python_version < "3.13"``
``pyarrow``                              ``>=18.0.0; python_version >= "3.13"``
=======================================  ======================================

Optional dependencies
----------------------

==============  =====================================================================================================================================================================
Extra           Dependencies
==============  =====================================================================================================================================================================
``sqlite``      ``adbc-driver-sqlite>=1.7.0``
``snowflake``   ``adbc-driver-snowflake>=1.7.0``
``bigquery``    ``adbc-driver-bigquery>=1.7.0``
``flightsql``   ``adbc-driver-flightsql>=1.7.0``
``postgresql``  ``adbc-driver-postgresql>=1.7.0``
``all``         ``adbc-driver-sqlite>=1.7.0``, ``adbc-driver-snowflake>=1.7.0``, ``adbc-driver-bigquery>=1.7.0``, ``adbc-driver-flightsql>=1.7.0``, ``adbc-driver-postgresql>=1.7.0``
==============  =====================================================================================================================================================================

The changelog for the provider package can be found in the
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-apache-arrow/0.1.1/changelog.html>`_.