From 7abc94c2654b40dbc2abdbdefb14419da40458a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Mu=C3=B1oz?= Date: Wed, 10 Jun 2026 16:26:58 +0200 Subject: [PATCH] Small fix in the docs --- providers/clickhousedb/docs/connections/clickhouse.rst | 2 +- providers/clickhousedb/docs/index.rst | 2 +- providers/clickhousedb/docs/operators/clickhouse.rst | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/providers/clickhousedb/docs/connections/clickhouse.rst b/providers/clickhousedb/docs/connections/clickhouse.rst index 4507446073991..8f253fff8b9d7 100644 --- a/providers/clickhousedb/docs/connections/clickhouse.rst +++ b/providers/clickhousedb/docs/connections/clickhouse.rst @@ -74,7 +74,7 @@ Extra (optional) field adds a human-readable suffix, e.g. ``"my-pipeline"``. * ``session_settings`` *(dict)*: ClickHouse session-level settings applied to every query on this connection. These are passed directly to the ``settings`` parameter of - ``clickhouse_connect.connect()``. Common examples: + ``clickhouse_connect.get_client()``. Common examples: .. code-block:: json diff --git a/providers/clickhousedb/docs/index.rst b/providers/clickhousedb/docs/index.rst index b8345dabde4cb..fac35e6656b28 100644 --- a/providers/clickhousedb/docs/index.rst +++ b/providers/clickhousedb/docs/index.rst @@ -56,7 +56,7 @@ :maxdepth: 1 :caption: Resources - Example Dags + Example Dags PyPI Repository Installing from sources diff --git a/providers/clickhousedb/docs/operators/clickhouse.rst b/providers/clickhousedb/docs/operators/clickhouse.rst index 5ebb53a3f1c25..02bbd37fe835f 100644 --- a/providers/clickhousedb/docs/operators/clickhouse.rst +++ b/providers/clickhousedb/docs/operators/clickhouse.rst @@ -62,7 +62,7 @@ An example usage of the SQLExecuteQueryOperator to connect to ClickHouse: Querying Data ^^^^^^^^^^^^^ -Use a ``handler`` to return query results: +Query results are fetched with the default ``handler`` (``fetch_all_handler``): .. exampleinclude:: /../../clickhousedb/tests/system/clickhouse/example_clickhouse.py :language: python @@ -70,6 +70,8 @@ Use a ``handler`` to return query results: :end-before: [END howto_operator_clickhouse_query] :dedent: 4 +To return something other than the full result set, pass a custom ``handler``. For example, ``fetch_one_handler`` to fetch only the first row. + .. note:: ``session_settings`` passed to :class:`~airflow.providers.clickhousedb.hooks.clickhouse.ClickHouseHook`