You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by gi...@apache.org on 2024/08/20 13:59:12 UTC
(datafusion-python) branch asf-site updated: Publish built docs triggered by 81d8d57cce881ebfd1cfe3c3a755b77b772285cf
This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/datafusion-python.git
The following commit(s) were added to refs/heads/asf-site by this push:
new ffccb72 Publish built docs triggered by 81d8d57cce881ebfd1cfe3c3a755b77b772285cf
ffccb72 is described below
commit ffccb720228e9bbe358886f11c3bc3233233c15b
Author: github-actions[bot] <gi...@users.noreply.github.com>
AuthorDate: Tue Aug 20 13:59:07 2024 +0000
Publish built docs triggered by 81d8d57cce881ebfd1cfe3c3a755b77b772285cf
---
_sources/api.rst.txt | 31 -
_sources/api/dataframe.rst.txt | 27 -
_sources/api/execution_context.rst.txt | 29 -
_sources/api/expression.rst.txt | 27 -
_sources/api/functions.rst.txt | 27 -
_sources/api/object_store.rst.txt | 27 -
_sources/autoapi/datafusion/catalog/index.rst.txt | 90 +
_sources/autoapi/datafusion/context/index.rst.txt | 762 ++++
.../autoapi/datafusion/dataframe/index.rst.txt | 468 ++
_sources/autoapi/datafusion/expr/index.rst.txt | 607 +++
.../autoapi/datafusion/functions/index.rst.txt | 1517 +++++++
_sources/autoapi/datafusion/index.rst.txt | 987 +++++
.../autoapi/datafusion/input/base/index.rst.txt | 55 +
_sources/autoapi/datafusion/input/index.rst.txt | 23 +
.../datafusion/input/location/index.rst.txt | 44 +
.../autoapi/datafusion/object_store/index.rst.txt | 33 +
.../autoapi/datafusion/record_batch/index.rst.txt | 75 +
.../autoapi/datafusion/substrait/index.rst.txt | 154 +
_sources/autoapi/datafusion/udf/index.rst.txt | 222 +
_sources/autoapi/index.rst.txt | 11 +
_sources/generated/datafusion.DataFrame.rst.txt | 60 -
_sources/generated/datafusion.Expr.rst.txt | 38 -
.../generated/datafusion.RuntimeConfig.rst.txt | 29 -
.../generated/datafusion.SessionConfig.rst.txt | 35 -
.../generated/datafusion.SessionContext.rst.txt | 55 -
.../datafusion.functions.functions.rst.txt | 23 -
.../datafusion.object_store.object_store.rst.txt | 23 -
_sources/index.rst.txt | 2 -
_sources/user-guide/basics.rst.txt | 14 +-
.../common-operations/aggregations.rst.txt | 2 +-
.../common-operations/basic-info.rst.txt | 8 +-
.../common-operations/expressions.rst.txt | 12 +-
.../user-guide/common-operations/functions.rst.txt | 14 +-
.../user-guide/common-operations/joins.rst.txt | 4 +-
.../common-operations/select-and-filter.rst.txt | 10 +-
.../common-operations/udf-and-udfa.rst.txt | 9 +-
.../user-guide/common-operations/windows.rst.txt | 6 +-
_sources/user-guide/configuration.rst.txt | 8 +-
_sources/user-guide/io/avro.rst.txt | 2 +-
_sources/user-guide/io/csv.rst.txt | 6 +-
_sources/user-guide/io/json.rst.txt | 2 +-
_sources/user-guide/io/parquet.rst.txt | 6 +-
_static/graphviz.css | 19 +
_static/searchtools.js | 7 +-
api.html | 466 --
api/execution_context.html | 453 --
api/functions.html | 447 --
api/object_store.html | 447 --
autoapi/datafusion/catalog/index.html | 641 +++
autoapi/datafusion/context/index.html | 1999 +++++++++
autoapi/datafusion/dataframe/index.html | 1415 ++++++
autoapi/datafusion/expr/index.html | 2380 +++++++++++
autoapi/datafusion/functions/index.html | 4492 ++++++++++++++++++++
autoapi/datafusion/index.html | 2634 ++++++++++++
autoapi/datafusion/input/base/index.html | 503 +++
.../datafusion/input/index.html | 250 +-
autoapi/datafusion/input/location/index.html | 498 +++
autoapi/datafusion/object_store/index.html | 514 +++
autoapi/datafusion/record_batch/index.html | 581 +++
autoapi/datafusion/substrait/index.html | 737 ++++
autoapi/datafusion/udf/index.html | 841 ++++
api/expression.html => autoapi/index.html | 179 +-
contributor-guide/introduction.html | 128 +-
generated/datafusion.DataFrame.html | 1170 -----
generated/datafusion.Expr.html | 775 ----
generated/datafusion.RuntimeConfig.html | 604 ---
generated/datafusion.SessionConfig.html | 706 ---
generated/datafusion.SessionContext.html | 1057 -----
generated/datafusion.functions.functions.html | 3504 ---------------
.../datafusion.object_store.object_store.html | 497 ---
genindex.html | 1695 ++++++--
index.html | 126 +-
objects.inv | Bin 2949 -> 4772 bytes
py-modindex.html | 173 +-
search.html | 117 +-
searchindex.js | 2 +-
user-guide/basics.html | 136 +-
user-guide/common-operations/aggregations.html | 158 +-
user-guide/common-operations/basic-info.html | 178 +-
user-guide/common-operations/expressions.html | 136 +-
user-guide/common-operations/functions.html | 160 +-
user-guide/common-operations/index.html | 124 +-
user-guide/common-operations/joins.html | 130 +-
.../common-operations/select-and-filter.html | 136 +-
user-guide/common-operations/udf-and-udfa.html | 133 +-
user-guide/common-operations/windows.html | 132 +-
user-guide/configuration.html | 132 +-
user-guide/introduction.html | 126 +-
user-guide/io/avro.html | 126 +-
user-guide/io/csv.html | 128 +-
user-guide/io/index.html | 124 +-
user-guide/io/json.html | 126 +-
user-guide/io/parquet.html | 128 +-
user-guide/sql.html | 124 +-
94 files changed, 25140 insertions(+), 12938 deletions(-)
diff --git a/_sources/api.rst.txt b/_sources/api.rst.txt
deleted file mode 100644
index d9f4a09..0000000
--- a/_sources/api.rst.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-.. 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.
-
-.. _api:
-
-*************
-API Reference
-*************
-
-.. toctree::
- :maxdepth: 2
-
- api/dataframe
- api/execution_context
- api/expression
- api/functions
- api/object_store
diff --git a/_sources/api/dataframe.rst.txt b/_sources/api/dataframe.rst.txt
deleted file mode 100644
index 0a3c4c8..0000000
--- a/_sources/api/dataframe.rst.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-.. 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.
-
-.. _api.dataframe:
-.. currentmodule:: datafusion
-
-DataFrame
-=========
-
-.. autosummary::
- :toctree: ../generated/
-
- DataFrame
diff --git a/_sources/api/execution_context.rst.txt b/_sources/api/execution_context.rst.txt
deleted file mode 100644
index a3bda76..0000000
--- a/_sources/api/execution_context.rst.txt
+++ /dev/null
@@ -1,29 +0,0 @@
-.. 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.
-
-.. _api.execution_context:
-.. currentmodule:: datafusion
-
-SessionContext
-==============
-
-.. autosummary::
- :toctree: ../generated/
-
- SessionConfig
- RuntimeConfig
- SessionContext
diff --git a/_sources/api/expression.rst.txt b/_sources/api/expression.rst.txt
deleted file mode 100644
index 30137d1..0000000
--- a/_sources/api/expression.rst.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-.. 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.
-
-.. _api.expression:
-.. currentmodule:: datafusion
-
-Expr
-==========
-
-.. autosummary::
- :toctree: ../generated/
-
- Expr
diff --git a/_sources/api/functions.rst.txt b/_sources/api/functions.rst.txt
deleted file mode 100644
index 958606d..0000000
--- a/_sources/api/functions.rst.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-.. 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.
-
-.. _api.functions:
-.. currentmodule:: datafusion
-
-Functions
-=========
-
-.. autosummary::
- :toctree: ../generated/
-
- functions.functions
diff --git a/_sources/api/object_store.rst.txt b/_sources/api/object_store.rst.txt
deleted file mode 100644
index 8d78f07..0000000
--- a/_sources/api/object_store.rst.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-.. 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.
-
-.. _api.object_store:
-.. currentmodule:: datafusion.object_store
-
-ObjectStore
-===========
-
-.. autosummary::
- :toctree: ../generated/
-
- object_store
\ No newline at end of file
diff --git a/_sources/autoapi/datafusion/catalog/index.rst.txt b/_sources/autoapi/datafusion/catalog/index.rst.txt
new file mode 100644
index 0000000..94fe814
--- /dev/null
+++ b/_sources/autoapi/datafusion/catalog/index.rst.txt
@@ -0,0 +1,90 @@
+datafusion.catalog
+==================
+
+.. py:module:: datafusion.catalog
+
+.. autoapi-nested-parse::
+
+ Data catalog providers.
+
+
+
+Classes
+-------
+
+.. autoapisummary::
+
+ datafusion.catalog.Catalog
+ datafusion.catalog.Database
+ datafusion.catalog.Table
+
+
+Module Contents
+---------------
+
+.. py:class:: Catalog(catalog: datafusion._internal.Catalog)
+
+ DataFusion data catalog.
+
+ This constructor is not typically called by the end user.
+
+
+ .. py:method:: database(name: str = 'public') -> Database
+
+ Returns the database with the given ``name`` from this catalog.
+
+
+
+ .. py:method:: names() -> list[str]
+
+ Returns the list of databases in this catalog.
+
+
+
+ .. py:attribute:: catalog
+
+
+.. py:class:: Database(db: datafusion._internal.Database)
+
+ DataFusion Database.
+
+ This constructor is not typically called by the end user.
+
+
+ .. py:method:: names() -> set[str]
+
+ Returns the list of all tables in this database.
+
+
+
+ .. py:method:: table(name: str) -> Table
+
+ Return the table with the given ``name`` from this database.
+
+
+
+ .. py:attribute:: db
+
+
+.. py:class:: Table(table: datafusion._internal.Table)
+
+ DataFusion table.
+
+ This constructor is not typically called by the end user.
+
+
+ .. py:method:: schema() -> pyarrow.Schema
+
+ Returns the schema associated with this table.
+
+
+
+ .. py:property:: kind
+ :type: str
+
+ Returns the kind of table.
+
+
+ .. py:attribute:: table
+
+
diff --git a/_sources/autoapi/datafusion/context/index.rst.txt b/_sources/autoapi/datafusion/context/index.rst.txt
new file mode 100644
index 0000000..d68bba3
--- /dev/null
+++ b/_sources/autoapi/datafusion/context/index.rst.txt
@@ -0,0 +1,762 @@
+datafusion.context
+==================
+
+.. py:module:: datafusion.context
+
+.. autoapi-nested-parse::
+
+ Session Context and it's associated configuration.
+
+
+
+Classes
+-------
+
+.. autoapisummary::
+
+ datafusion.context.RuntimeConfig
+ datafusion.context.SQLOptions
+ datafusion.context.SessionConfig
+ datafusion.context.SessionContext
+
+
+Module Contents
+---------------
+
+.. py:class:: RuntimeConfig
+
+ Runtime configuration options.
+
+ Create a new :py:class:`RuntimeConfig` with default values.
+
+
+ .. py:method:: with_disk_manager_disabled() -> RuntimeConfig
+
+ Disable the disk manager, attempts to create temporary files will error.
+
+ :returns: A new :py:class:`RuntimeConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_disk_manager_os() -> RuntimeConfig
+
+ Use the operating system's temporary directory for disk manager.
+
+ :returns: A new :py:class:`RuntimeConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_disk_manager_specified(*paths: str | pathlib.Path) -> RuntimeConfig
+
+ Use the specified paths for the disk manager's temporary files.
+
+ :param paths: Paths to use for the disk manager's temporary files.
+
+ :returns: A new :py:class:`RuntimeConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_fair_spill_pool(size: int) -> RuntimeConfig
+
+ Use a fair spill pool with the specified size.
+
+ This pool works best when you know beforehand the query has multiple spillable
+ operators that will likely all need to spill. Sometimes it will cause spills
+ even when there was sufficient memory (reserved for other operators) to avoid
+ doing so::
+
+ ┌───────────────────────z──────────────────────z───────────────┐
+ │ z z │
+ │ z z │
+ │ Spillable z Unspillable z Free │
+ │ Memory z Memory z Memory │
+ │ z z │
+ │ z z │
+ └───────────────────────z──────────────────────z───────────────┘
+
+ :param size: Size of the memory pool in bytes.
+
+ :returns: A new :py:class:`RuntimeConfig` object with the updated setting.
+
+ Examples usage::
+
+ config = RuntimeConfig().with_fair_spill_pool(1024)
+
+
+
+ .. py:method:: with_greedy_memory_pool(size: int) -> RuntimeConfig
+
+ Use a greedy memory pool with the specified size.
+
+ This pool works well for queries that do not need to spill or have a single
+ spillable operator. See :py:func:`with_fair_spill_pool` if there are
+ multiple spillable operators that all will spill.
+
+ :param size: Size of the memory pool in bytes.
+
+ :returns: A new :py:class:`RuntimeConfig` object with the updated setting.
+
+ Example usage::
+
+ config = RuntimeConfig().with_greedy_memory_pool(1024)
+
+
+
+ .. py:method:: with_temp_file_path(path: str | pathlib.Path) -> RuntimeConfig
+
+ Use the specified path to create any needed temporary files.
+
+ :param path: Path to use for temporary files.
+
+ :returns: A new :py:class:`RuntimeConfig` object with the updated setting.
+
+ Example usage::
+
+ config = RuntimeConfig().with_temp_file_path("/tmp")
+
+
+
+ .. py:method:: with_unbounded_memory_pool() -> RuntimeConfig
+
+ Use an unbounded memory pool.
+
+ :returns: A new :py:class:`RuntimeConfig` object with the updated setting.
+
+
+
+ .. py:attribute:: config_internal
+
+
+.. py:class:: SQLOptions
+
+ Options to be used when performing SQL queries.
+
+ Create a new :py:class:`SQLOptions` with default values.
+
+ The default values are:
+ - DDL commands are allowed
+ - DML commands are allowed
+ - Statements are allowed
+
+
+ .. py:method:: with_allow_ddl(allow: bool = True) -> SQLOptions
+
+ Should DDL (Data Definition Language) commands be run?
+
+ Examples of DDL commands include ``CREATE TABLE`` and ``DROP TABLE``.
+
+ :param allow: Allow DDL commands to be run.
+
+ :returns: A new :py:class:`SQLOptions` object with the updated setting.
+
+ Example usage::
+
+ options = SQLOptions().with_allow_ddl(True)
+
+
+
+ .. py:method:: with_allow_dml(allow: bool = True) -> SQLOptions
+
+ Should DML (Data Manipulation Language) commands be run?
+
+ Examples of DML commands include ``INSERT INTO`` and ``DELETE``.
+
+ :param allow: Allow DML commands to be run.
+
+ :returns: A new :py:class:`SQLOptions` object with the updated setting.
+
+ Example usage::
+
+ options = SQLOptions().with_allow_dml(True)
+
+
+
+ .. py:method:: with_allow_statements(allow: bool = True) -> SQLOptions
+
+ Should statements such as ``SET VARIABLE`` and ``BEGIN TRANSACTION`` be run?
+
+ :param allow: Allow statements to be run.
+
+ :returns: py:class:SQLOptions` object with the updated setting.
+ :rtype: A new
+
+ Example usage::
+
+ options = SQLOptions().with_allow_statements(True)
+
+
+
+ .. py:attribute:: options_internal
+
+
+.. py:class:: SessionConfig(config_options: dict[str, str] | None = None)
+
+ Session configuration options.
+
+ Create a new :py:class:`SessionConfig` with the given configuration options.
+
+ :param config_options: Configuration options.
+
+
+ .. py:method:: set(key: str, value: str) -> SessionConfig
+
+ Set a configuration option.
+
+ Args:
+ key: Option key.
+ value: Option value.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_batch_size(batch_size: int) -> SessionConfig
+
+ Customize batch size.
+
+ :param batch_size: Batch size.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_create_default_catalog_and_schema(enabled: bool = True) -> SessionConfig
+
+ Control if the default catalog and schema will be automatically created.
+
+ :param enabled: Whether the default catalog and schema will be
+ automatically created.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_default_catalog_and_schema(catalog: str, schema: str) -> SessionConfig
+
+ Select a name for the default catalog and shcema.
+
+ :param catalog: Catalog name.
+ :param schema: Schema name.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_information_schema(enabled: bool = True) -> SessionConfig
+
+ Enable or disable the inclusion of ``information_schema`` virtual tables.
+
+ :param enabled: Whether to include ``information_schema`` virtual tables.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_parquet_pruning(enabled: bool = True) -> SessionConfig
+
+ Enable or disable the use of pruning predicate for parquet readers.
+
+ Pruning predicates will enable the reader to skip row groups.
+
+ :param enabled: Whether to use pruning predicate for parquet readers.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_repartition_aggregations(enabled: bool = True) -> SessionConfig
+
+ Enable or disable the use of repartitioning for aggregations.
+
+ Enabling this improves parallelism.
+
+ :param enabled: Whether to use repartitioning for aggregations.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_repartition_file_min_size(size: int) -> SessionConfig
+
+ Set minimum file range size for repartitioning scans.
+
+ :param size: Minimum file range size.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_repartition_file_scans(enabled: bool = True) -> SessionConfig
+
+ Enable or disable the use of repartitioning for file scans.
+
+ :param enabled: Whether to use repartitioning for file scans.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_repartition_joins(enabled: bool = True) -> SessionConfig
+
+ Enable or disable the use of repartitioning for joins to improve parallelism.
+
+ :param enabled: Whether to use repartitioning for joins.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_repartition_sorts(enabled: bool = True) -> SessionConfig
+
+ Enable or disable the use of repartitioning for window functions.
+
+ This may improve parallelism.
+
+ :param enabled: Whether to use repartitioning for window functions.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_repartition_windows(enabled: bool = True) -> SessionConfig
+
+ Enable or disable the use of repartitioning for window functions.
+
+ This may improve parallelism.
+
+ :param enabled: Whether to use repartitioning for window functions.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_target_partitions(target_partitions: int) -> SessionConfig
+
+ Customize the number of target partitions for query execution.
+
+ Increasing partitions can increase concurrency.
+
+ :param target_partitions: Number of target partitions.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:attribute:: config_internal
+
+
+.. py:class:: SessionContext(config: SessionConfig | None = None, runtime: RuntimeConfig | None = None)
+
+ This is the main interface for executing queries and creating DataFrames.
+
+ See :ref:`user_guide_concepts` in the online documentation for more information.
+
+ Main interface for executing queries with DataFusion.
+
+ Maintains the state of the connection between a user and an instance
+ of the connection between a user and an instance of the DataFusion
+ engine.
+
+ :param config: Session configuration options.
+ :param runtime: Runtime configuration options.
+
+ Example usage:
+
+ The following example demostrates how to use the context to execute
+ a query against a CSV data source using the :py:class:`DataFrame` API::
+
+ from datafusion import SessionContext
+
+ ctx = SessionContext()
+ df = ctx.read_csv("data.csv")
+
+
+ .. py:method:: catalog(name: str = 'datafusion') -> datafusion.catalog.Catalog
+
+ Retrieve a catalog by name.
+
+
+
+ .. py:method:: create_dataframe(partitions: list[list[pyarrow.RecordBatch]], name: str | None = None, schema: pyarrow.Schema | None = None) -> datafusion.dataframe.DataFrame
+
+ Create and return a dataframe using the provided partitions.
+
+ :param partitions: :py:class:`pyarrow.RecordBatch` partitions to register.
+ :param name: Resultant dataframe name.
+ :param schema: Schema for the partitions.
+
+ :returns: DataFrame representation of the SQL query.
+
+
+
+ .. py:method:: create_dataframe_from_logical_plan(plan: datafusion._internal.LogicalPlan) -> datafusion.dataframe.DataFrame
+
+ Create a :py:class:`~datafusion.dataframe.DataFrame` from an existing plan.
+
+ :param plan: Logical plan.
+
+ :returns: DataFrame representation of the logical plan.
+
+
+
+ .. py:method:: deregister_table(name: str) -> None
+
+ Remove a table from the session.
+
+
+
+ .. py:method:: empty_table() -> datafusion.dataframe.DataFrame
+
+ Create an empty :py:class:`~datafusion.dataframe.DataFrame`.
+
+
+
+ .. py:method:: execute(plan: datafusion._internal.ExecutionPlan, partitions: int) -> datafusion.record_batch.RecordBatchStream
+
+ Execute the ``plan`` and return the results.
+
+
+
+ .. py:method:: from_arrow_table(data: pyarrow.Table, name: str | None = None) -> datafusion.dataframe.DataFrame
+
+ Create a :py:class:`~datafusion.dataframe.DataFrame` from an Arrow table.
+
+ :param data: Arrow table.
+ :param name: Name of the DataFrame.
+
+ :returns: DataFrame representation of the Arrow table.
+
+
+
+ .. py:method:: from_pandas(data: pandas.DataFrame, name: str | None = None) -> datafusion.dataframe.DataFrame
+
+ Create a :py:class:`~datafusion.dataframe.DataFrame` from a Pandas DataFrame.
+
+ :param data: Pandas DataFrame.
+ :param name: Name of the DataFrame.
+
+ :returns: DataFrame representation of the Pandas DataFrame.
+
+
+
+ .. py:method:: from_polars(data: polars.DataFrame, name: str | None = None) -> datafusion.dataframe.DataFrame
+
+ Create a :py:class:`~datafusion.dataframe.DataFrame` from a Polars DataFrame.
+
+ :param data: Polars DataFrame.
+ :param name: Name of the DataFrame.
+
+ :returns: DataFrame representation of the Polars DataFrame.
+
+
+
+ .. py:method:: from_pydict(data: dict[str, list[Any]], name: str | None = None) -> datafusion.dataframe.DataFrame
+
+ Create a :py:class:`~datafusion.dataframe.DataFrame` from a dictionary.
+
+ :param data: Dictionary of lists.
+ :param name: Name of the DataFrame.
+
+ :returns: DataFrame representation of the dictionary of lists.
+
+
+
+ .. py:method:: from_pylist(data: list[dict[str, Any]], name: str | None = None) -> datafusion.dataframe.DataFrame
+
+ Create a :py:class:`~datafusion.dataframe.DataFrame` from a list.
+
+ :param data: List of dictionaries.
+ :param name: Name of the DataFrame.
+
+ :returns: DataFrame representation of the list of dictionaries.
+
+
+
+ .. py:method:: read_avro(path: str | pathlib.Path, schema: pyarrow.Schema | None = None, file_partition_cols: list[tuple[str, str]] | None = None, file_extension: str = '.avro') -> datafusion.dataframe.DataFrame
+
+ Create a :py:class:`DataFrame` for reading Avro data source.
+
+ :param path: Path to the Avro file.
+ :param schema: The data source schema.
+ :param file_partition_cols: Partition columns.
+ :param file_extension: File extension to select.
+
+ :returns: DataFrame representation of the read Avro file
+
+
+
+ .. py:method:: read_csv(path: str | pathlib.Path, schema: pyarrow.Schema | None = None, has_header: bool = True, delimiter: str = ',', schema_infer_max_records: int = 1000, file_extension: str = '.csv', table_partition_cols: list[tuple[str, str]] | None = None, file_compression_type: str | None = None) -> datafusion.dataframe.DataFrame
+
+ Read a CSV data source.
+
+ :param path: Path to the CSV file
+ :param schema: An optional schema representing the CSV files. If None, the
+ CSV reader will try to infer it based on data in file.
+ :param has_header: Whether the CSV file have a header. If schema inference
+ is run on a file with no headers, default column names are
+ created.
+ :param delimiter: An optional column delimiter.
+ :param schema_infer_max_records: Maximum number of rows to read from CSV
+ files for schema inference if needed.
+ :param file_extension: File extension; only files with this extension are
+ selected for data input.
+ :param table_partition_cols: Partition columns.
+ :param file_compression_type: File compression type.
+
+ :returns: DataFrame representation of the read CSV files
+
+
+
+ .. py:method:: read_json(path: str | pathlib.Path, schema: pyarrow.Schema | None = None, schema_infer_max_records: int = 1000, file_extension: str = '.json', table_partition_cols: list[tuple[str, str]] | None = None, file_compression_type: str | None = None) -> datafusion.dataframe.DataFrame
+
+ Read a line-delimited JSON data source.
+
+ :param path: Path to the JSON file.
+ :param schema: The data source schema.
+ :param schema_infer_max_records: Maximum number of rows to read from JSON
+ files for schema inference if needed.
+ :param file_extension: File extension; only files with this extension are
+ selected for data input.
+ :param table_partition_cols: Partition columns.
+ :param file_compression_type: File compression type.
+
+ :returns: DataFrame representation of the read JSON files.
+
+
+
+ .. py:method:: read_parquet(path: str | pathlib.Path, table_partition_cols: list[tuple[str, str]] | None = None, parquet_pruning: bool = True, file_extension: str = '.parquet', skip_metadata: bool = True, schema: pyarrow.Schema | None = None, file_sort_order: list[list[datafusion.expr.Expr]] | None = None) -> datafusion.dataframe.DataFrame
+
+ Read a Parquet source into a :py:class:`~datafusion.dataframe.Dataframe`.
+
+ :param path: Path to the Parquet file.
+ :param table_partition_cols: Partition columns.
+ :param parquet_pruning: Whether the parquet reader should use the predicate
+ to prune row groups.
+ :param file_extension: File extension; only files with this extension are
+ selected for data input.
+ :param skip_metadata: Whether the parquet reader should skip any metadata
+ that may be in the file schema. This can help avoid schema
+ conflicts due to metadata.
+ :param schema: An optional schema representing the parquet files. If None,
+ the parquet reader will try to infer it based on data in the
+ file.
+ :param file_sort_order: Sort order for the file.
+
+ :returns: DataFrame representation of the read Parquet files
+
+
+
+ .. py:method:: read_table(table: datafusion.catalog.Table) -> datafusion.dataframe.DataFrame
+
+ Creates a :py:class:`~datafusion.dataframe.DataFrame` from a table.
+
+ For a :py:class:`~datafusion.catalog.Table` such as a
+ :py:class:`~datafusion.catalog.ListingTable`, create a
+ :py:class:`~datafusion.dataframe.DataFrame`.
+
+
+
+ .. py:method:: register_avro(name: str, path: str | pathlib.Path, schema: pyarrow.Schema | None = None, file_extension: str = '.avro', table_partition_cols: list[tuple[str, str]] | None = None) -> None
+
+ Register an Avro file as a table.
+
+ The registered table can be referenced from SQL statement executed against
+ this context.
+
+ :param name: Name of the table to register.
+ :param path: Path to the Avro file.
+ :param schema: The data source schema.
+ :param file_extension: File extension to select.
+ :param table_partition_cols: Partition columns.
+
+
+
+ .. py:method:: register_csv(name: str, path: str | pathlib.Path, schema: pyarrow.Schema | None = None, has_header: bool = True, delimiter: str = ',', schema_infer_max_records: int = 1000, file_extension: str = '.csv', file_compression_type: str | None = None) -> None
+
+ Register a CSV file as a table.
+
+ The registered table can be referenced from SQL statement executed against.
+
+ :param name: Name of the table to register.
+ :param path: Path to the CSV file.
+ :param schema: An optional schema representing the CSV file. If None, the
+ CSV reader will try to infer it based on data in file.
+ :param has_header: Whether the CSV file have a header. If schema inference
+ is run on a file with no headers, default column names are
+ created.
+ :param delimiter: An optional column delimiter.
+ :param schema_infer_max_records: Maximum number of rows to read from CSV
+ files for schema inference if needed.
+ :param file_extension: File extension; only files with this extension are
+ selected for data input.
+ :param file_compression_type: File compression type.
+
+
+
+ .. py:method:: register_dataset(name: str, dataset: pyarrow.dataset.Dataset) -> None
+
+ Register a :py:class:`pyarrow.dataset.Dataset` as a table.
+
+ :param name: Name of the table to register.
+ :param dataset: PyArrow dataset.
+
+
+
+ .. py:method:: register_json(name: str, path: str | pathlib.Path, schema: pyarrow.Schema | None = None, schema_infer_max_records: int = 1000, file_extension: str = '.json', table_partition_cols: list[tuple[str, str]] | None = None, file_compression_type: str | None = None) -> None
+
+ Register a JSON file as a table.
+
+ The registered table can be referenced from SQL statement executed
+ against this context.
+
+ :param name: Name of the table to register.
+ :param path: Path to the JSON file.
+ :param schema: The data source schema.
+ :param schema_infer_max_records: Maximum number of rows to read from JSON
+ files for schema inference if needed.
+ :param file_extension: File extension; only files with this extension are
+ selected for data input.
+ :param table_partition_cols: Partition columns.
+ :param file_compression_type: File compression type.
+
+
+
+ .. py:method:: register_listing_table(name: str, path: str | pathlib.Path, table_partition_cols: list[tuple[str, str]] | None = None, file_extension: str = '.parquet', schema: pyarrow.Schema | None = None, file_sort_order: list[list[datafusion.expr.Expr]] | None = None) -> None
+
+ Register multiple files as a single table.
+
+ Registers a :py:class:`~datafusion.catalog.Table` that can assemble multiple
+ files from locations in an :py:class:`~datafusion.object_store.ObjectStore`
+ instance.
+
+ :param name: Name of the resultant table.
+ :param path: Path to the file to register.
+ :param table_partition_cols: Partition columns.
+ :param file_extension: File extension of the provided table.
+ :param schema: The data source schema.
+ :param file_sort_order: Sort order for the file.
+
+
+
+ .. py:method:: register_object_store(schema: str, store: Any, host: str | None) -> None
+
+ Add a new object store into the session.
+
+ :param schema: The data source schema.
+ :param store: The :py:class:`~datafusion.object_store.ObjectStore` to register.
+ :param host: URL for the host.
+
+
+
+ .. py:method:: register_parquet(name: str, path: str | pathlib.Path, table_partition_cols: list[tuple[str, str]] | None = None, parquet_pruning: bool = True, file_extension: str = '.parquet', skip_metadata: bool = True, schema: pyarrow.Schema | None = None, file_sort_order: list[list[datafusion.expr.Expr]] | None = None) -> None
+
+ Register a Parquet file as a table.
+
+ The registered table can be referenced from SQL statement executed
+ against this context.
+
+ :param name: Name of the table to register.
+ :param path: Path to the Parquet file.
+ :param table_partition_cols: Partition columns.
+ :param parquet_pruning: Whether the parquet reader should use the
+ predicate to prune row groups.
+ :param file_extension: File extension; only files with this extension are
+ selected for data input.
+ :param skip_metadata: Whether the parquet reader should skip any metadata
+ that may be in the file schema. This can help avoid schema
+ conflicts due to metadata.
+ :param schema: The data source schema.
+ :param file_sort_order: Sort order for the file.
+
+
+
+ .. py:method:: register_record_batches(name: str, partitions: list[list[pyarrow.RecordBatch]]) -> None
+
+ Register record batches as a table.
+
+ This function will convert the provided partitions into a table and
+ register it into the session using the given name.
+
+ :param name: Name of the resultant table.
+ :param partitions: Record batches to register as a table.
+
+
+
+ .. py:method:: register_table(name: str, table: pyarrow.Table) -> None
+
+ Register a table with the given name into the session.
+
+ :param name: Name of the resultant table.
+ :param table: PyArrow table to add to the session context.
+
+
+
+ .. py:method:: register_udaf(udaf: datafusion._internal.AggregateUDF) -> None
+
+ Register a user-defined aggregation function (UDAF) with the context.
+
+
+
+ .. py:method:: register_udf(udf: datafusion.udf.ScalarUDF) -> None
+
+ Register a user-defined function (UDF) with the context.
+
+
+
+ .. py:method:: session_id() -> str
+
+ Retrun an id that uniquely identifies this :py:class:`SessionContext`.
+
+
+
+ .. py:method:: sql(query: str, options: SQLOptions | None = None) -> datafusion.dataframe.DataFrame
+
+ Create a :py:class:`~datafusion.DataFrame` from SQL query text.
+
+ Note: This API implements DDL statements such as ``CREATE TABLE`` and
+ ``CREATE VIEW`` and DML statements such as ``INSERT INTO`` with in-memory
+ default implementation.See
+ :py:func:`~datafusion.context.SessionContext.sql_with_options`.
+
+ :param query: SQL query text.
+ :param options: If provided, the query will be validated against these options.
+
+ :returns: DataFrame representation of the SQL query.
+
+
+
+ .. py:method:: sql_with_options(query: str, options: SQLOptions) -> datafusion.dataframe.DataFrame
+
+ Create a :py:class:`~datafusion.dataframe.DataFrame` from SQL query text.
+
+ This function will first validating that the query is allowed by the
+ provided options.
+
+ :param query: SQL query text.
+ :param options: SQL options.
+
+ :returns: DataFrame representation of the SQL query.
+
+
+
+ .. py:method:: table(name: str) -> datafusion.dataframe.DataFrame
+
+ Retrieve a previously registered table by name.
+
+
+
+ .. py:method:: table_exist(name: str) -> bool
+
+ Return whether a table with the given name exists.
+
+
+
+ .. py:attribute:: config
+
+
+ .. py:attribute:: ctx
+
+
+ .. py:attribute:: runtime
+
+
diff --git a/_sources/autoapi/datafusion/dataframe/index.rst.txt b/_sources/autoapi/datafusion/dataframe/index.rst.txt
new file mode 100644
index 0000000..928061f
--- /dev/null
+++ b/_sources/autoapi/datafusion/dataframe/index.rst.txt
@@ -0,0 +1,468 @@
+datafusion.dataframe
+====================
+
+.. py:module:: datafusion.dataframe
+
+.. autoapi-nested-parse::
+
+ :py:class:`DataFrame` is one of the core concepts in DataFusion.
+
+ See :ref:`user_guide_concepts` in the online documentation for more information.
+
+
+
+Classes
+-------
+
+.. autoapisummary::
+
+ datafusion.dataframe.DataFrame
+
+
+Module Contents
+---------------
+
+.. py:class:: DataFrame(df: datafusion._internal.DataFrame)
+
+ Two dimensional table representation of data.
+
+ See :ref:`user_guide_concepts` in the online documentation for more information.
+
+ This constructor is not to be used by the end user.
+
+ See :py:class:`~datafusion.context.SessionContext` for methods to
+ create a :py:class:`DataFrame`.
+
+
+ .. py:method:: __getitem__(key: str | List[str]) -> DataFrame
+
+ Return a new :py:class`DataFrame` with the specified column or columns.
+
+ :param key: Column name or list of column names to select.
+
+ :returns: DataFrame with the specified column or columns.
+
+
+
+ .. py:method:: __repr__() -> str
+
+ Return a string representation of the DataFrame.
+
+ :returns: String representation of the DataFrame.
+
+
+
+ .. py:method:: aggregate(group_by: list[datafusion.expr.Expr], aggs: list[datafusion.expr.Expr]) -> DataFrame
+
+ Aggregates the rows of the current DataFrame.
+
+ :param group_by: List of expressions to group by.
+ :param aggs: List of expressions to aggregate.
+
+ :returns: DataFrame after aggregation.
+
+
+
+ .. py:method:: cache() -> DataFrame
+
+ Cache the DataFrame as a memory table.
+
+ :returns: Cached DataFrame.
+
+
+
+ .. py:method:: collect() -> list[pyarrow.RecordBatch]
+
+ Execute this :py:class:`DataFrame` and collect results into memory.
+
+ Prior to calling ``collect``, modifying a DataFrme simply updates a plan
+ (no actual computation is performed). Calling ``collect`` triggers the
+ computation.
+
+ :returns: List of :py:class:`pyarrow.RecordBatch` collected from the DataFrame.
+
+
+
+ .. py:method:: collect_partitioned() -> list[list[pyarrow.RecordBatch]]
+
+ Execute this DataFrame and collect all partitioned results.
+
+ This operation returns :py:class:`pyarrow.RecordBatch` maintaining the input
+ partitioning.
+
+ :returns:
+
+ List of list of :py:class:`RecordBatch` collected from the
+ DataFrame.
+
+
+
+ .. py:method:: count() -> int
+
+ Return the total number of rows in this :py:class:`DataFrame`.
+
+ Note that this method will actually run a plan to calculate the
+ count, which may be slow for large or complicated DataFrames.
+
+ :returns: Number of rows in the DataFrame.
+
+
+
+ .. py:method:: describe() -> DataFrame
+
+ Return the statistics for this DataFrame.
+
+ Only summarized numeric datatypes at the moments and returns nulls
+ for non-numeric datatypes.
+
+ The output format is modeled after pandas.
+
+ :returns: A summary DataFrame containing statistics.
+
+
+
+ .. py:method:: distinct() -> DataFrame
+
+ Return a new :py:class:`DataFrame` with all duplicated rows removed.
+
+ :returns: DataFrame after removing duplicates.
+
+
+
+ .. py:method:: except_all(other: DataFrame) -> DataFrame
+
+ Calculate the exception of two :py:class:`DataFrame`.
+
+ The two :py:class:`DataFrame` must have exactly the same schema.
+
+ :param other: DataFrame to calculate exception with.
+
+ :returns: DataFrame after exception.
+
+
+
+ .. py:method:: execute_stream() -> datafusion.record_batch.RecordBatchStream
+
+ Executes this DataFrame and returns a stream over a single partition.
+
+ :returns: Record Batch Stream over a single partition.
+
+
+
+ .. py:method:: execute_stream_partitioned() -> list[datafusion.record_batch.RecordBatchStream]
+
+ Executes this DataFrame and returns a stream for each partition.
+
+ :returns: One record batch stream per partition.
+
+
+
+ .. py:method:: execution_plan() -> datafusion._internal.ExecutionPlan
+
+ Return the execution/physical plan.
+
+ :returns: Execution plan.
+
+
+
+ .. py:method:: explain(verbose: bool = False, analyze: bool = False) -> DataFrame
+
+ Return a DataFrame with the explanation of its plan so far.
+
+ If ``analyze`` is specified, runs the plan and reports metrics.
+
+ :param verbose: If ``True``, more details will be included.
+ :param analyze: If ``Tru`e``, the plan will run and metrics reported.
+
+ :returns: DataFrame with the explanation of its plan.
+
+
+
+ .. py:method:: filter(*predicates: datafusion.expr.Expr) -> DataFrame
+
+ Return a DataFrame for which ``predicate`` evaluates to ``True``.
+
+ Rows for which ``predicate`` evaluates to ``False`` or ``None`` are filtered
+ out. If more than one predicate is provided, these predicates will be
+ combined as a logical AND. If more complex logic is required, see the
+ logical operations in :py:mod:`~datafusion.functions`.
+
+ :param predicates: Predicate expression(s) to filter the DataFrame.
+
+ :returns: DataFrame after filtering.
+
+
+
+ .. py:method:: intersect(other: DataFrame) -> DataFrame
+
+ Calculate the intersection of two :py:class:`DataFrame`.
+
+ The two :py:class:`DataFrame` must have exactly the same schema.
+
+ :param other: DataFrame to intersect with.
+
+ :returns: DataFrame after intersection.
+
+
+
+ .. py:method:: join(right: DataFrame, join_keys: tuple[list[str], list[str]], how: str) -> DataFrame
+
+ Join this :py:class:`DataFrame` with another :py:class:`DataFrame`.
+
+ Join keys are a pair of lists of column names in the left and right
+ dataframes, respectively. These lists must have the same length.
+
+ :param right: Other DataFrame to join with.
+ :param join_keys: Tuple of two lists of column names to join on.
+ :param how: Type of join to perform. Supported types are "inner", "left",
+ "right", "full", "semi", "anti".
+
+ :returns: DataFrame after join.
+
+
+
+ .. py:method:: limit(count: int, offset: int = 0) -> DataFrame
+
+ Return a new :py:class:`DataFrame` with a limited number of rows.
+
+ :param count: Number of rows to limit the DataFrame to.
+ :param offset: Number of rows to skip.
+
+ :returns: DataFrame after limiting.
+
+
+
+ .. py:method:: logical_plan() -> datafusion._internal.LogicalPlan
+
+ Return the unoptimized ``LogicalPlan``.
+
+ :returns: Unoptimized logical plan.
+
+
+
+ .. py:method:: optimized_logical_plan() -> datafusion._internal.LogicalPlan
+
+ Return the optimized ``LogicalPlan``.
+
+ :returns: Optimized logical plan.
+
+
+
+ .. py:method:: repartition(num: int) -> DataFrame
+
+ Repartition a DataFrame into ``num`` partitions.
+
+ The batches allocation uses a round-robin algorithm.
+
+ :param num: Number of partitions to repartition the DataFrame into.
+
+ :returns: Repartitioned DataFrame.
+
+
+
+ .. py:method:: repartition_by_hash(*exprs: datafusion.expr.Expr, num: int) -> DataFrame
+
+ Repartition a DataFrame using a hash partitioning scheme.
+
+ :param exprs: Expressions to evaluate and perform hashing on.
+ :param num: Number of partitions to repartition the DataFrame into.
+
+ :returns: Repartitioned DataFrame.
+
+
+
+ .. py:method:: schema() -> pyarrow.Schema
+
+ Return the :py:class:`pyarrow.Schema` of this DataFrame.
+
+ The output schema contains information on the name, data type, and
+ nullability for each column.
+
+ :returns: Describing schema of the DataFrame
+
+
+
+ .. py:method:: select(*exprs: datafusion.expr.Expr | str) -> DataFrame
+
+ Project arbitrary expressions into a new :py:class:`DataFrame`.
+
+ :param exprs: Either column names or :py:class:`~datafusion.expr.Expr` to select.
+
+ :returns: DataFrame after projection. It has one column for each expression.
+
+ Example usage:
+
+ The following example will return 3 columns from the original dataframe.
+ The first two columns will be the original column ``a`` and ``b`` since the
+ string "a" is assumed to refer to column selection. Also a duplicate of
+ column ``a`` will be returned with the column name ``alternate_a``::
+
+ df = df.select("a", col("b"), col("a").alias("alternate_a"))
+
+
+
+
+ .. py:method:: select_columns(*args: str) -> DataFrame
+
+ Filter the DataFrame by columns.
+
+ :returns: DataFrame only containing the specified columns.
+
+
+
+ .. py:method:: show(num: int = 20) -> None
+
+ Execute the DataFrame and print the result to the console.
+
+ :param num: Number of lines to show.
+
+
+
+ .. py:method:: sort(*exprs: datafusion.expr.Expr) -> DataFrame
+
+ Sort the DataFrame by the specified sorting expressions.
+
+ Note that any expression can be turned into a sort expression by
+ calling its` ``sort`` method.
+
+ :param exprs: Sort expressions, applied in order.
+
+ :returns: DataFrame after sorting.
+
+
+
+ .. py:method:: to_arrow_table() -> pyarrow.Table
+
+ Execute the :py:class:`DataFrame` and convert it into an Arrow Table.
+
+ :returns: Arrow Table.
+
+
+
+ .. py:method:: to_pandas() -> pandas.DataFrame
+
+ Execute the :py:class:`DataFrame` and convert it into a Pandas DataFrame.
+
+ :returns: Pandas DataFrame.
+
+
+
+ .. py:method:: to_polars() -> polars.DataFrame
+
+ Execute the :py:class:`DataFrame` and convert it into a Polars DataFrame.
+
+ :returns: Polars DataFrame.
+
+
+
+ .. py:method:: to_pydict() -> dict[str, list[Any]]
+
+ Execute the :py:class:`DataFrame` and convert it into a dictionary of lists.
+
+ :returns: Dictionary of lists.
+
+
+
+ .. py:method:: to_pylist() -> list[dict[str, Any]]
+
+ Execute the :py:class:`DataFrame` and convert it into a list of dictionaries.
+
+ :returns: List of dictionaries.
+
+
+
+ .. py:method:: union(other: DataFrame, distinct: bool = False) -> DataFrame
+
+ Calculate the union of two :py:class:`DataFrame`.
+
+ The two :py:class:`DataFrame` must have exactly the same schema.
+
+ :param other: DataFrame to union with.
+ :param distinct: If ``True``, duplicate rows will be removed.
+
+ :returns: DataFrame after union.
+
+
+
+ .. py:method:: union_distinct(other: DataFrame) -> DataFrame
+
+ Calculate the distinct union of two :py:class:`DataFrame`.
+
+ The two :py:class:`DataFrame` must have exactly the same schema.
+ Any duplicate rows are discarded.
+
+ :param other: DataFrame to union with.
+
+ :returns: DataFrame after union.
+
+
+
+ .. py:method:: unnest_columns(*columns: str, preserve_nulls: bool = True) -> DataFrame
+
+ Expand columns of arrays into a single row per array element.
+
+ :param columns: Column names to perform unnest operation on.
+ :param preserve_nulls: If False, rows with null entries will not be
+ returned.
+
+ :returns: A DataFrame with the columns expanded.
+
+
+
+ .. py:method:: with_column(name: str, expr: datafusion.expr.Expr) -> DataFrame
+
+ Add an additional column to the DataFrame.
+
+ :param name: Name of the column to add.
+ :param expr: Expression to compute the column.
+
+ :returns: DataFrame with the new column.
+
+
+
+ .. py:method:: with_column_renamed(old_name: str, new_name: str) -> DataFrame
+
+ Rename one column by applying a new projection.
+
+ This is a no-op if the column to be renamed does not exist.
+
+ The method supports case sensitive rename with wrapping column name
+ into one the following symbols (" or ' or \`).
+
+ :param old_name: Old column name.
+ :param new_name: New column name.
+
+ :returns: DataFrame with the column renamed.
+
+
+
+ .. py:method:: write_csv(path: str | pathlib.Path, with_header: bool = False) -> None
+
+ Execute the :py:class:`DataFrame` and write the results to a CSV file.
+
+ :param path: Path of the CSV file to write.
+ :param with_header: If true, output the CSV header row.
+
+
+
+ .. py:method:: write_json(path: str | pathlib.Path) -> None
+
+ Execute the :py:class:`DataFrame` and write the results to a JSON file.
+
+ :param path: Path of the JSON file to write.
+
+
+
+ .. py:method:: write_parquet(path: str | pathlib.Path, compression: str = 'uncompressed', compression_level: int | None = None) -> None
+
+ Execute the :py:class:`DataFrame` and write the results to a Parquet file.
+
+ :param path: Path of the Parquet file to write.
+ :param compression: Compression type to use.
+ :param compression_level: Compression level to use.
+
+
+
+ .. py:attribute:: df
+
+
diff --git a/_sources/autoapi/datafusion/expr/index.rst.txt b/_sources/autoapi/datafusion/expr/index.rst.txt
new file mode 100644
index 0000000..a8dadf1
--- /dev/null
+++ b/_sources/autoapi/datafusion/expr/index.rst.txt
@@ -0,0 +1,607 @@
+datafusion.expr
+===============
+
+.. py:module:: datafusion.expr
+
+.. autoapi-nested-parse::
+
+ This module supports expressions, one of the core concepts in DataFusion.
+
+ See :ref:`Expressions` in the online documentation for more details.
+
+
+
+Attributes
+----------
+
+.. autoapisummary::
+
+ datafusion.expr.Aggregate
+ datafusion.expr.AggregateFunction
+ datafusion.expr.Alias
+ datafusion.expr.Analyze
+ datafusion.expr.Between
+ datafusion.expr.BinaryExpr
+ datafusion.expr.Case
+ datafusion.expr.Cast
+ datafusion.expr.Column
+ datafusion.expr.CreateMemoryTable
+ datafusion.expr.CreateView
+ datafusion.expr.CrossJoin
+ datafusion.expr.Distinct
+ datafusion.expr.DropTable
+ datafusion.expr.EmptyRelation
+ datafusion.expr.Exists
+ datafusion.expr.Explain
+ datafusion.expr.Extension
+ datafusion.expr.Filter
+ datafusion.expr.GroupingSet
+ datafusion.expr.ILike
+ datafusion.expr.InList
+ datafusion.expr.InSubquery
+ datafusion.expr.IsFalse
+ datafusion.expr.IsNotFalse
+ datafusion.expr.IsNotNull
+ datafusion.expr.IsNotTrue
+ datafusion.expr.IsNotUnknown
+ datafusion.expr.IsNull
+ datafusion.expr.IsTrue
+ datafusion.expr.IsUnknown
+ datafusion.expr.Join
+ datafusion.expr.JoinConstraint
+ datafusion.expr.JoinType
+ datafusion.expr.Like
+ datafusion.expr.Limit
+ datafusion.expr.Literal
+ datafusion.expr.Negative
+ datafusion.expr.Not
+ datafusion.expr.Partitioning
+ datafusion.expr.Placeholder
+ datafusion.expr.Projection
+ datafusion.expr.Repartition
+ datafusion.expr.ScalarSubquery
+ datafusion.expr.ScalarVariable
+ datafusion.expr.SimilarTo
+ datafusion.expr.Sort
+ datafusion.expr.SortExpr
+ datafusion.expr.Subquery
+ datafusion.expr.SubqueryAlias
+ datafusion.expr.TableScan
+ datafusion.expr.TryCast
+ datafusion.expr.Union
+ datafusion.expr.Unnest
+ datafusion.expr.UnnestExpr
+ datafusion.expr.Window
+
+
+Classes
+-------
+
+.. autoapisummary::
+
+ datafusion.expr.CaseBuilder
+ datafusion.expr.Expr
+ datafusion.expr.WindowFrame
+ datafusion.expr.WindowFrameBound
+
+
+Module Contents
+---------------
+
+.. py:class:: CaseBuilder(case_builder: datafusion._internal.expr.CaseBuilder)
+
+ Builder class for constructing case statements.
+
+ An example usage would be as follows::
+
+ import datafusion.functions as f
+ from datafusion import lit, col
+ df.select(
+ f.case(col("column_a")
+ .when(lit(1), lit("One"))
+ .when(lit(2), lit("Two"))
+ .otherwise(lit("Unknown"))
+ )
+
+ Constructs a case builder.
+
+ This is not typically called by the end user directly. See
+ :py:func:`datafusion.functions.case` instead.
+
+
+ .. py:method:: end() -> Expr
+
+ Finish building a case statement.
+
+ Any non-matching cases will end in a `null` value.
+
+
+
+ .. py:method:: otherwise(else_expr: Expr) -> Expr
+
+ Set a default value for the case statement.
+
+
+
+ .. py:method:: when(when_expr: Expr, then_expr: Expr) -> CaseBuilder
+
+ Add a case to match against.
+
+
+
+ .. py:attribute:: case_builder
+
+
+.. py:class:: Expr(expr: datafusion._internal.expr.Expr)
+
+ Expression object.
+
+ Expressions are one of the core concepts in DataFusion. See
+ :ref:`Expressions` in the online documentation for more information.
+
+ This constructor should not be called by the end user.
+
+
+ .. py:method:: __add__(rhs: Any) -> Expr
+
+ Addition operator.
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: __and__(rhs: Expr) -> Expr
+
+ Logical AND.
+
+
+
+ .. py:method:: __eq__(rhs: Any) -> Expr
+
+ Equal to.
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: __ge__(rhs: Any) -> Expr
+
+ Greater than or equal to.
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: __getitem__(key: str) -> Expr
+
+ For struct data types, return the field indicated by ``key``.
+
+
+
+ .. py:method:: __gt__(rhs: Any) -> Expr
+
+ Greater than.
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: __invert__() -> Expr
+
+ Binary not (~).
+
+
+
+ .. py:method:: __le__(rhs: Any) -> Expr
+
+ Less than or equal to.
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: __lt__(rhs: Any) -> Expr
+
+ Less than.
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: __mod__(rhs: Any) -> Expr
+
+ Modulo operator (%).
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: __mul__(rhs: Any) -> Expr
+
+ Multiplication operator.
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: __ne__(rhs: Any) -> Expr
+
+ Not equal to.
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: __or__(rhs: Expr) -> Expr
+
+ Logical OR.
+
+
+
+ .. py:method:: __repr__() -> str
+
+ Generate a string representation of this expression.
+
+
+
+ .. py:method:: __richcmp__(other: Expr, op: int) -> Expr
+
+ Comparison operator.
+
+
+
+ .. py:method:: __sub__(rhs: Any) -> Expr
+
+ Subtraction operator.
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: __truediv__(rhs: Any) -> Expr
+
+ Division operator.
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: alias(name: str) -> Expr
+
+ Assign a name to the expression.
+
+
+
+ .. py:method:: canonical_name() -> str
+
+ Returns a complete string representation of this expression.
+
+
+
+ .. py:method:: cast(to: pyarrow.DataType[Any]) -> Expr
+
+ Cast to a new data type.
+
+
+
+ .. py:method:: column(value: str) -> Expr
+ :staticmethod:
+
+
+ Creates a new expression representing a column.
+
+
+
+ .. py:method:: column_name(plan: datafusion._internal.LogicalPlan) -> str
+
+ Compute the output column name based on the provided logical plan.
+
+
+
+ .. py:method:: display_name() -> str
+
+ Returns the name of this expression as it should appear in a schema.
+
+ This name will not include any CAST expressions.
+
+
+
+ .. py:method:: is_null() -> Expr
+
+ Returns ``True`` if this expression is null.
+
+
+
+ .. py:method:: literal(value: Any) -> Expr
+ :staticmethod:
+
+
+ Creates a new expression representing a scalar value.
+
+ ``value`` must be a valid PyArrow scalar value or easily castable to one.
+
+
+
+ .. py:method:: python_value() -> Any
+
+ Extracts the Expr value into a PyObject.
+
+ This is only valid for literal expressions.
+
+ :returns: Python object representing literal value of the expression.
+
+
+
+ .. py:method:: rex_call_operands() -> list[Expr]
+
+ Return the operands of the expression based on it's variant type.
+
+ Row expressions, Rex(s), operate on the concept of operands. Different
+ variants of Expressions, Expr(s), store those operands in different
+ datastructures. This function examines the Expr variant and returns
+ the operands to the calling logic.
+
+
+
+ .. py:method:: rex_call_operator() -> str
+
+ Extracts the operator associated with a row expression type call.
+
+
+
+ .. py:method:: rex_type() -> datafusion.common.RexType
+
+ Return the Rex Type of this expression.
+
+ A Rex (Row Expression) specifies a single row of data.That specification
+ could include user defined functions or types. RexType identifies the
+ row as one of the possible valid ``RexType``.
+
+
+
+ .. py:method:: sort(ascending: bool = True, nulls_first: bool = True) -> Expr
+
+ Creates a sort :py:class:`Expr` from an existing :py:class:`Expr`.
+
+ :param ascending: If true, sort in ascending order.
+ :param nulls_first: Return null values first.
+
+
+
+ .. py:method:: to_variant() -> Any
+
+ Convert this expression into a python object if possible.
+
+
+
+ .. py:method:: types() -> datafusion.common.DataTypeMap
+
+ Return the ``DataTypeMap``.
+
+ :returns: DataTypeMap which represents the PythonType, Arrow DataType, and
+ SqlType Enum which this expression represents.
+
+
+
+ .. py:method:: variant_name() -> str
+
+ Returns the name of the Expr variant.
+
+ Ex: ``IsNotNull``, ``Literal``, ``BinaryExpr``, etc
+
+
+
+ .. py:attribute:: __radd__
+
+
+ .. py:attribute:: __rand__
+
+
+ .. py:attribute:: __rmod__
+
+
+ .. py:attribute:: __rmul__
+
+
+ .. py:attribute:: __ror__
+
+
+ .. py:attribute:: __rsub__
+
+
+ .. py:attribute:: __rtruediv__
+
+
+ .. py:attribute:: expr
+
+
+.. py:class:: WindowFrame(units: str, start_bound: int | None, end_bound: int | None)
+
+ Defines a window frame for performing window operations.
+
+ Construct a window frame using the given parameters.
+
+ :param units: Should be one of ``rows``, ``range``, or ``groups``.
+ :param start_bound: Sets the preceeding bound. Must be >= 0. If none, this
+ will be set to unbounded. If unit type is ``groups``, this
+ parameter must be set.
+ :param end_bound: Sets the following bound. Must be >= 0. If none, this
+ will be set to unbounded. If unit type is ``groups``, this
+ parameter must be set.
+
+
+ .. py:method:: get_frame_units() -> str
+
+ Returns the window frame units for the bounds.
+
+
+
+ .. py:method:: get_lower_bound() -> WindowFrameBound
+
+ Returns starting bound.
+
+
+
+ .. py:method:: get_upper_bound()
+
+ Returns end bound.
+
+
+
+ .. py:attribute:: window_frame
+
+
+.. py:class:: WindowFrameBound(frame_bound: datafusion._internal.expr.WindowFrameBound)
+
+ Defines a single window frame bound.
+
+ :py:class:`WindowFrame` typically requires a start and end bound.
+
+ Constructs a window frame bound.
+
+
+ .. py:method:: get_offset() -> int | None
+
+ Returns the offset of the window frame.
+
+
+
+ .. py:method:: is_current_row() -> bool
+
+ Returns if the frame bound is current row.
+
+
+
+ .. py:method:: is_following() -> bool
+
+ Returns if the frame bound is following.
+
+
+
+ .. py:method:: is_preceding() -> bool
+
+ Returns if the frame bound is preceding.
+
+
+
+ .. py:method:: is_unbounded() -> bool
+
+ Returns if the frame bound is unbounded.
+
+
+
+ .. py:attribute:: frame_bound
+
+
+.. py:data:: Aggregate
+
+.. py:data:: AggregateFunction
+
+.. py:data:: Alias
+
+.. py:data:: Analyze
+
+.. py:data:: Between
+
+.. py:data:: BinaryExpr
+
+.. py:data:: Case
+
+.. py:data:: Cast
+
+.. py:data:: Column
+
+.. py:data:: CreateMemoryTable
+
+.. py:data:: CreateView
+
+.. py:data:: CrossJoin
+
+.. py:data:: Distinct
+
+.. py:data:: DropTable
+
+.. py:data:: EmptyRelation
+
+.. py:data:: Exists
+
+.. py:data:: Explain
+
+.. py:data:: Extension
+
+.. py:data:: Filter
+
+.. py:data:: GroupingSet
+
+.. py:data:: ILike
+
+.. py:data:: InList
+
+.. py:data:: InSubquery
+
+.. py:data:: IsFalse
+
+.. py:data:: IsNotFalse
+
+.. py:data:: IsNotNull
+
+.. py:data:: IsNotTrue
+
+.. py:data:: IsNotUnknown
+
+.. py:data:: IsNull
+
+.. py:data:: IsTrue
+
+.. py:data:: IsUnknown
+
+.. py:data:: Join
+
+.. py:data:: JoinConstraint
+
+.. py:data:: JoinType
+
+.. py:data:: Like
+
+.. py:data:: Limit
+
+.. py:data:: Literal
+
+.. py:data:: Negative
+
+.. py:data:: Not
+
+.. py:data:: Partitioning
+
+.. py:data:: Placeholder
+
+.. py:data:: Projection
+
+.. py:data:: Repartition
+
+.. py:data:: ScalarSubquery
+
+.. py:data:: ScalarVariable
+
+.. py:data:: SimilarTo
+
+.. py:data:: Sort
+
+.. py:data:: SortExpr
+
+.. py:data:: Subquery
+
+.. py:data:: SubqueryAlias
+
+.. py:data:: TableScan
+
+.. py:data:: TryCast
+
+.. py:data:: Union
+
+.. py:data:: Unnest
+
+.. py:data:: UnnestExpr
+
+.. py:data:: Window
+
diff --git a/_sources/autoapi/datafusion/functions/index.rst.txt b/_sources/autoapi/datafusion/functions/index.rst.txt
new file mode 100644
index 0000000..c3ed58e
--- /dev/null
+++ b/_sources/autoapi/datafusion/functions/index.rst.txt
@@ -0,0 +1,1517 @@
+datafusion.functions
+====================
+
+.. py:module:: datafusion.functions
+
+.. autoapi-nested-parse::
+
+ User functions for operating on :py:class:`~datafusion.expr.Expr`.
+
+
+
+Functions
+---------
+
+.. autoapisummary::
+
+ datafusion.functions.abs
+ datafusion.functions.acos
+ datafusion.functions.acosh
+ datafusion.functions.alias
+ datafusion.functions.approx_distinct
+ datafusion.functions.approx_median
+ datafusion.functions.approx_percentile_cont
+ datafusion.functions.approx_percentile_cont_with_weight
+ datafusion.functions.array
+ datafusion.functions.array_agg
+ datafusion.functions.array_append
+ datafusion.functions.array_cat
+ datafusion.functions.array_concat
+ datafusion.functions.array_dims
+ datafusion.functions.array_distinct
+ datafusion.functions.array_element
+ datafusion.functions.array_except
+ datafusion.functions.array_extract
+ datafusion.functions.array_has
+ datafusion.functions.array_has_all
+ datafusion.functions.array_has_any
+ datafusion.functions.array_indexof
+ datafusion.functions.array_intersect
+ datafusion.functions.array_join
+ datafusion.functions.array_length
+ datafusion.functions.array_ndims
+ datafusion.functions.array_pop_back
+ datafusion.functions.array_pop_front
+ datafusion.functions.array_position
+ datafusion.functions.array_positions
+ datafusion.functions.array_prepend
+ datafusion.functions.array_push_back
+ datafusion.functions.array_push_front
+ datafusion.functions.array_remove
+ datafusion.functions.array_remove_all
+ datafusion.functions.array_remove_n
+ datafusion.functions.array_repeat
+ datafusion.functions.array_replace
+ datafusion.functions.array_replace_all
+ datafusion.functions.array_replace_n
+ datafusion.functions.array_resize
+ datafusion.functions.array_slice
+ datafusion.functions.array_sort
+ datafusion.functions.array_to_string
+ datafusion.functions.array_union
+ datafusion.functions.arrow_typeof
+ datafusion.functions.ascii
+ datafusion.functions.asin
+ datafusion.functions.asinh
+ datafusion.functions.atan
+ datafusion.functions.atan2
+ datafusion.functions.atanh
+ datafusion.functions.avg
+ datafusion.functions.bit_and
+ datafusion.functions.bit_length
+ datafusion.functions.bit_or
+ datafusion.functions.bit_xor
+ datafusion.functions.bool_and
+ datafusion.functions.bool_or
+ datafusion.functions.btrim
+ datafusion.functions.case
+ datafusion.functions.cbrt
+ datafusion.functions.ceil
+ datafusion.functions.char_length
+ datafusion.functions.character_length
+ datafusion.functions.chr
+ datafusion.functions.coalesce
+ datafusion.functions.col
+ datafusion.functions.concat
+ datafusion.functions.concat_ws
+ datafusion.functions.corr
+ datafusion.functions.cos
+ datafusion.functions.cosh
+ datafusion.functions.cot
+ datafusion.functions.count
+ datafusion.functions.count_star
+ datafusion.functions.covar
+ datafusion.functions.covar_pop
+ datafusion.functions.covar_samp
+ datafusion.functions.current_date
+ datafusion.functions.current_time
+ datafusion.functions.date_bin
+ datafusion.functions.date_part
+ datafusion.functions.date_trunc
+ datafusion.functions.datepart
+ datafusion.functions.datetrunc
+ datafusion.functions.decode
+ datafusion.functions.degrees
+ datafusion.functions.digest
+ datafusion.functions.encode
+ datafusion.functions.ends_with
+ datafusion.functions.exp
+ datafusion.functions.factorial
+ datafusion.functions.find_in_set
+ datafusion.functions.first_value
+ datafusion.functions.flatten
+ datafusion.functions.floor
+ datafusion.functions.from_unixtime
+ datafusion.functions.gcd
+ datafusion.functions.grouping
+ datafusion.functions.in_list
+ datafusion.functions.initcap
+ datafusion.functions.isnan
+ datafusion.functions.iszero
+ datafusion.functions.last_value
+ datafusion.functions.lcm
+ datafusion.functions.left
+ datafusion.functions.length
+ datafusion.functions.levenshtein
+ datafusion.functions.list_append
+ datafusion.functions.list_dims
+ datafusion.functions.list_distinct
+ datafusion.functions.list_element
+ datafusion.functions.list_except
+ datafusion.functions.list_extract
+ datafusion.functions.list_indexof
+ datafusion.functions.list_intersect
+ datafusion.functions.list_join
+ datafusion.functions.list_length
+ datafusion.functions.list_ndims
+ datafusion.functions.list_position
+ datafusion.functions.list_positions
+ datafusion.functions.list_prepend
+ datafusion.functions.list_push_back
+ datafusion.functions.list_push_front
+ datafusion.functions.list_remove
+ datafusion.functions.list_remove_all
+ datafusion.functions.list_remove_n
+ datafusion.functions.list_replace
+ datafusion.functions.list_replace_all
+ datafusion.functions.list_replace_n
+ datafusion.functions.list_resize
+ datafusion.functions.list_slice
+ datafusion.functions.list_sort
+ datafusion.functions.list_to_string
+ datafusion.functions.list_union
+ datafusion.functions.ln
+ datafusion.functions.log
+ datafusion.functions.log10
+ datafusion.functions.log2
+ datafusion.functions.lower
+ datafusion.functions.lpad
+ datafusion.functions.ltrim
+ datafusion.functions.make_array
+ datafusion.functions.make_date
+ datafusion.functions.max
+ datafusion.functions.md5
+ datafusion.functions.mean
+ datafusion.functions.median
+ datafusion.functions.min
+ datafusion.functions.named_struct
+ datafusion.functions.nanvl
+ datafusion.functions.now
+ datafusion.functions.nullif
+ datafusion.functions.octet_length
+ datafusion.functions.order_by
+ datafusion.functions.overlay
+ datafusion.functions.pi
+ datafusion.functions.pow
+ datafusion.functions.power
+ datafusion.functions.radians
+ datafusion.functions.random
+ datafusion.functions.range
+ datafusion.functions.regexp_like
+ datafusion.functions.regexp_match
+ datafusion.functions.regexp_replace
+ datafusion.functions.regr_avgx
+ datafusion.functions.regr_avgy
+ datafusion.functions.regr_count
+ datafusion.functions.regr_intercept
+ datafusion.functions.regr_r2
+ datafusion.functions.regr_slope
+ datafusion.functions.regr_sxx
+ datafusion.functions.regr_sxy
+ datafusion.functions.regr_syy
+ datafusion.functions.repeat
+ datafusion.functions.replace
+ datafusion.functions.reverse
+ datafusion.functions.right
+ datafusion.functions.round
+ datafusion.functions.rpad
+ datafusion.functions.rtrim
+ datafusion.functions.sha224
+ datafusion.functions.sha256
+ datafusion.functions.sha384
+ datafusion.functions.sha512
+ datafusion.functions.signum
+ datafusion.functions.sin
+ datafusion.functions.sinh
+ datafusion.functions.split_part
+ datafusion.functions.sqrt
+ datafusion.functions.starts_with
+ datafusion.functions.stddev
+ datafusion.functions.stddev_pop
+ datafusion.functions.stddev_samp
+ datafusion.functions.strpos
+ datafusion.functions.struct
+ datafusion.functions.substr
+ datafusion.functions.substr_index
+ datafusion.functions.substring
+ datafusion.functions.sum
+ datafusion.functions.tan
+ datafusion.functions.tanh
+ datafusion.functions.to_hex
+ datafusion.functions.to_timestamp
+ datafusion.functions.to_timestamp_micros
+ datafusion.functions.to_timestamp_millis
+ datafusion.functions.to_timestamp_seconds
+ datafusion.functions.to_unixtime
+ datafusion.functions.translate
+ datafusion.functions.trim
+ datafusion.functions.trunc
+ datafusion.functions.upper
+ datafusion.functions.uuid
+ datafusion.functions.var
+ datafusion.functions.var_pop
+ datafusion.functions.var_samp
+ datafusion.functions.window
+
+
+Module Contents
+---------------
+
+.. py:function:: abs(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Return the absolute value of a given number.
+
+ Returns:
+ --------
+ Expr
+ A new expression representing the absolute value of the input expression.
+
+
+.. py:function:: acos(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the arc cosine or inverse cosine of a number.
+
+ Returns:
+ --------
+ Expr
+ A new expression representing the arc cosine of the input expression.
+
+
+.. py:function:: acosh(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns inverse hyperbolic cosine.
+
+
+.. py:function:: alias(expr: datafusion.expr.Expr, name: str) -> datafusion.expr.Expr
+
+ Creates an alias expression.
+
+
+.. py:function:: approx_distinct(expression: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the approximate number of distinct values.
+
+
+.. py:function:: approx_median(arg: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Returns the approximate median value.
+
+
+.. py:function:: approx_percentile_cont(expression: datafusion.expr.Expr, percentile: datafusion.expr.Expr, num_centroids: datafusion.expr.Expr | None = None, distinct: bool = False) -> datafusion.expr.Expr
+
+ Returns the value that is approximately at a given percentile of ``expr``.
+
+
+.. py:function:: approx_percentile_cont_with_weight(arg: datafusion.expr.Expr, weight: datafusion.expr.Expr, percentile: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Returns the value of the approximate percentile.
+
+ This function is similar to :py:func:`approx_percentile_cont` except that it uses
+ the associated associated weights.
+
+
+.. py:function:: array(*args: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns an array using the specified input expressions.
+
+ This is an alias for :py:func:`make_array`.
+
+
+.. py:function:: array_agg(arg: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Aggregate values into an array.
+
+
+.. py:function:: array_append(array: datafusion.expr.Expr, element: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Appends an element to the end of an array.
+
+
+.. py:function:: array_cat(*args: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Concatenates the input arrays.
+
+ This is an alias for :py:func:`array_concat`.
+
+
+.. py:function:: array_concat(*args: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Concatenates the input arrays.
+
+
+.. py:function:: array_dims(array: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns an array of the array's dimensions.
+
+
+.. py:function:: array_distinct(array: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns distinct values from the array after removing duplicates.
+
+
+.. py:function:: array_element(array: datafusion.expr.Expr, n: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Extracts the element with the index n from the array.
+
+
+.. py:function:: array_except(array1: datafusion.expr.Expr, array2: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the elements that appear in ``array1`` but not in ``array2``.
+
+
+.. py:function:: array_extract(array: datafusion.expr.Expr, n: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Extracts the element with the index n from the array.
+
+ This is an alias for :py:func:`array_element`.
+
+
+.. py:function:: array_has(first_array: datafusion.expr.Expr, second_array: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns true if the element appears in the first array, otherwise false.
+
+
+.. py:function:: array_has_all(first_array: datafusion.expr.Expr, second_array: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Determines if there is complete overlap ``second_array`` in ``first_array``.
+
+ Returns true if each element of the second array appears in the first array.
+ Otherwise, it returns false.
+
+
+.. py:function:: array_has_any(first_array: datafusion.expr.Expr, second_array: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Determine if there is an overlap between ``first_array`` and ``second_array``.
+
+ Returns true if at least one element of the second array appears in the first
+ array. Otherwise, it returns false.
+
+
+.. py:function:: array_indexof(array: datafusion.expr.Expr, element: datafusion.expr.Expr, index: int | None = 1) -> datafusion.expr.Expr
+
+ Return the position of the first occurrence of ``element`` in ``array``.
+
+ This is an alias for :py:func:`array_position`.
+
+
+.. py:function:: array_intersect(array1: datafusion.expr.Expr, array2: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the intersection of ``array1`` and ``array2``.
+
+
+.. py:function:: array_join(expr: datafusion.expr.Expr, delimiter: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Converts each element to its text representation.
+
+ This is an alias for :py:func:`array_to_string`.
+
+
+.. py:function:: array_length(array: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the length of the array.
+
+
+.. py:function:: array_ndims(array: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the number of dimensions of the array.
+
+
+.. py:function:: array_pop_back(array: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the array without the last element.
+
+
+.. py:function:: array_pop_front(array: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the array without the first element.
+
+
+.. py:function:: array_position(array: datafusion.expr.Expr, element: datafusion.expr.Expr, index: int | None = 1) -> datafusion.expr.Expr
+
+ Return the position of the first occurrence of ``element`` in ``array``.
+
+
+.. py:function:: array_positions(array: datafusion.expr.Expr, element: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Searches for an element in the array and returns all occurrences.
+
+
+.. py:function:: array_prepend(element: datafusion.expr.Expr, array: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Prepends an element to the beginning of an array.
+
+
+.. py:function:: array_push_back(array: datafusion.expr.Expr, element: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Appends an element to the end of an array.
+
+ This is an alias for :py:func:`array_append`.
+
+
+.. py:function:: array_push_front(element: datafusion.expr.Expr, array: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Prepends an element to the beginning of an array.
+
+ This is an alias for :py:func:`array_prepend`.
+
+
+.. py:function:: array_remove(array: datafusion.expr.Expr, element: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Removes the first element from the array equal to the given value.
+
+
+.. py:function:: array_remove_all(array: datafusion.expr.Expr, element: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Removes all elements from the array equal to the given value.
+
+
+.. py:function:: array_remove_n(array: datafusion.expr.Expr, element: datafusion.expr.Expr, max: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Removes the first ``max`` elements from the array equal to the given value.
+
+
+.. py:function:: array_repeat(element: datafusion.expr.Expr, count: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns an array containing ``element`` ``count`` times.
+
+
+.. py:function:: array_replace(array: datafusion.expr.Expr, from_val: datafusion.expr.Expr, to_val: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Replaces the first occurrence of ``from_val`` with ``to_val``.
+
+
+.. py:function:: array_replace_all(array: datafusion.expr.Expr, from_val: datafusion.expr.Expr, to_val: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Replaces all occurrences of ``from_val`` with ``to_val``.
+
+
+.. py:function:: array_replace_n(array: datafusion.expr.Expr, from_val: datafusion.expr.Expr, to_val: datafusion.expr.Expr, max: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Replace ``n`` occurrences of ``from_val`` with ``to_val``.
+
+ Replaces the first ``max`` occurrences of the specified element with another
+ specified element.
+
+
+.. py:function:: array_resize(array: datafusion.expr.Expr, size: datafusion.expr.Expr, value: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns an array with the specified size filled.
+
+ If ``size`` is greater than the ``array`` length, the additional entries will
+ be filled with the given ``value``.
+
+
+.. py:function:: array_slice(array: datafusion.expr.Expr, begin: datafusion.expr.Expr, end: datafusion.expr.Expr, stride: datafusion.expr.Expr | None = None) -> datafusion.expr.Expr
+
+ Returns a slice of the array.
+
+
+.. py:function:: array_sort(array: datafusion.expr.Expr, descending: bool = False, null_first: bool = False) -> datafusion.expr.Expr
+
+ Sort an array.
+
+ :param array: The input array to sort.
+ :param descending: If True, sorts in descending order.
+ :param null_first: If True, nulls will be returned at the beginning of the array.
+
+
+.. py:function:: array_to_string(expr: datafusion.expr.Expr, delimiter: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Converts each element to its text representation.
+
+
+.. py:function:: array_union(array1: datafusion.expr.Expr, array2: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns an array of the elements in the union of array1 and array2.
+
+ Duplicate rows will not be returned.
+
+
+.. py:function:: arrow_typeof(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the Arrow type of the expression.
+
+
+.. py:function:: ascii(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the numeric code of the first character of the argument.
+
+
+.. py:function:: asin(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the arc sine or inverse sine of a number.
+
+
+.. py:function:: asinh(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns inverse hyperbolic sine.
+
+
+.. py:function:: atan(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns inverse tangent of a number.
+
+
+.. py:function:: atan2(y: datafusion.expr.Expr, x: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns inverse tangent of a division given in the argument.
+
+
+.. py:function:: atanh(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns inverse hyperbolic tangent.
+
+
+.. py:function:: avg(arg: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Returns the average value.
+
+
+.. py:function:: bit_and(arg: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Computes the bitwise AND of the argument.
+
+
+.. py:function:: bit_length(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the number of bits in the string argument.
+
+
+.. py:function:: bit_or(arg: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Computes the bitwise OR of the argument.
+
+
+.. py:function:: bit_xor(arg: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Computes the bitwise XOR of the argument.
+
+
+.. py:function:: bool_and(arg: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Computes the boolean AND of the arugment.
+
+
+.. py:function:: bool_or(arg: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Computes the boolean OR of the arguement.
+
+
+.. py:function:: btrim(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Removes all characters, spaces by default, from both sides of a string.
+
+
+.. py:function:: case(expr: datafusion.expr.Expr) -> datafusion.expr.CaseBuilder
+
+ Create a case expression.
+
+ Create a :py:class:`~datafusion.expr.CaseBuilder` to match cases for the
+ expression ``expr``. See :py:class:`~datafusion.expr.CaseBuilder` for
+ detailed usage.
+
+
+.. py:function:: cbrt(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the cube root of a number.
+
+
+.. py:function:: ceil(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the nearest integer greater than or equal to argument.
+
+
+.. py:function:: char_length(string: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ The number of characters in the ``string``.
+
+
+.. py:function:: character_length(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the number of characters in the argument.
+
+
+.. py:function:: chr(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Converts the Unicode code point to a UTF8 character.
+
+
+.. py:function:: coalesce(*args: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the value of the first expr in ``args`` which is not NULL.
+
+
+.. py:function:: col(name: str) -> datafusion.expr.Expr
+
+ Creates a column reference expression.
+
+
+.. py:function:: concat(*args: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Concatenates the text representations of all the arguments.
+
+ NULL arguments are ignored.
+
+
+.. py:function:: concat_ws(separator: str, *args: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Concatenates the list ``args`` with the separator.
+
+ ``NULL`` arugments are ignored. ``separator`` should not be ``NULL``.
+
+
+.. py:function:: corr(value1: datafusion.expr.Expr, value2: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Returns the correlation coefficient between ``value1`` and ``value2``.
+
+
+.. py:function:: cos(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the cosine of the argument.
+
+
+.. py:function:: cosh(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the hyperbolic cosine of the argument.
+
+
+.. py:function:: cot(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the cotangent of the argument.
+
+
+.. py:function:: count(args: datafusion.expr.Expr | list[datafusion.expr.Expr] | None = None, distinct: bool = False) -> datafusion.expr.Expr
+
+ Returns the number of rows that match the given arguments.
+
+
+.. py:function:: count_star() -> datafusion.expr.Expr
+
+ Create a COUNT(1) aggregate expression.
+
+
+.. py:function:: covar(y: datafusion.expr.Expr, x: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Computes the sample covariance.
+
+ This is an alias for :py:func:`covar_samp`.
+
+
+.. py:function:: covar_pop(y: datafusion.expr.Expr, x: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Computes the population covariance.
+
+
+.. py:function:: covar_samp(y: datafusion.expr.Expr, x: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Computes the sample covariance.
+
+
+.. py:function:: current_date() -> datafusion.expr.Expr
+
+ Returns current UTC date as a Date32 value.
+
+
+.. py:function:: current_time() -> datafusion.expr.Expr
+
+ Returns current UTC time as a Time64 value.
+
+
+.. py:function:: date_bin(stride: datafusion.expr.Expr, source: datafusion.expr.Expr, origin: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Coerces an arbitrary timestamp to the start of the nearest specified interval.
+
+
+.. py:function:: date_part(part: datafusion.expr.Expr, date: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Extracts a subfield from the date.
+
+
+.. py:function:: date_trunc(part: datafusion.expr.Expr, date: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Truncates the date to a specified level of precision.
+
+
+.. py:function:: datepart(part: datafusion.expr.Expr, date: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Return a specified part of a date.
+
+ This is an alias for :py:func:`date_part`.
+
+
+.. py:function:: datetrunc(part: datafusion.expr.Expr, date: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Truncates the date to a specified level of precision.
+
+ This is an alias for :py:func:`date_trunc`.
+
+
+.. py:function:: decode(input: datafusion.expr.Expr, encoding: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Decode the ``input``, using the ``encoding``. encoding can be base64 or hex.
+
+
+.. py:function:: degrees(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Converts the argument from radians to degrees.
+
+
+.. py:function:: digest(value: datafusion.expr.Expr, method: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Computes the binary hash of an expression using the specified algorithm.
+
+ Standard algorithms are md5, sha224, sha256, sha384, sha512, blake2s,
+ blake2b, and blake3.
+
+
+.. py:function:: encode(input: datafusion.expr.Expr, encoding: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Encode the ``input``, using the ``encoding``. encoding can be base64 or hex.
+
+
+.. py:function:: ends_with(arg: datafusion.expr.Expr, suffix: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns true if the ``string`` ends with the ``suffix``, false otherwise.
+
+
+.. py:function:: exp(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the exponential of the arugment.
+
+
+.. py:function:: factorial(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the factorial of the argument.
+
+
+.. py:function:: find_in_set(string: datafusion.expr.Expr, string_list: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Find a string in a list of strings.
+
+ Returns a value in the range of 1 to N if the string is in the string list
+ ``string_list`` consisting of N substrings.
+
+ The string list is a string composed of substrings separated by ``,`` characters.
+
+
+.. py:function:: first_value(arg: datafusion.expr.Expr, distinct: bool = False, filter: bool = None, order_by: datafusion.expr.Expr | None = None, null_treatment: datafusion._internal.common.NullTreatment | None = None) -> datafusion.expr.Expr
+
+ Returns the first value in a group of values.
+
+
+.. py:function:: flatten(array: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Flattens an array of arrays into a single array.
+
+
+.. py:function:: floor(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the nearest integer less than or equal to the argument.
+
+
+.. py:function:: from_unixtime(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Converts an integer to RFC3339 timestamp format string.
+
+
+.. py:function:: gcd(x: datafusion.expr.Expr, y: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the greatest common divisor.
+
+
+.. py:function:: grouping(arg: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Indicates if the expression is aggregated or not.
+
+ Returns 1 if the value of the argument is aggregated, 0 if not.
+
+
+.. py:function:: in_list(arg: datafusion.expr.Expr, values: list[datafusion.expr.Expr], negated: bool = False) -> datafusion.expr.Expr
+
+ Returns whether the argument is contained within the list ``values``.
+
+
+.. py:function:: initcap(string: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Set the initial letter of each word to capital.
+
+ Converts the first letter of each word in ``string`` to uppercase and the remaining
+ characters to lowercase.
+
+
+.. py:function:: isnan(expr: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns true if a given number is +NaN or -NaN otherwise returns false.
+
+
+.. py:function:: iszero(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns true if a given number is +0.0 or -0.0 otherwise returns false.
+
+
+.. py:function:: last_value(arg: datafusion.expr.Expr, distinct: bool = False, filter: bool = None, order_by: datafusion.expr.Expr | None = None, null_treatment: datafusion._internal.common.NullTreatment | None = None) -> datafusion.expr.Expr
+
+ Returns the last value in a group of values.
+
+
+.. py:function:: lcm(x: datafusion.expr.Expr, y: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the least common multiple.
+
+
+.. py:function:: left(string: datafusion.expr.Expr, n: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the first ``n`` characters in the ``string``.
+
+
+.. py:function:: length(string: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ The number of characters in the ``string``.
+
+
+.. py:function:: levenshtein(string1: datafusion.expr.Expr, string2: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the Levenshtein distance between the two given strings.
+
+
+.. py:function:: list_append(array: datafusion.expr.Expr, element: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Appends an element to the end of an array.
+
+ This is an alias for :py:func:`array_append`.
+
+
+.. py:function:: list_dims(array: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns an array of the array's dimensions.
+
+ This is an alias for :py:func:`array_dims`.
+
+
+.. py:function:: list_distinct(array: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns distinct values from the array after removing duplicates.
+
+ This is an alias for :py:func:`array_distinct`.
+
+
+.. py:function:: list_element(array: datafusion.expr.Expr, n: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Extracts the element with the index n from the array.
+
+ This is an alias for :py:func:`array_element`.
+
+
+.. py:function:: list_except(array1: datafusion.expr.Expr, array2: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the elements that appear in ``array1`` but not in the ``array2``.
+
+ This is an alias for :py:func:`array_except`.
+
+
+.. py:function:: list_extract(array: datafusion.expr.Expr, n: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Extracts the element with the index n from the array.
+
+ This is an alias for :py:func:`array_element`.
+
+
+.. py:function:: list_indexof(array: datafusion.expr.Expr, element: datafusion.expr.Expr, index: int | None = 1) -> datafusion.expr.Expr
+
+ Return the position of the first occurrence of ``element`` in ``array``.
+
+ This is an alias for :py:func:`array_position`.
+
+
+.. py:function:: list_intersect(array1: datafusion.expr.Expr, array2: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns an the intersection of ``array1`` and ``array2``.
+
+ This is an alias for :py:func:`array_intersect`.
+
+
+.. py:function:: list_join(expr: datafusion.expr.Expr, delimiter: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Converts each element to its text representation.
+
+ This is an alias for :py:func:`array_to_string`.
+
+
+.. py:function:: list_length(array: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the length of the array.
+
+ This is an alias for :py:func:`array_length`.
+
+
+.. py:function:: list_ndims(array: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the number of dimensions of the array.
+
+ This is an alias for :py:func:`array_ndims`.
+
+
+.. py:function:: list_position(array: datafusion.expr.Expr, element: datafusion.expr.Expr, index: int | None = 1) -> datafusion.expr.Expr
+
+ Return the position of the first occurrence of ``element`` in ``array``.
+
+ This is an alias for :py:func:`array_position`.
+
+
+.. py:function:: list_positions(array: datafusion.expr.Expr, element: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Searches for an element in the array and returns all occurrences.
+
+ This is an alias for :py:func:`array_positions`.
+
+
+.. py:function:: list_prepend(element: datafusion.expr.Expr, array: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Prepends an element to the beginning of an array.
+
+ This is an alias for :py:func:`array_prepend`.
+
+
+.. py:function:: list_push_back(array: datafusion.expr.Expr, element: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Appends an element to the end of an array.
+
+ This is an alias for :py:func:`array_append`.
+
+
+.. py:function:: list_push_front(element: datafusion.expr.Expr, array: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Prepends an element to the beginning of an array.
+
+ This is an alias for :py:func:`array_prepend`.
+
+
+.. py:function:: list_remove(array: datafusion.expr.Expr, element: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Removes the first element from the array equal to the given value.
+
+ This is an alias for :py:func:`array_remove`.
+
+
+.. py:function:: list_remove_all(array: datafusion.expr.Expr, element: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Removes all elements from the array equal to the given value.
+
+ This is an alias for :py:func:`array_remove_all`.
+
+
+.. py:function:: list_remove_n(array: datafusion.expr.Expr, element: datafusion.expr.Expr, max: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Removes the first ``max`` elements from the array equal to the given value.
+
+ This is an alias for :py:func:`array_remove_n`.
+
+
+.. py:function:: list_replace(array: datafusion.expr.Expr, from_val: datafusion.expr.Expr, to_val: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Replaces the first occurrence of ``from_val`` with ``to_val``.
+
+ This is an alias for :py:func:`array_replace`.
+
+
+.. py:function:: list_replace_all(array: datafusion.expr.Expr, from_val: datafusion.expr.Expr, to_val: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Replaces all occurrences of ``from_val`` with ``to_val``.
+
+ This is an alias for :py:func:`array_replace_all`.
+
+
+.. py:function:: list_replace_n(array: datafusion.expr.Expr, from_val: datafusion.expr.Expr, to_val: datafusion.expr.Expr, max: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Replace ``n`` occurrences of ``from_val`` with ``to_val``.
+
+ Replaces the first ``max`` occurrences of the specified element with another
+ specified element.
+
+ This is an alias for :py:func:`array_replace_n`.
+
+
+.. py:function:: list_resize(array: datafusion.expr.Expr, size: datafusion.expr.Expr, value: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns an array with the specified size filled.
+
+ If ``size`` is greater than the ``array`` length, the additional entries will be
+ filled with the given ``value``. This is an alias for :py:func:`array_resize`.
+
+
+.. py:function:: list_slice(array: datafusion.expr.Expr, begin: datafusion.expr.Expr, end: datafusion.expr.Expr, stride: datafusion.expr.Expr | None = None) -> datafusion.expr.Expr
+
+ Returns a slice of the array.
+
+ This is an alias for :py:func:`array_slice`.
+
+
+.. py:function:: list_sort(array: datafusion.expr.Expr, descending: bool = False, null_first: bool = False) -> datafusion.expr.Expr
+
+ This is an alias for :py:func:`array_sort`.
+
+
+.. py:function:: list_to_string(expr: datafusion.expr.Expr, delimiter: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Converts each element to its text representation.
+
+ This is an alias for :py:func:`array_to_string`.
+
+
+.. py:function:: list_union(array1: datafusion.expr.Expr, array2: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns an array of the elements in the union of array1 and array2.
+
+ Duplicate rows will not be returned.
+
+ This is an alias for :py:func:`array_union`.
+
+
+.. py:function:: ln(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the natural logarithm (base e) of the argument.
+
+
+.. py:function:: log(base: datafusion.expr.Expr, num: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the logarithm of a number for a particular ``base``.
+
+
+.. py:function:: log10(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Base 10 logarithm of the argument.
+
+
+.. py:function:: log2(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Base 2 logarithm of the argument.
+
+
+.. py:function:: lower(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Converts a string to lowercase.
+
+
+.. py:function:: lpad(string: datafusion.expr.Expr, count: datafusion.expr.Expr, characters: datafusion.expr.Expr | None = None) -> datafusion.expr.Expr
+
+ Add left padding to a string.
+
+ Extends the string to length length by prepending the characters fill (a
+ space by default). If the string is already longer than length then it is
+ truncated (on the right).
+
+
+.. py:function:: ltrim(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Removes all characters, spaces by default, from the beginning of a string.
+
+
+.. py:function:: make_array(*args: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns an array using the specified input expressions.
+
+
+.. py:function:: make_date(year: datafusion.expr.Expr, month: datafusion.expr.Expr, day: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Make a date from year, month and day component parts.
+
+
+.. py:function:: max(arg: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Returns the maximum value of the arugment.
+
+
+.. py:function:: md5(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Computes an MD5 128-bit checksum for a string expression.
+
+
+.. py:function:: mean(arg: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Returns the average (mean) value of the argument.
+
+ This is an alias for :py:func:`avg`.
+
+
+.. py:function:: median(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Computes the median of a set of numbers.
+
+
+.. py:function:: min(arg: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Returns the minimum value of the argument.
+
+
+.. py:function:: named_struct(name_pairs: list[str, datafusion.expr.Expr]) -> datafusion.expr.Expr
+
+ Returns a struct with the given names and arguments pairs.
+
+
+.. py:function:: nanvl(x: datafusion.expr.Expr, y: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns ``x`` if ``x`` is not ``NaN``. Otherwise returns ``y``.
+
+
+.. py:function:: now() -> datafusion.expr.Expr
+
+ Returns the current timestamp in nanoseconds.
+
+ This will use the same value for all instances of now() in same statement.
+
+
+.. py:function:: nullif(expr1: datafusion.expr.Expr, expr2: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns NULL if expr1 equals expr2; otherwise it returns expr1.
+
+ This can be used to perform the inverse operation of the COALESCE expression.
+
+
+.. py:function:: octet_length(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the number of bytes of a string.
+
+
+.. py:function:: order_by(expr: datafusion.expr.Expr, ascending: bool = True, nulls_first: bool = True) -> datafusion.expr.Expr
+
+ Creates a new sort expression.
+
+
+.. py:function:: overlay(string: datafusion.expr.Expr, substring: datafusion.expr.Expr, start: datafusion.expr.Expr, length: datafusion.expr.Expr | None = None) -> datafusion.expr.Expr
+
+ Replace a substring with a new substring.
+
+ Replace the substring of string that starts at the ``start``'th character and
+ extends for ``length`` characters with new substring.
+
+
+.. py:function:: pi() -> datafusion.expr.Expr
+
+ Returns an approximate value of π.
+
+
+.. py:function:: pow(base: datafusion.expr.Expr, exponent: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns ``base`` raised to the power of ``exponent``.
+
+ This is an alias of :py:func:`power`.
+
+
+.. py:function:: power(base: datafusion.expr.Expr, exponent: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns ``base`` raised to the power of ``exponent``.
+
+
+.. py:function:: radians(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Converts the argument from degrees to radians.
+
+
+.. py:function:: random() -> datafusion.expr.Expr
+
+ Returns a random value in the range ``0.0 <= x < 1.0``.
+
+
+.. py:function:: range(start: datafusion.expr.Expr, stop: datafusion.expr.Expr, step: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Create a list of values in the range between start and stop.
+
+
+.. py:function:: regexp_like(string: datafusion.expr.Expr, regex: datafusion.expr.Expr, flags: datafusion.expr.Expr | None = None) -> datafusion.expr.Expr
+
+ Find if any regular expression (regex) matches exist.
+
+ Tests a string using a regular expression returning true if at least one match,
+ false otherwise.
+
+
+.. py:function:: regexp_match(string: datafusion.expr.Expr, regex: datafusion.expr.Expr, flags: datafusion.expr.Expr | None = None) -> datafusion.expr.Expr
+
+ Perform regular expression (regex) matching.
+
+ Returns an array with each element containing the leftmost-first match of the
+ corresponding index in ``regex`` to string in ``string``.
+
+
+.. py:function:: regexp_replace(string: datafusion.expr.Expr, pattern: datafusion.expr.Expr, replacement: datafusion.expr.Expr, flags: datafusion.expr.Expr | None = None) -> datafusion.expr.Expr
+
+ Replaces substring(s) matching a PCRE-like regular expression.
+
+ The full list of supported features and syntax can be found at
+ <https://docs.rs/regex/latest/regex/#syntax>
+
+ Supported flags with the addition of 'g' can be found at
+ <https://docs.rs/regex/latest/regex/#grouping-and-flags>
+
+
+.. py:function:: regr_avgx(y: datafusion.expr.Expr, x: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Computes the average of the independent variable ``x``.
+
+ Only non-null pairs of the inputs are evaluated.
+
+
+.. py:function:: regr_avgy(y: datafusion.expr.Expr, x: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Computes the average of the dependent variable ``y``.
+
+ Only non-null pairs of the inputs are evaluated.
+
+
+.. py:function:: regr_count(y: datafusion.expr.Expr, x: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Counts the number of rows in which both expressions are not null.
+
+
+.. py:function:: regr_intercept(y: datafusion.expr.Expr, x: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Computes the intercept from the linear regression.
+
+
+.. py:function:: regr_r2(y: datafusion.expr.Expr, x: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Computes the R-squared value from linear regression.
+
+
+.. py:function:: regr_slope(y: datafusion.expr.Expr, x: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Computes the slope from linear regression.
+
+
+.. py:function:: regr_sxx(y: datafusion.expr.Expr, x: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Computes the sum of squares of the independent variable ``x``.
+
+
+.. py:function:: regr_sxy(y: datafusion.expr.Expr, x: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Computes the sum of products of pairs of numbers.
+
+
+.. py:function:: regr_syy(y: datafusion.expr.Expr, x: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Computes the sum of squares of the dependent variable ``y``.
+
+
+.. py:function:: repeat(string: datafusion.expr.Expr, n: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Repeats the ``string`` to ``n`` times.
+
+
+.. py:function:: replace(string: datafusion.expr.Expr, from_val: datafusion.expr.Expr, to_val: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Replaces all occurrences of ``from_val`` with ``to_val`` in the ``string``.
+
+
+.. py:function:: reverse(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Reverse the string argument.
+
+
+.. py:function:: right(string: datafusion.expr.Expr, n: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the last ``n`` characters in the ``string``.
+
+
+.. py:function:: round(value: datafusion.expr.Expr, decimal_places: datafusion.expr.Expr = Expr.literal(0)) -> datafusion.expr.Expr
+
+ Round the argument to the nearest integer.
+
+ If the optional ``decimal_places`` is specified, round to the nearest number of
+ decimal places. You can specify a negative number of decimal places. For example
+ ``round(lit(125.2345), lit(-2))`` would yield a value of ``100.0``.
+
+
+.. py:function:: rpad(string: datafusion.expr.Expr, count: datafusion.expr.Expr, characters: datafusion.expr.Expr | None = None) -> datafusion.expr.Expr
+
+ Add right padding to a string.
+
+ Extends the string to length length by appending the characters fill (a space
+ by default). If the string is already longer than length then it is truncated.
+
+
+.. py:function:: rtrim(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Removes all characters, spaces by default, from the end of a string.
+
+
+.. py:function:: sha224(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Computes the SHA-224 hash of a binary string.
+
+
+.. py:function:: sha256(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Computes the SHA-256 hash of a binary string.
+
+
+.. py:function:: sha384(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Computes the SHA-384 hash of a binary string.
+
+
+.. py:function:: sha512(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Computes the SHA-512 hash of a binary string.
+
+
+.. py:function:: signum(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the sign of the argument (-1, 0, +1).
+
+
+.. py:function:: sin(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the sine of the argument.
+
+
+.. py:function:: sinh(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the hyperbolic sine of the argument.
+
+
+.. py:function:: split_part(string: datafusion.expr.Expr, delimiter: datafusion.expr.Expr, index: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Split a string and return one part.
+
+ Splits a string based on a delimiter and picks out the desired field based
+ on the index.
+
+
+.. py:function:: sqrt(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the square root of the argument.
+
+
+.. py:function:: starts_with(string: datafusion.expr.Expr, prefix: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns true if string starts with prefix.
+
+
+.. py:function:: stddev(arg: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Computes the standard deviation of the argument.
+
+
+.. py:function:: stddev_pop(arg: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Computes the population standard deviation of the argument.
+
+
+.. py:function:: stddev_samp(arg: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Computes the sample standard deviation of the argument.
+
+ This is an alias for :py:func:`stddev`.
+
+
+.. py:function:: strpos(string: datafusion.expr.Expr, substring: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Finds the position from where the ``substring`` matches the ``string``.
+
+
+.. py:function:: struct(*args: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns a struct with the given arguments.
+
+
+.. py:function:: substr(string: datafusion.expr.Expr, position: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Substring from the ``position`` to the end.
+
+
+.. py:function:: substr_index(string: datafusion.expr.Expr, delimiter: datafusion.expr.Expr, count: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns an indexed substring.
+
+ The return will be the ``string`` from before ``count`` occurrences of
+ ``delimiter``.
+
+
+.. py:function:: substring(string: datafusion.expr.Expr, position: datafusion.expr.Expr, length: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Substring from the ``position`` with ``length`` characters.
+
+
+.. py:function:: sum(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Computes the sum of a set of numbers.
+
+
+.. py:function:: tan(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the tangent of the argument.
+
+
+.. py:function:: tanh(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns the hyperbolic tangent of the argument.
+
+
+.. py:function:: to_hex(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Converts an integer to a hexadecimal string.
+
+
+.. py:function:: to_timestamp(arg: datafusion.expr.Expr, *formatters: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Converts a string and optional formats to a ``Timestamp`` in nanoseconds.
+
+ For usage of ``formatters`` see the rust chrono package ``strftime`` package.
+
+ [Documentation here.](https://docs.rs/chrono/latest/chrono/format/strftime/index.html)
+
+
+.. py:function:: to_timestamp_micros(arg: datafusion.expr.Expr, *formatters: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Converts a string and optional formats to a ``Timestamp`` in microseconds.
+
+ See :py:func:`to_timestamp` for a description on how to use formatters.
+
+
+.. py:function:: to_timestamp_millis(arg: datafusion.expr.Expr, *formatters: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Converts a string and optional formats to a ``Timestamp`` in milliseconds.
+
+ See :py:func:`to_timestamp` for a description on how to use formatters.
+
+
+.. py:function:: to_timestamp_seconds(arg: datafusion.expr.Expr, *formatters: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Converts a string and optional formats to a ``Timestamp`` in seconds.
+
+ See :py:func:`to_timestamp` for a description on how to use formatters.
+
+
+.. py:function:: to_unixtime(string: datafusion.expr.Expr, *format_arguments: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Converts a string and optional formats to a Unixtime.
+
+
+.. py:function:: translate(string: datafusion.expr.Expr, from_val: datafusion.expr.Expr, to_val: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Replaces the characters in ``from_val`` with the counterpart in ``to_val``.
+
+
+.. py:function:: trim(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Removes all characters, spaces by default, from both sides of a string.
+
+
+.. py:function:: trunc(num: datafusion.expr.Expr, precision: datafusion.expr.Expr | None = None) -> datafusion.expr.Expr
+
+ Truncate the number toward zero with optional precision.
+
+
+.. py:function:: upper(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Converts a string to uppercase.
+
+
+.. py:function:: uuid(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Returns uuid v4 as a string value.
+
+
+.. py:function:: var(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Computes the sample variance of the argument.
+
+ This is an alias for :py:func:`var_samp`.
+
+
+.. py:function:: var_pop(arg: datafusion.expr.Expr, distinct: bool = False) -> datafusion.expr.Expr
+
+ Computes the population variance of the argument.
+
+
+.. py:function:: var_samp(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Computes the sample variance of the argument.
+
+
+.. py:function:: window(name: str, args: list[datafusion.expr.Expr], partition_by: list[datafusion.expr.Expr] | None = None, order_by: list[datafusion.expr.Expr] | None = None, window_frame: datafusion.expr.WindowFrame | None = None, ctx: datafusion.context.SessionContext | None = None) -> datafusion.expr.Expr
+
+ Creates a new Window function expression.
+
+
diff --git a/_sources/autoapi/datafusion/index.rst.txt b/_sources/autoapi/datafusion/index.rst.txt
new file mode 100644
index 0000000..a804238
--- /dev/null
+++ b/_sources/autoapi/datafusion/index.rst.txt
@@ -0,0 +1,987 @@
+datafusion
+==========
+
+.. py:module:: datafusion
+
+.. autoapi-nested-parse::
+
+ DataFusion python package.
+
+ This is a Python library that binds to Apache Arrow in-memory query engine DataFusion.
+ See https://datafusion.apache.org/python for more information.
+
+
+
+Subpackages
+-----------
+
+.. toctree::
+ :maxdepth: 1
+
+ /autoapi/datafusion/input/index
+
+
+Submodules
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ /autoapi/datafusion/catalog/index
+ /autoapi/datafusion/context/index
+ /autoapi/datafusion/dataframe/index
+ /autoapi/datafusion/expr/index
+ /autoapi/datafusion/functions/index
+ /autoapi/datafusion/object_store/index
+ /autoapi/datafusion/record_batch/index
+ /autoapi/datafusion/substrait/index
+ /autoapi/datafusion/udf/index
+
+
+Attributes
+----------
+
+.. autoapisummary::
+
+ datafusion.DFSchema
+
+
+Classes
+-------
+
+.. autoapisummary::
+
+ datafusion.Accumulator
+ datafusion.AggregateUDF
+ datafusion.Catalog
+ datafusion.Database
+ datafusion.Expr
+ datafusion.RecordBatch
+ datafusion.RecordBatchStream
+ datafusion.RuntimeConfig
+ datafusion.SQLOptions
+ datafusion.ScalarUDF
+ datafusion.SessionConfig
+ datafusion.Table
+ datafusion.WindowFrame
+
+
+Functions
+---------
+
+.. autoapisummary::
+
+ datafusion.col
+ datafusion.column
+ datafusion.lit
+ datafusion.literal
+
+
+Package Contents
+----------------
+
+.. py:class:: Accumulator
+
+ Defines how an :py:class:`AggregateUDF` accumulates values.
+
+
+ .. py:method:: evaluate() -> pyarrow.Scalar
+ :abstractmethod:
+
+
+ Return the resultant value.
+
+
+
+ .. py:method:: merge(states: List[pyarrow.Array]) -> None
+ :abstractmethod:
+
+
+ Merge a set of states.
+
+
+
+ .. py:method:: state() -> List[pyarrow.Scalar]
+ :abstractmethod:
+
+
+ Return the current state.
+
+
+
+ .. py:method:: update(values: pyarrow.Array) -> None
+ :abstractmethod:
+
+
+ Evalute an array of values and update state.
+
+
+
+.. py:class:: AggregateUDF(name: str | None, accumulator: _A, input_types: list[pyarrow.DataType], return_type: _R, state_type: list[pyarrow.DataType], volatility: Volatility | str)
+
+ Class for performing scalar user defined functions (UDF).
+
+ Aggregate UDFs operate on a group of rows and return a single value. See
+ also :py:class:`ScalarUDF` for operating on a row by row basis.
+
+ Instantiate a user defined aggregate function (UDAF).
+
+ See :py:func:`udaf` for a convenience function and arugment
+ descriptions.
+
+
+ .. py:method:: __call__(*args: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Execute the UDAF.
+
+ This function is not typically called by an end user. These calls will
+ occur during the evaluation of the dataframe.
+
+
+
+ .. py:method:: udaf(accum: _A, input_types: list[pyarrow.DataType], return_type: _R, state_type: list[pyarrow.DataType], volatility: Volatility | str, name: str | None = None) -> AggregateUDF
+ :staticmethod:
+
+
+ Create a new User Defined Aggregate Function.
+
+ The accumulator function must be callable and implement :py:class:`Accumulator`.
+
+ :param accum: The accumulator python function.
+ :param input_types: The data types of the arguments to ``accum``.
+ :param return_type: The data type of the return value.
+ :param state_type: The data types of the intermediate accumulation.
+ :param volatility: See :py:class:`Volatility` for allowed values.
+ :param name: A descriptive name for the function.
+
+ :returns: A user defined aggregate function, which can be used in either data
+ aggregation or window function calls.
+
+
+
+ .. py:attribute:: _udf
+
+
+.. py:class:: Catalog(catalog: datafusion._internal.Catalog)
+
+ DataFusion data catalog.
+
+ This constructor is not typically called by the end user.
+
+
+ .. py:method:: database(name: str = 'public') -> Database
+
+ Returns the database with the given ``name`` from this catalog.
+
+
+
+ .. py:method:: names() -> list[str]
+
+ Returns the list of databases in this catalog.
+
+
+
+ .. py:attribute:: catalog
+
+
+.. py:class:: Database(db: datafusion._internal.Database)
+
+ DataFusion Database.
+
+ This constructor is not typically called by the end user.
+
+
+ .. py:method:: names() -> set[str]
+
+ Returns the list of all tables in this database.
+
+
+
+ .. py:method:: table(name: str) -> Table
+
+ Return the table with the given ``name`` from this database.
+
+
+
+ .. py:attribute:: db
+
+
+.. py:class:: Expr(expr: datafusion._internal.expr.Expr)
+
+ Expression object.
+
+ Expressions are one of the core concepts in DataFusion. See
+ :ref:`Expressions` in the online documentation for more information.
+
+ This constructor should not be called by the end user.
+
+
+ .. py:method:: __add__(rhs: Any) -> Expr
+
+ Addition operator.
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: __and__(rhs: Expr) -> Expr
+
+ Logical AND.
+
+
+
+ .. py:method:: __eq__(rhs: Any) -> Expr
+
+ Equal to.
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: __ge__(rhs: Any) -> Expr
+
+ Greater than or equal to.
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: __getitem__(key: str) -> Expr
+
+ For struct data types, return the field indicated by ``key``.
+
+
+
+ .. py:method:: __gt__(rhs: Any) -> Expr
+
+ Greater than.
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: __invert__() -> Expr
+
+ Binary not (~).
+
+
+
+ .. py:method:: __le__(rhs: Any) -> Expr
+
+ Less than or equal to.
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: __lt__(rhs: Any) -> Expr
+
+ Less than.
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: __mod__(rhs: Any) -> Expr
+
+ Modulo operator (%).
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: __mul__(rhs: Any) -> Expr
+
+ Multiplication operator.
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: __ne__(rhs: Any) -> Expr
+
+ Not equal to.
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: __or__(rhs: Expr) -> Expr
+
+ Logical OR.
+
+
+
+ .. py:method:: __repr__() -> str
+
+ Generate a string representation of this expression.
+
+
+
+ .. py:method:: __richcmp__(other: Expr, op: int) -> Expr
+
+ Comparison operator.
+
+
+
+ .. py:method:: __sub__(rhs: Any) -> Expr
+
+ Subtraction operator.
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: __truediv__(rhs: Any) -> Expr
+
+ Division operator.
+
+ Accepts either an expression or any valid PyArrow scalar literal value.
+
+
+
+ .. py:method:: alias(name: str) -> Expr
+
+ Assign a name to the expression.
+
+
+
+ .. py:method:: canonical_name() -> str
+
+ Returns a complete string representation of this expression.
+
+
+
+ .. py:method:: cast(to: pyarrow.DataType[Any]) -> Expr
+
+ Cast to a new data type.
+
+
+
+ .. py:method:: column(value: str) -> Expr
+ :staticmethod:
+
+
+ Creates a new expression representing a column.
+
+
+
+ .. py:method:: column_name(plan: datafusion._internal.LogicalPlan) -> str
+
+ Compute the output column name based on the provided logical plan.
+
+
+
+ .. py:method:: display_name() -> str
+
+ Returns the name of this expression as it should appear in a schema.
+
+ This name will not include any CAST expressions.
+
+
+
+ .. py:method:: is_null() -> Expr
+
+ Returns ``True`` if this expression is null.
+
+
+
+ .. py:method:: literal(value: Any) -> Expr
+ :staticmethod:
+
+
+ Creates a new expression representing a scalar value.
+
+ ``value`` must be a valid PyArrow scalar value or easily castable to one.
+
+
+
+ .. py:method:: python_value() -> Any
+
+ Extracts the Expr value into a PyObject.
+
+ This is only valid for literal expressions.
+
+ :returns: Python object representing literal value of the expression.
+
+
+
+ .. py:method:: rex_call_operands() -> list[Expr]
+
+ Return the operands of the expression based on it's variant type.
+
+ Row expressions, Rex(s), operate on the concept of operands. Different
+ variants of Expressions, Expr(s), store those operands in different
+ datastructures. This function examines the Expr variant and returns
+ the operands to the calling logic.
+
+
+
+ .. py:method:: rex_call_operator() -> str
+
+ Extracts the operator associated with a row expression type call.
+
+
+
+ .. py:method:: rex_type() -> datafusion.common.RexType
+
+ Return the Rex Type of this expression.
+
+ A Rex (Row Expression) specifies a single row of data.That specification
+ could include user defined functions or types. RexType identifies the
+ row as one of the possible valid ``RexType``.
+
+
+
+ .. py:method:: sort(ascending: bool = True, nulls_first: bool = True) -> Expr
+
+ Creates a sort :py:class:`Expr` from an existing :py:class:`Expr`.
+
+ :param ascending: If true, sort in ascending order.
+ :param nulls_first: Return null values first.
+
+
+
+ .. py:method:: to_variant() -> Any
+
+ Convert this expression into a python object if possible.
+
+
+
+ .. py:method:: types() -> datafusion.common.DataTypeMap
+
+ Return the ``DataTypeMap``.
+
+ :returns: DataTypeMap which represents the PythonType, Arrow DataType, and
+ SqlType Enum which this expression represents.
+
+
+
+ .. py:method:: variant_name() -> str
+
+ Returns the name of the Expr variant.
+
+ Ex: ``IsNotNull``, ``Literal``, ``BinaryExpr``, etc
+
+
+
+ .. py:attribute:: __radd__
+
+
+ .. py:attribute:: __rand__
+
+
+ .. py:attribute:: __rmod__
+
+
+ .. py:attribute:: __rmul__
+
+
+ .. py:attribute:: __ror__
+
+
+ .. py:attribute:: __rsub__
+
+
+ .. py:attribute:: __rtruediv__
+
+
+ .. py:attribute:: expr
+
+
+.. py:class:: RecordBatch(record_batch: datafusion._internal.RecordBatch)
+
+ This class is essentially a wrapper for :py:class:`pyarrow.RecordBatch`.
+
+ This constructor is generally not called by the end user.
+
+ See the :py:class:`RecordBatchStream` iterator for generating this class.
+
+
+ .. py:method:: to_pyarrow() -> pyarrow.RecordBatch
+
+ Convert to :py:class:`pyarrow.RecordBatch`.
+
+
+
+ .. py:attribute:: record_batch
+
+
+.. py:class:: RecordBatchStream(record_batch_stream: datafusion._internal.RecordBatchStream)
+
+ This class represents a stream of record batches.
+
+ These are typically the result of a
+ :py:func:`~datafusion.dataframe.DataFrame.execute_stream` operation.
+
+ This constructor is typically not called by the end user.
+
+
+ .. py:method:: __iter__() -> typing_extensions.Self
+
+ Iterator function.
+
+
+
+ .. py:method:: __next__() -> RecordBatch
+
+ Iterator function.
+
+
+
+ .. py:method:: next() -> RecordBatch | None
+
+ See :py:func:`__next__` for the iterator function.
+
+
+
+ .. py:attribute:: rbs
+
+
+.. py:class:: RuntimeConfig
+
+ Runtime configuration options.
+
+ Create a new :py:class:`RuntimeConfig` with default values.
+
+
+ .. py:method:: with_disk_manager_disabled() -> RuntimeConfig
+
+ Disable the disk manager, attempts to create temporary files will error.
+
+ :returns: A new :py:class:`RuntimeConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_disk_manager_os() -> RuntimeConfig
+
+ Use the operating system's temporary directory for disk manager.
+
+ :returns: A new :py:class:`RuntimeConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_disk_manager_specified(*paths: str | pathlib.Path) -> RuntimeConfig
+
+ Use the specified paths for the disk manager's temporary files.
+
+ :param paths: Paths to use for the disk manager's temporary files.
+
+ :returns: A new :py:class:`RuntimeConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_fair_spill_pool(size: int) -> RuntimeConfig
+
+ Use a fair spill pool with the specified size.
+
+ This pool works best when you know beforehand the query has multiple spillable
+ operators that will likely all need to spill. Sometimes it will cause spills
+ even when there was sufficient memory (reserved for other operators) to avoid
+ doing so::
+
+ ┌───────────────────────z──────────────────────z───────────────┐
+ │ z z │
+ │ z z │
+ │ Spillable z Unspillable z Free │
+ │ Memory z Memory z Memory │
+ │ z z │
+ │ z z │
+ └───────────────────────z──────────────────────z───────────────┘
+
+ :param size: Size of the memory pool in bytes.
+
+ :returns: A new :py:class:`RuntimeConfig` object with the updated setting.
+
+ Examples usage::
+
+ config = RuntimeConfig().with_fair_spill_pool(1024)
+
+
+
+ .. py:method:: with_greedy_memory_pool(size: int) -> RuntimeConfig
+
+ Use a greedy memory pool with the specified size.
+
+ This pool works well for queries that do not need to spill or have a single
+ spillable operator. See :py:func:`with_fair_spill_pool` if there are
+ multiple spillable operators that all will spill.
+
+ :param size: Size of the memory pool in bytes.
+
+ :returns: A new :py:class:`RuntimeConfig` object with the updated setting.
+
+ Example usage::
+
+ config = RuntimeConfig().with_greedy_memory_pool(1024)
+
+
+
+ .. py:method:: with_temp_file_path(path: str | pathlib.Path) -> RuntimeConfig
+
+ Use the specified path to create any needed temporary files.
+
+ :param path: Path to use for temporary files.
+
+ :returns: A new :py:class:`RuntimeConfig` object with the updated setting.
+
+ Example usage::
+
+ config = RuntimeConfig().with_temp_file_path("/tmp")
+
+
+
+ .. py:method:: with_unbounded_memory_pool() -> RuntimeConfig
+
+ Use an unbounded memory pool.
+
+ :returns: A new :py:class:`RuntimeConfig` object with the updated setting.
+
+
+
+ .. py:attribute:: config_internal
+
+
+.. py:class:: SQLOptions
+
+ Options to be used when performing SQL queries.
+
+ Create a new :py:class:`SQLOptions` with default values.
+
+ The default values are:
+ - DDL commands are allowed
+ - DML commands are allowed
+ - Statements are allowed
+
+
+ .. py:method:: with_allow_ddl(allow: bool = True) -> SQLOptions
+
+ Should DDL (Data Definition Language) commands be run?
+
+ Examples of DDL commands include ``CREATE TABLE`` and ``DROP TABLE``.
+
+ :param allow: Allow DDL commands to be run.
+
+ :returns: A new :py:class:`SQLOptions` object with the updated setting.
+
+ Example usage::
+
+ options = SQLOptions().with_allow_ddl(True)
+
+
+
+ .. py:method:: with_allow_dml(allow: bool = True) -> SQLOptions
+
+ Should DML (Data Manipulation Language) commands be run?
+
+ Examples of DML commands include ``INSERT INTO`` and ``DELETE``.
+
+ :param allow: Allow DML commands to be run.
+
+ :returns: A new :py:class:`SQLOptions` object with the updated setting.
+
+ Example usage::
+
+ options = SQLOptions().with_allow_dml(True)
+
+
+
+ .. py:method:: with_allow_statements(allow: bool = True) -> SQLOptions
+
+ Should statements such as ``SET VARIABLE`` and ``BEGIN TRANSACTION`` be run?
+
+ :param allow: Allow statements to be run.
+
+ :returns: py:class:SQLOptions` object with the updated setting.
+ :rtype: A new
+
+ Example usage::
+
+ options = SQLOptions().with_allow_statements(True)
+
+
+
+ .. py:attribute:: options_internal
+
+
+.. py:class:: ScalarUDF(name: str | None, func: Callable[Ellipsis, _R], input_types: list[pyarrow.DataType], return_type: _R, volatility: Volatility | str)
+
+ Class for performing scalar user defined functions (UDF).
+
+ Scalar UDFs operate on a row by row basis. See also :py:class:`AggregateUDF` for
+ operating on a group of rows.
+
+ Instantiate a scalar user defined function (UDF).
+
+ See helper method :py:func:`udf` for argument details.
+
+
+ .. py:method:: __call__(*args: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Execute the UDF.
+
+ This function is not typically called by an end user. These calls will
+ occur during the evaluation of the dataframe.
+
+
+
+ .. py:method:: udf(func: Callable[Ellipsis, _R], input_types: list[pyarrow.DataType], return_type: _R, volatility: Volatility | str, name: str | None = None) -> ScalarUDF
+ :staticmethod:
+
+
+ Create a new User Defined Function.
+
+ :param func: A callable python function.
+ :param input_types: The data types of the arguments to ``func``. This list
+ must be of the same length as the number of arguments.
+ :param return_type: The data type of the return value from the python
+ function.
+ :param volatility: See ``Volatility`` for allowed values.
+ :param name: A descriptive name for the function.
+
+ :returns:
+
+ A user defined aggregate function, which can be used in either data
+ aggregation or window function calls.
+
+
+
+ .. py:attribute:: _udf
+
+
+.. py:class:: SessionConfig(config_options: dict[str, str] | None = None)
+
+ Session configuration options.
+
+ Create a new :py:class:`SessionConfig` with the given configuration options.
+
+ :param config_options: Configuration options.
+
+
+ .. py:method:: set(key: str, value: str) -> SessionConfig
+
+ Set a configuration option.
+
+ Args:
+ key: Option key.
+ value: Option value.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_batch_size(batch_size: int) -> SessionConfig
+
+ Customize batch size.
+
+ :param batch_size: Batch size.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_create_default_catalog_and_schema(enabled: bool = True) -> SessionConfig
+
+ Control if the default catalog and schema will be automatically created.
+
+ :param enabled: Whether the default catalog and schema will be
+ automatically created.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_default_catalog_and_schema(catalog: str, schema: str) -> SessionConfig
+
+ Select a name for the default catalog and shcema.
+
+ :param catalog: Catalog name.
+ :param schema: Schema name.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_information_schema(enabled: bool = True) -> SessionConfig
+
+ Enable or disable the inclusion of ``information_schema`` virtual tables.
+
+ :param enabled: Whether to include ``information_schema`` virtual tables.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_parquet_pruning(enabled: bool = True) -> SessionConfig
+
+ Enable or disable the use of pruning predicate for parquet readers.
+
+ Pruning predicates will enable the reader to skip row groups.
+
+ :param enabled: Whether to use pruning predicate for parquet readers.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_repartition_aggregations(enabled: bool = True) -> SessionConfig
+
+ Enable or disable the use of repartitioning for aggregations.
+
+ Enabling this improves parallelism.
+
+ :param enabled: Whether to use repartitioning for aggregations.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_repartition_file_min_size(size: int) -> SessionConfig
+
+ Set minimum file range size for repartitioning scans.
+
+ :param size: Minimum file range size.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_repartition_file_scans(enabled: bool = True) -> SessionConfig
+
+ Enable or disable the use of repartitioning for file scans.
+
+ :param enabled: Whether to use repartitioning for file scans.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_repartition_joins(enabled: bool = True) -> SessionConfig
+
+ Enable or disable the use of repartitioning for joins to improve parallelism.
+
+ :param enabled: Whether to use repartitioning for joins.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_repartition_sorts(enabled: bool = True) -> SessionConfig
+
+ Enable or disable the use of repartitioning for window functions.
+
+ This may improve parallelism.
+
+ :param enabled: Whether to use repartitioning for window functions.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_repartition_windows(enabled: bool = True) -> SessionConfig
+
+ Enable or disable the use of repartitioning for window functions.
+
+ This may improve parallelism.
+
+ :param enabled: Whether to use repartitioning for window functions.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:method:: with_target_partitions(target_partitions: int) -> SessionConfig
+
+ Customize the number of target partitions for query execution.
+
+ Increasing partitions can increase concurrency.
+
+ :param target_partitions: Number of target partitions.
+
+ :returns: A new :py:class:`SessionConfig` object with the updated setting.
+
+
+
+ .. py:attribute:: config_internal
+
+
+.. py:class:: Table(table: datafusion._internal.Table)
+
+ DataFusion table.
+
+ This constructor is not typically called by the end user.
+
+
+ .. py:method:: schema() -> pyarrow.Schema
+
+ Returns the schema associated with this table.
+
+
+
+ .. py:property:: kind
+ :type: str
+
+ Returns the kind of table.
+
+
+ .. py:attribute:: table
+
+
+.. py:class:: WindowFrame(units: str, start_bound: int | None, end_bound: int | None)
+
+ Defines a window frame for performing window operations.
+
+ Construct a window frame using the given parameters.
+
+ :param units: Should be one of ``rows``, ``range``, or ``groups``.
+ :param start_bound: Sets the preceeding bound. Must be >= 0. If none, this
+ will be set to unbounded. If unit type is ``groups``, this
+ parameter must be set.
+ :param end_bound: Sets the following bound. Must be >= 0. If none, this
+ will be set to unbounded. If unit type is ``groups``, this
+ parameter must be set.
+
+
+ .. py:method:: get_frame_units() -> str
+
+ Returns the window frame units for the bounds.
+
+
+
+ .. py:method:: get_lower_bound() -> WindowFrameBound
+
+ Returns starting bound.
+
+
+
+ .. py:method:: get_upper_bound()
+
+ Returns end bound.
+
+
+
+ .. py:attribute:: window_frame
+
+
+.. py:function:: col(value: str)
+
+ Create a column expression.
+
+
+.. py:function:: column(value: str)
+
+ Create a column expression.
+
+
+.. py:function:: lit(value)
+
+ Create a literal expression.
+
+
+.. py:function:: literal(value)
+
+ Create a literal expression.
+
+
+.. py:data:: DFSchema
+
diff --git a/_sources/autoapi/datafusion/input/base/index.rst.txt b/_sources/autoapi/datafusion/input/base/index.rst.txt
new file mode 100644
index 0000000..7deb151
--- /dev/null
+++ b/_sources/autoapi/datafusion/input/base/index.rst.txt
@@ -0,0 +1,55 @@
+datafusion.input.base
+=====================
+
+.. py:module:: datafusion.input.base
+
+.. autoapi-nested-parse::
+
+ This module provides ``BaseInputSource``.
+
+ A user can extend this to provide a custom input source.
+
+
+
+Classes
+-------
+
+.. autoapisummary::
+
+ datafusion.input.base.BaseInputSource
+
+
+Module Contents
+---------------
+
+.. py:class:: BaseInputSource
+
+ Bases: :py:obj:`abc.ABC`
+
+
+ Base Input Source class.
+
+ If a consuming library would like to provider their own InputSource this is
+ the class they should extend to write their own.
+
+ Once completed the Plugin InputSource can be registered with the
+ SessionContext to ensure that it will be used in order
+ to obtain the SqlTable information from the custom datasource.
+
+
+ .. py:method:: build_table(input_item: Any, table_name: str, **kwarg) -> datafusion.common.SqlTable
+ :abstractmethod:
+
+
+ Create a table from the input source.
+
+
+
+ .. py:method:: is_correct_input(input_item: Any, table_name: str, **kwargs) -> bool
+ :abstractmethod:
+
+
+ Returns `True` if the input is valid.
+
+
+
diff --git a/_sources/autoapi/datafusion/input/index.rst.txt b/_sources/autoapi/datafusion/input/index.rst.txt
new file mode 100644
index 0000000..27ebad0
--- /dev/null
+++ b/_sources/autoapi/datafusion/input/index.rst.txt
@@ -0,0 +1,23 @@
+datafusion.input
+================
+
+.. py:module:: datafusion.input
+
+.. autoapi-nested-parse::
+
+ This package provides for input sources.
+
+ The primary class used within DataFusion is ``LocationInputPlugin``.
+
+
+
+Submodules
+----------
+
+.. toctree::
+ :maxdepth: 1
+
+ /autoapi/datafusion/input/base/index
+ /autoapi/datafusion/input/location/index
+
+
diff --git a/_sources/autoapi/datafusion/input/location/index.rst.txt b/_sources/autoapi/datafusion/input/location/index.rst.txt
new file mode 100644
index 0000000..195c81a
--- /dev/null
+++ b/_sources/autoapi/datafusion/input/location/index.rst.txt
@@ -0,0 +1,44 @@
+datafusion.input.location
+=========================
+
+.. py:module:: datafusion.input.location
+
+.. autoapi-nested-parse::
+
+ The default input source for DataFusion.
+
+
+
+Classes
+-------
+
+.. autoapisummary::
+
+ datafusion.input.location.LocationInputPlugin
+
+
+Module Contents
+---------------
+
+.. py:class:: LocationInputPlugin
+
+ Bases: :py:obj:`datafusion.input.base.BaseInputSource`
+
+
+ Input Plugin for everything.
+
+ This can be read in from a file (on disk, remote etc.).
+
+
+ .. py:method:: build_table(input_file: str, table_name: str, **kwargs) -> datafusion.common.SqlTable
+
+ Create a table from the input source.
+
+
+
+ .. py:method:: is_correct_input(input_item: Any, table_name: str, **kwargs)
+
+ Returns `True` if the input is valid.
+
+
+
diff --git a/_sources/autoapi/datafusion/object_store/index.rst.txt b/_sources/autoapi/datafusion/object_store/index.rst.txt
new file mode 100644
index 0000000..31167dd
--- /dev/null
+++ b/_sources/autoapi/datafusion/object_store/index.rst.txt
@@ -0,0 +1,33 @@
+datafusion.object_store
+=======================
+
+.. py:module:: datafusion.object_store
+
+.. autoapi-nested-parse::
+
+ Object store functionality.
+
+
+
+Attributes
+----------
+
+.. autoapisummary::
+
+ datafusion.object_store.AmazonS3
+ datafusion.object_store.GoogleCloud
+ datafusion.object_store.LocalFileSystem
+ datafusion.object_store.MicrosoftAzure
+
+
+Module Contents
+---------------
+
+.. py:data:: AmazonS3
+
+.. py:data:: GoogleCloud
+
+.. py:data:: LocalFileSystem
+
+.. py:data:: MicrosoftAzure
+
diff --git a/_sources/autoapi/datafusion/record_batch/index.rst.txt b/_sources/autoapi/datafusion/record_batch/index.rst.txt
new file mode 100644
index 0000000..7ce0bbd
--- /dev/null
+++ b/_sources/autoapi/datafusion/record_batch/index.rst.txt
@@ -0,0 +1,75 @@
+datafusion.record_batch
+=======================
+
+.. py:module:: datafusion.record_batch
+
+.. autoapi-nested-parse::
+
+ This module provides the classes for handling record batches.
+
+ These are typically the result of dataframe
+ :py:func:`datafusion.dataframe.execute_stream` operations.
+
+
+
+Classes
+-------
+
+.. autoapisummary::
+
+ datafusion.record_batch.RecordBatch
+ datafusion.record_batch.RecordBatchStream
+
+
+Module Contents
+---------------
+
+.. py:class:: RecordBatch(record_batch: datafusion._internal.RecordBatch)
+
+ This class is essentially a wrapper for :py:class:`pyarrow.RecordBatch`.
+
+ This constructor is generally not called by the end user.
+
+ See the :py:class:`RecordBatchStream` iterator for generating this class.
+
+
+ .. py:method:: to_pyarrow() -> pyarrow.RecordBatch
+
+ Convert to :py:class:`pyarrow.RecordBatch`.
+
+
+
+ .. py:attribute:: record_batch
+
+
+.. py:class:: RecordBatchStream(record_batch_stream: datafusion._internal.RecordBatchStream)
+
+ This class represents a stream of record batches.
+
+ These are typically the result of a
+ :py:func:`~datafusion.dataframe.DataFrame.execute_stream` operation.
+
+ This constructor is typically not called by the end user.
+
+
+ .. py:method:: __iter__() -> typing_extensions.Self
+
+ Iterator function.
+
+
+
+ .. py:method:: __next__() -> RecordBatch
+
+ Iterator function.
+
+
+
+ .. py:method:: next() -> RecordBatch | None
+
+ See :py:func:`__next__` for the iterator function.
+
+
+
+ .. py:attribute:: rbs
+
+
diff --git a/_sources/autoapi/datafusion/substrait/index.rst.txt b/_sources/autoapi/datafusion/substrait/index.rst.txt
new file mode 100644
index 0000000..fd08368
--- /dev/null
+++ b/_sources/autoapi/datafusion/substrait/index.rst.txt
@@ -0,0 +1,154 @@
+datafusion.substrait
+====================
+
+.. py:module:: datafusion.substrait
+
+.. autoapi-nested-parse::
+
+ This module provides support for using substrait with datafusion.
+
+ For additional information about substrait, see https://substrait.io/ for more
+ information about substrait.
+
+
+
+Classes
+-------
+
+.. autoapisummary::
+
+ datafusion.substrait.Consumer
+ datafusion.substrait.Plan
+ datafusion.substrait.Producer
+ datafusion.substrait.Serde
+
+
+Module Contents
+---------------
+
+.. py:class:: Consumer
+
+ Generates a logical plan from a substrait plan.
+
+
+ .. py:method:: from_substrait_plan(ctx: datafusion.context.SessionContext, plan: Plan) -> datafusion._internal.LogicalPlan
+ :staticmethod:
+
+
+ Convert a Substrait plan to a DataFusion LogicalPlan.
+
+ :param ctx: SessionContext to use.
+ :param plan: Substrait plan to convert.
+
+ :returns: LogicalPlan.
+
+
+
+.. py:class:: Plan(plan: datafusion._internal.substrait.Plan)
+
+ A class representing an encodable substrait plan.
+
+ Create a substrait plan.
+
+ The user should not have to call this constructor directly. Rather, it
+ should be created via :py:class:`Serde` or py:class:`Producer` classes
+ in this module.
+
+
+ .. py:method:: encode() -> bytes
+
+ Encode the plan to bytes.
+
+ :returns: Encoded plan.
+
+
+
+ .. py:attribute:: plan_internal
+
+
+.. py:class:: Producer
+
+ Generates substrait plans from a logical plan.
+
+
+ .. py:method:: to_substrait_plan(logical_plan: datafusion._internal.LogicalPlan, ctx: datafusion.context.SessionContext) -> Plan
+ :staticmethod:
+
+
+ Convert a DataFusion LogicalPlan to a Substrait plan.
+
+ :param logical_plan: LogicalPlan to convert.
+ :param ctx: SessionContext to use.
+
+ :returns: Substrait plan.
+
+
+
+.. py:class:: Serde
+
+ Provides the ``Substrait`` serialization and deserialization.
+
+
+ .. py:method:: deserialize(path: str | pathlib.Path) -> Plan
+ :staticmethod:
+
+
+ Deserialize a Substrait plan from a file.
+
+ :param path: Path to read the Substrait plan from.
+
+ :returns: Substrait plan.
+
+
+
+ .. py:method:: deserialize_bytes(proto_bytes: bytes) -> Plan
+ :staticmethod:
+
+
+ Deserialize a Substrait plan from bytes.
+
+ :param proto_bytes: Bytes to read the Substrait plan from.
+
+ :returns: Substrait plan.
+
+
+
+ .. py:method:: serialize(sql: str, ctx: datafusion.context.SessionContext, path: str | pathlib.Path) -> None
+ :staticmethod:
+
+
+ Serialize a SQL query to a Substrait plan and write it to a file.
+
+ :param sql: SQL query to serialize.
+ :param ctx: SessionContext to use.
+ :param path: Path to write the Substrait plan to.
+
+
+
+ .. py:method:: serialize_bytes(sql: str, ctx: datafusion.context.SessionContext) -> bytes
+ :staticmethod:
+
+
+ Serialize a SQL query to a Substrait plan as bytes.
+
+ :param sql: SQL query to serialize.
+ :param ctx: SessionContext to use.
+
+ :returns: Substrait plan as bytes.
+
+
+
+ .. py:method:: serialize_to_plan(sql: str, ctx: datafusion.context.SessionContext) -> Plan
+ :staticmethod:
+
+
+ Serialize a SQL query to a Substrait plan.
+
+ Args:
+ sql: SQL query to serialize.
+ ctx: SessionContext to use.
+
+ :returns: Substrait plan.
+
+
+
diff --git a/_sources/autoapi/datafusion/udf/index.rst.txt b/_sources/autoapi/datafusion/udf/index.rst.txt
new file mode 100644
index 0000000..88ccc9c
--- /dev/null
+++ b/_sources/autoapi/datafusion/udf/index.rst.txt
@@ -0,0 +1,222 @@
+datafusion.udf
+==============
+
+.. py:module:: datafusion.udf
+
+.. autoapi-nested-parse::
+
+ Provides the user defined functions for evaluation of dataframes.
+
+
+
+Attributes
+----------
+
+.. autoapisummary::
+
+ datafusion.udf._A
+ datafusion.udf._R
+
+
+Classes
+-------
+
+.. autoapisummary::
+
+ datafusion.udf.Accumulator
+ datafusion.udf.AggregateUDF
+ datafusion.udf.ScalarUDF
+ datafusion.udf.Volatility
+
+
+Module Contents
+---------------
+
+.. py:class:: Accumulator
+
+ Defines how an :py:class:`AggregateUDF` accumulates values.
+
+
+ .. py:method:: evaluate() -> pyarrow.Scalar
+ :abstractmethod:
+
+
+ Return the resultant value.
+
+
+
+ .. py:method:: merge(states: List[pyarrow.Array]) -> None
+ :abstractmethod:
+
+
+ Merge a set of states.
+
+
+
+ .. py:method:: state() -> List[pyarrow.Scalar]
+ :abstractmethod:
+
+
+ Return the current state.
+
+
+
+ .. py:method:: update(values: pyarrow.Array) -> None
+ :abstractmethod:
+
+
+ Evalute an array of values and update state.
+
+
+
+.. py:class:: AggregateUDF(name: str | None, accumulator: _A, input_types: list[pyarrow.DataType], return_type: _R, state_type: list[pyarrow.DataType], volatility: Volatility | str)
+
+ Class for performing scalar user defined functions (UDF).
+
+ Aggregate UDFs operate on a group of rows and return a single value. See
+ also :py:class:`ScalarUDF` for operating on a row by row basis.
+
+ Instantiate a user defined aggregate function (UDAF).
+
+ See :py:func:`udaf` for a convenience function and arugment
+ descriptions.
+
+
+ .. py:method:: __call__(*args: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Execute the UDAF.
+
+ This function is not typically called by an end user. These calls will
+ occur during the evaluation of the dataframe.
+
+
+
+ .. py:method:: udaf(accum: _A, input_types: list[pyarrow.DataType], return_type: _R, state_type: list[pyarrow.DataType], volatility: Volatility | str, name: str | None = None) -> AggregateUDF
+ :staticmethod:
+
+
+ Create a new User Defined Aggregate Function.
+
+ The accumulator function must be callable and implement :py:class:`Accumulator`.
+
+ :param accum: The accumulator python function.
+ :param input_types: The data types of the arguments to ``accum``.
+ :param return_type: The data type of the return value.
+ :param state_type: The data types of the intermediate accumulation.
+ :param volatility: See :py:class:`Volatility` for allowed values.
+ :param name: A descriptive name for the function.
+
+ :returns: A user defined aggregate function, which can be used in either data
+ aggregation or window function calls.
+
+
+
+ .. py:attribute:: _udf
+
+
+.. py:class:: ScalarUDF(name: str | None, func: Callable[Ellipsis, _R], input_types: list[pyarrow.DataType], return_type: _R, volatility: Volatility | str)
+
+ Class for performing scalar user defined functions (UDF).
+
+ Scalar UDFs operate on a row by row basis. See also :py:class:`AggregateUDF` for
+ operating on a group of rows.
+
+ Instantiate a scalar user defined function (UDF).
+
+ See helper method :py:func:`udf` for argument details.
+
+
+ .. py:method:: __call__(*args: datafusion.expr.Expr) -> datafusion.expr.Expr
+
+ Execute the UDF.
+
+ This function is not typically called by an end user. These calls will
+ occur during the evaluation of the dataframe.
+
+
+
+ .. py:method:: udf(func: Callable[Ellipsis, _R], input_types: list[pyarrow.DataType], return_type: _R, volatility: Volatility | str, name: str | None = None) -> ScalarUDF
+ :staticmethod:
+
+
+ Create a new User Defined Function.
+
+ :param func: A callable python function.
+ :param input_types: The data types of the arguments to ``func``. This list
+ must be of the same length as the number of arguments.
+ :param return_type: The data type of the return value from the python
+ function.
+ :param volatility: See ``Volatility`` for allowed values.
+ :param name: A descriptive name for the function.
+
+ :returns:
+
+ A user defined aggregate function, which can be used in either data
+ aggregation or window function calls.
+
+
+
+ .. py:attribute:: _udf
+
+
+.. py:class:: Volatility(*args, **kwds)
+
+ Bases: :py:obj:`enum.Enum`
+
+
+ Defines how stable or volatile a function is.
+
+ When setting the volatility of a function, you can either pass this
+ enumeration or a ``str``. The ``str`` equivalent is the lower case value of the
+ name (`"immutable"`, `"stable"`, or `"volatile"`).
+
+
+ .. py:method:: __str__()
+
+ Returns the string equivalent.
+
+
+
+ .. py:attribute:: Immutable
+ :value: 1
+
+
+ An immutable function will always return the same output when given the
+ same input.
+
+ DataFusion will attempt to inline immutable functions during planning.
+
+
+ .. py:attribute:: Stable
+ :value: 2
+
+
+ Returns the same value for a given input within a single queries.
+
+ A stable function may return different values given the same input across
+ different queries but must return the same value for a given input within a
+ query. An example of this is the ``Now`` function. DataFusion will attempt to
+ inline ``Stable`` functions during planning, when possible. For query
+ ``select col1, now() from t1``, it might take a while to execute but ``now()``
+ column will be the same for each output row, which is evaluated during
+ planning.
+
+
+ .. py:attribute:: Volatile
+ :value: 3
+
+
+ A volatile function may change the return value from evaluation to
+ evaluation.
+
+ Multiple invocations of a volatile function may return different results
+ when used in the same query. An example of this is the random() function.
+ DataFusion can not evaluate such functions during planning. In the query
+ ``select col1, random() from t1``, ``random()`` function will be evaluated
+ for each output row, resulting in a unique random value for each row.
+
+
+.. py:data:: _A
+
+.. py:data:: _R
+
diff --git a/_sources/autoapi/index.rst.txt b/_sources/autoapi/index.rst.txt
new file mode 100644
index 0000000..5c54234
--- /dev/null
+++ b/_sources/autoapi/index.rst.txt
@@ -0,0 +1,11 @@
+API Reference
+=============
+
+This page contains auto-generated API reference documentation [#f1]_.
+
+.. toctree::
+ :titlesonly:
+
+ /autoapi/datafusion/index
+
+.. [#f1] Created with `sphinx-autoapi <https://github.com/readthedocs/sphinx-autoapi>`_
\ No newline at end of file
diff --git a/_sources/generated/datafusion.DataFrame.rst.txt b/_sources/generated/datafusion.DataFrame.rst.txt
deleted file mode 100644
index 9e18d8d..0000000
--- a/_sources/generated/datafusion.DataFrame.rst.txt
+++ /dev/null
@@ -1,60 +0,0 @@
-datafusion.DataFrame
-====================
-
-.. currentmodule:: datafusion
-
-.. autoclass:: DataFrame
-
-
- .. automethod:: __init__
-
-
- .. rubric:: Methods
-
- .. autosummary::
-
- ~DataFrame.__init__
- ~DataFrame.aggregate
- ~DataFrame.cache
- ~DataFrame.collect
- ~DataFrame.collect_partitioned
- ~DataFrame.count
- ~DataFrame.describe
- ~DataFrame.distinct
- ~DataFrame.except_all
- ~DataFrame.execute_stream
- ~DataFrame.execute_stream_partitioned
- ~DataFrame.execution_plan
- ~DataFrame.explain
- ~DataFrame.filter
- ~DataFrame.intersect
- ~DataFrame.join
- ~DataFrame.limit
- ~DataFrame.logical_plan
- ~DataFrame.optimized_logical_plan
- ~DataFrame.repartition
- ~DataFrame.repartition_by_hash
- ~DataFrame.schema
- ~DataFrame.select
- ~DataFrame.select_columns
- ~DataFrame.show
- ~DataFrame.sort
- ~DataFrame.to_arrow_table
- ~DataFrame.to_pandas
- ~DataFrame.to_polars
- ~DataFrame.to_pydict
- ~DataFrame.to_pylist
- ~DataFrame.union
- ~DataFrame.union_distinct
- ~DataFrame.unnest_column
- ~DataFrame.with_column
- ~DataFrame.with_column_renamed
- ~DataFrame.write_csv
- ~DataFrame.write_json
- ~DataFrame.write_parquet
-
-
-
-
-
-
\ No newline at end of file
diff --git a/_sources/generated/datafusion.Expr.rst.txt b/_sources/generated/datafusion.Expr.rst.txt
deleted file mode 100644
index ec3699b..0000000
--- a/_sources/generated/datafusion.Expr.rst.txt
+++ /dev/null
@@ -1,38 +0,0 @@
-datafusion.Expr
-===============
-
-.. currentmodule:: datafusion
-
-.. autoclass:: Expr
-
-
- .. automethod:: __init__
-
-
- .. rubric:: Methods
-
- .. autosummary::
-
- ~Expr.__init__
- ~Expr.alias
- ~Expr.canonical_name
- ~Expr.cast
- ~Expr.column
- ~Expr.column_name
- ~Expr.display_name
- ~Expr.is_null
- ~Expr.literal
- ~Expr.python_value
- ~Expr.rex_call_operands
- ~Expr.rex_call_operator
- ~Expr.rex_type
- ~Expr.sort
- ~Expr.to_variant
- ~Expr.types
- ~Expr.variant_name
-
-
-
-
-
-
\ No newline at end of file
diff --git a/_sources/generated/datafusion.RuntimeConfig.rst.txt b/_sources/generated/datafusion.RuntimeConfig.rst.txt
deleted file mode 100644
index aee0841..0000000
--- a/_sources/generated/datafusion.RuntimeConfig.rst.txt
+++ /dev/null
@@ -1,29 +0,0 @@
-datafusion.RuntimeConfig
-========================
-
-.. currentmodule:: datafusion
-
-.. autoclass:: RuntimeConfig
-
-
- .. automethod:: __init__
-
-
- .. rubric:: Methods
-
- .. autosummary::
-
- ~RuntimeConfig.__init__
- ~RuntimeConfig.with_disk_manager_disabled
- ~RuntimeConfig.with_disk_manager_os
- ~RuntimeConfig.with_disk_manager_specified
- ~RuntimeConfig.with_fair_spill_pool
- ~RuntimeConfig.with_greedy_memory_pool
- ~RuntimeConfig.with_temp_file_path
- ~RuntimeConfig.with_unbounded_memory_pool
-
-
-
-
-
-
\ No newline at end of file
diff --git a/_sources/generated/datafusion.SessionConfig.rst.txt b/_sources/generated/datafusion.SessionConfig.rst.txt
deleted file mode 100644
index 3c46662..0000000
--- a/_sources/generated/datafusion.SessionConfig.rst.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-datafusion.SessionConfig
-========================
-
-.. currentmodule:: datafusion
-
-.. autoclass:: SessionConfig
-
-
- .. automethod:: __init__
-
-
- .. rubric:: Methods
-
- .. autosummary::
-
- ~SessionConfig.__init__
- ~SessionConfig.set
- ~SessionConfig.with_batch_size
- ~SessionConfig.with_create_default_catalog_and_schema
- ~SessionConfig.with_default_catalog_and_schema
- ~SessionConfig.with_information_schema
- ~SessionConfig.with_parquet_pruning
- ~SessionConfig.with_repartition_aggregations
- ~SessionConfig.with_repartition_file_min_size
- ~SessionConfig.with_repartition_file_scans
- ~SessionConfig.with_repartition_joins
- ~SessionConfig.with_repartition_sorts
- ~SessionConfig.with_repartition_windows
- ~SessionConfig.with_target_partitions
-
-
-
-
-
-
\ No newline at end of file
diff --git a/_sources/generated/datafusion.SessionContext.rst.txt b/_sources/generated/datafusion.SessionContext.rst.txt
deleted file mode 100644
index d5e2a3a..0000000
--- a/_sources/generated/datafusion.SessionContext.rst.txt
+++ /dev/null
@@ -1,55 +0,0 @@
-datafusion.SessionContext
-=========================
-
-.. currentmodule:: datafusion
-
-.. autoclass:: SessionContext
-
-
- .. automethod:: __init__
-
-
- .. rubric:: Methods
-
- .. autosummary::
-
- ~SessionContext.__init__
- ~SessionContext.catalog
- ~SessionContext.create_dataframe
- ~SessionContext.create_dataframe_from_logical_plan
- ~SessionContext.deregister_table
- ~SessionContext.empty_table
- ~SessionContext.execute
- ~SessionContext.from_arrow_table
- ~SessionContext.from_pandas
- ~SessionContext.from_polars
- ~SessionContext.from_pydict
- ~SessionContext.from_pylist
- ~SessionContext.read_avro
- ~SessionContext.read_csv
- ~SessionContext.read_json
- ~SessionContext.read_parquet
- ~SessionContext.read_table
- ~SessionContext.register_avro
- ~SessionContext.register_csv
- ~SessionContext.register_dataset
- ~SessionContext.register_json
- ~SessionContext.register_listing_table
- ~SessionContext.register_object_store
- ~SessionContext.register_parquet
- ~SessionContext.register_record_batches
- ~SessionContext.register_table
- ~SessionContext.register_udaf
- ~SessionContext.register_udf
- ~SessionContext.session_id
- ~SessionContext.sql
- ~SessionContext.sql_with_options
- ~SessionContext.table
- ~SessionContext.table_exist
- ~SessionContext.tables
-
-
-
-
-
-
\ No newline at end of file
diff --git a/_sources/generated/datafusion.functions.functions.rst.txt b/_sources/generated/datafusion.functions.functions.rst.txt
deleted file mode 100644
index eb10a67..0000000
--- a/_sources/generated/datafusion.functions.functions.rst.txt
+++ /dev/null
@@ -1,23 +0,0 @@
-datafusion.functions.functions
-==============================
-
-.. automodule:: datafusion.functions.functions
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/_sources/generated/datafusion.object_store.object_store.rst.txt b/_sources/generated/datafusion.object_store.object_store.rst.txt
deleted file mode 100644
index 7934ec3..0000000
--- a/_sources/generated/datafusion.object_store.object_store.rst.txt
+++ /dev/null
@@ -1,23 +0,0 @@
-datafusion.object\_store.object\_store
-======================================
-
-.. automodule:: datafusion.object_store.object_store
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/_sources/index.rst.txt b/_sources/index.rst.txt
index 16c88e0..b0103a3 100644
--- a/_sources/index.rst.txt
+++ b/_sources/index.rst.txt
@@ -104,5 +104,3 @@ Example
:hidden:
:maxdepth: 1
:caption: API
-
- api
diff --git a/_sources/user-guide/basics.rst.txt b/_sources/user-guide/basics.rst.txt
index 438b231..3c97d1e 100644
--- a/_sources/user-guide/basics.rst.txt
+++ b/_sources/user-guide/basics.rst.txt
@@ -15,6 +15,8 @@
.. specific language governing permissions and limitations
.. under the License.
+.. _user_guide_concepts:
+
Concepts
========
@@ -52,7 +54,7 @@ The first statement group:
# create a context
ctx = datafusion.SessionContext()
-creates a :code:`SessionContext`, that is, the main interface for executing queries with DataFusion. It maintains the state
+creates a :py:class:`~datafusion.context.SessionContext`, that is, the main interface for executing queries with DataFusion. It maintains the state
of the connection between a user and an instance of the DataFusion engine. Additionally it provides the following functionality:
- Create a DataFrame from a CSV or Parquet data source.
@@ -72,9 +74,9 @@ The second statement group creates a :code:`DataFrame`,
df = ctx.create_dataframe([[batch]])
A DataFrame refers to a (logical) set of rows that share the same column names, similar to a `Pandas DataFrame <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html>`_.
-DataFrames are typically created by calling a method on :code:`SessionContext`, such as :code:`read_csv`, and can then be modified by
-calling the transformation methods, such as :meth:`.DataFrame.filter`, :meth:`.DataFrame.select`, :meth:`.DataFrame.aggregate`,
-and :meth:`.DataFrame.limit` to build up a query definition.
+DataFrames are typically created by calling a method on :py:class:`~datafusion.context.SessionContext`, such as :code:`read_csv`, and can then be modified by
+calling the transformation methods, such as :py:func:`~datafusion.dataframe.DataFrame.filter`, :py:func:`~datafusion.dataframe.DataFrame.select`, :py:func:`~datafusion.dataframe.DataFrame.aggregate`,
+and :py:func:`~datafusion.dataframe.DataFrame.limit` to build up a query definition.
The third statement uses :code:`Expressions` to build up a query definition.
@@ -85,5 +87,5 @@ The third statement uses :code:`Expressions` to build up a query definition.
col("a") - col("b"),
)
-Finally the :code:`collect` method converts the logical plan represented by the DataFrame into a physical plan and execute it,
-collecting all results into a list of `RecordBatch <https://arrow.apache.org/docs/python/generated/pyarrow.RecordBatch.html>`_.
\ No newline at end of file
+Finally the :py:func:`~datafusion.dataframe.DataFrame.collect` method converts the logical plan represented by the DataFrame into a physical plan and execute it,
+collecting all results into a list of `RecordBatch <https://arrow.apache.org/docs/python/generated/pyarrow.RecordBatch.html>`_.
diff --git a/_sources/user-guide/common-operations/aggregations.rst.txt b/_sources/user-guide/common-operations/aggregations.rst.txt
index 235d644..b920212 100644
--- a/_sources/user-guide/common-operations/aggregations.rst.txt
+++ b/_sources/user-guide/common-operations/aggregations.rst.txt
@@ -19,7 +19,7 @@ Aggregation
============
An aggregate or aggregation is a function where the values of multiple rows are processed together to form a single summary value.
-For performing an aggregation, DataFusion provides the :meth:`.DataFrame.aggregate`
+For performing an aggregation, DataFusion provides the :py:func:`~datafusion.dataframe.DataFrame.aggregate`
.. ipython:: python
diff --git a/_sources/user-guide/common-operations/basic-info.rst.txt b/_sources/user-guide/common-operations/basic-info.rst.txt
index 424e1cc..d48b49d 100644
--- a/_sources/user-guide/common-operations/basic-info.rst.txt
+++ b/_sources/user-guide/common-operations/basic-info.rst.txt
@@ -34,26 +34,26 @@ In this section, you will learn how to display essential details of DataFrames u
})
df
-Use :meth:`.DataFrame.limit` to view the top rows of the frame:
+Use :py:func:`~datafusion.dataframe.DataFrame.limit` to view the top rows of the frame:
.. ipython:: python
df.limit(2)
-Display the columns of the DataFrame using :meth:`.DataFrame.schema`:
+Display the columns of the DataFrame using :py:func:`~datafusion.dataframe.DataFrame.schema`:
.. ipython:: python
df.schema()
-The method :meth:`.DataFrame.to_pandas` uses pyarrow to convert to pandas DataFrame, by collecting the batches,
+The method :py:func:`~datafusion.dataframe.DataFrame.to_pandas` uses pyarrow to convert to pandas DataFrame, by collecting the batches,
passing them to an Arrow table, and then converting them to a pandas DataFrame.
.. ipython:: python
df.to_pandas()
-:meth:`.DataFrame.describe` shows a quick statistic summary of your data:
+:py:func:`~datafusion.dataframe.DataFrame.describe` shows a quick statistic summary of your data:
.. ipython:: python
diff --git a/_sources/user-guide/common-operations/expressions.rst.txt b/_sources/user-guide/common-operations/expressions.rst.txt
index ebb514f..c8f8b8f 100644
--- a/_sources/user-guide/common-operations/expressions.rst.txt
+++ b/_sources/user-guide/common-operations/expressions.rst.txt
@@ -15,6 +15,8 @@
.. specific language governing permissions and limitations
.. under the License.
+.. _expressions:
+
Expressions
===========
@@ -26,16 +28,16 @@ concept shared across most compilers and databases.
Column
------
-The first expression most new users will interact with is the Column, which is created by calling :func:`col`.
-This expression represents a column within a DataFrame. The function :func:`col` takes as in input a string
+The first expression most new users will interact with is the Column, which is created by calling :py:func:`~datafusion.col`.
+This expression represents a column within a DataFrame. The function :py:func:`~datafusion.col` takes as in input a string
and returns an expression as it's output.
Literal
-------
Literal expressions represent a single value. These are helpful in a wide range of operations where
-a specific, known value is of interest. You can create a literal expression using the function :func:`lit`.
-The type of the object passed to the :func:`lit` function will be used to convert it to a known data type.
+a specific, known value is of interest. You can create a literal expression using the function :py:func:`~datafusion.lit`.
+The type of the object passed to the :py:func:`~datafusion.lit` function will be used to convert it to a known data type.
In the following example we create expressions for the column named `color` and the literal scalar string `red`.
The resultant variable `red_units` is itself also an expression.
@@ -62,7 +64,7 @@ Functions
---------
As mentioned before, most functions in DataFusion return an expression at their output. This allows us to create
-a wide variety of expressions built up from other expressions. For example, :func:`.alias` is a function that takes
+a wide variety of expressions built up from other expressions. For example, :py:func:`~datafusion.expr.Expr.alias` is a function that takes
as it input a single expression and returns an expression in which the name of the expression has changed.
The following example shows a series of expressions that are built up from functions operating on expressions.
diff --git a/_sources/user-guide/common-operations/functions.rst.txt b/_sources/user-guide/common-operations/functions.rst.txt
index d793314..a0b95c9 100644
--- a/_sources/user-guide/common-operations/functions.rst.txt
+++ b/_sources/user-guide/common-operations/functions.rst.txt
@@ -19,7 +19,7 @@ Functions
=========
DataFusion provides a large number of built-in functions for performing complex queries without requiring user-defined functions.
-In here we will cover some of the more popular use cases. If you want to view all the functions go to the :ref:`Functions` API Reference.
+In here we will cover some of the more popular use cases. If you want to view all the functions go to the :py:mod:`Functions <datafusion.functions>` API Reference.
We'll use the pokemon dataset in the following examples.
@@ -40,7 +40,7 @@ We'll use the pokemon dataset in the following examples.
Mathematical
------------
-DataFusion offers mathematical functions such as :func:`.pow` or :func:`.log`
+DataFusion offers mathematical functions such as :py:func:`~datafusion.functions.pow` or :py:func:`~datafusion.functions.log`
.. ipython:: python
@@ -55,7 +55,7 @@ DataFusion offers mathematical functions such as :func:`.pow` or :func:`.log`
Conditional
-----------
-There 3 conditional functions in DataFusion :func:`.coalesce`, :func:`.nullif` and :func:`.case` (not available in Python)
+There 3 conditional functions in DataFusion :py:func:`~datafusion.functions.coalesce`, :py:func:`~datafusion.functions.nullif` and :py:func:`~datafusion.functions.case`.
.. ipython:: python
@@ -66,13 +66,13 @@ There 3 conditional functions in DataFusion :func:`.coalesce`, :func:`.nullif` a
Temporal
--------
-For selecting the current time use :func:`.now`
+For selecting the current time use :py:func:`~datafusion.functions.now`
.. ipython:: python
df.select(f.now())
-Convert to timestamps using :func:`.to_timestamp`
+Convert to timestamps using :py:func:`~datafusion.functions.to_timestamp`
.. ipython:: python
@@ -92,7 +92,7 @@ DataFusion offers a range of helpful options.
f.left(col('"Name"'), literal(4)).alias("code")
)
-This also includes the functions for regular expressions like :func:`.regexp_replace` and :func:`.regexp_match`
+This also includes the functions for regular expressions like :py:func:`~datafusion.functions.regexp_replace` and :py:func:`~datafusion.functions.regexp_match`
.. ipython:: python
@@ -105,7 +105,7 @@ This also includes the functions for regular expressions like :func:`.regexp_rep
Other
-----
-The function :func:`.in_list` allows to check a column for the presence of multiple values:
+The function :py:func:`~datafusion.functions.in_list` allows to check a column for the presence of multiple values:
.. ipython:: python
diff --git a/_sources/user-guide/common-operations/joins.rst.txt b/_sources/user-guide/common-operations/joins.rst.txt
index 1282031..09fa145 100644
--- a/_sources/user-guide/common-operations/joins.rst.txt
+++ b/_sources/user-guide/common-operations/joins.rst.txt
@@ -18,7 +18,7 @@
Joins
=====
-DataFusion supports the following join variants via the method :meth:`.DataFrame.join`
+DataFusion supports the following join variants via the method :py:func:`~datafusion.dataframe.DataFrame.join`
- Inner Join
- Left Join
@@ -58,7 +58,7 @@ will be included in the resulting DataFrame.
left.join(right, join_keys=(["customer_id"], ["id"]), how="inner")
-The parameter :code:`join_keys` specifies the columns from the left DataFrame and right DataFrame that contains the values
+The parameter ``join_keys`` specifies the columns from the left DataFrame and right DataFrame that contains the values
that should match.
Left Join
diff --git a/_sources/user-guide/common-operations/select-and-filter.rst.txt b/_sources/user-guide/common-operations/select-and-filter.rst.txt
index 8ede230..92b4841 100644
--- a/_sources/user-guide/common-operations/select-and-filter.rst.txt
+++ b/_sources/user-guide/common-operations/select-and-filter.rst.txt
@@ -18,7 +18,7 @@
Column Selections
=================
-Use :meth:`.DataFrame.select_columns` for basic column selection.
+Use :py:func:`~datafusion.dataframe.DataFrame.select` for basic column selection.
DataFusion can work with several file types, to start simple we can use a subset of the
`TLC Trip Record Data <https://www.nyc.gov/site/tlc/about/tlc-trip-record-data.page>`_
@@ -35,8 +35,8 @@ DataFusion can work with several file types, to start simple we can use a subset
df = ctx.read_parquet("yellow_trip_data.parquet")
df.select_columns("trip_distance", "passenger_count")
-For mathematical or logical operations use :func:`.col` to select columns, and give meaningful names to the resulting
-operations using :func:`.alias`
+For mathematical or logical operations use :py:func:`~datafusion.col` to select columns, and give meaningful names to the resulting
+operations using :py:func:`~datafusion.expr.Expr.alias`
.. ipython:: python
@@ -48,7 +48,7 @@ operations using :func:`.alias`
Please be aware that all identifiers are effectively made lower-case in SQL, so if your file has capital letters
(ex: Name) you must put your column name in double quotes or the selection won’t work. As an alternative for simple
- column selection use :meth:`.DataFrame.select_columns` without double quotes
+ column selection use :py:func:`~datafusion.dataframe.DataFrame.select_columns` without double quotes
For selecting columns with capital letters use ``'"VendorID"'``
@@ -57,7 +57,7 @@ For selecting columns with capital letters use ``'"VendorID"'``
df.select(col('"VendorID"'))
-To combine it with literal values use the :func:`.lit`
+To combine it with literal values use the :py:func:`~datafusion.lit`
.. ipython:: python
diff --git a/_sources/user-guide/common-operations/udf-and-udfa.rst.txt b/_sources/user-guide/common-operations/udf-and-udfa.rst.txt
index 62d249c..e9c142f 100644
--- a/_sources/user-guide/common-operations/udf-and-udfa.rst.txt
+++ b/_sources/user-guide/common-operations/udf-and-udfa.rst.txt
@@ -19,7 +19,7 @@ User Defined Functions
======================
DataFusion provides powerful expressions and functions, reducing the need for custom Python functions.
-However you can still incorporate your own functions, i.e. User-Defined Functions (UDFs), with the :func:`.udf` function.
+However you can still incorporate your own functions, i.e. User-Defined Functions (UDFs), with the :py:func:`~datafusion.udf.ScalarUDF.udf` function.
.. ipython:: python
@@ -42,7 +42,7 @@ However you can still incorporate your own functions, i.e. User-Defined Function
df.select(is_null_arr(col("a"))).to_pandas()
-Additionally the :func:`.udaf` function allows you to define User-Defined Aggregate Functions (UDAFs)
+Additionally the :py:func:`~datafusion.udf.AggregateUDF.udaf` function allows you to define User-Defined Aggregate Functions (UDAFs)
.. code-block:: python
@@ -50,6 +50,7 @@ Additionally the :func:`.udaf` function allows you to define User-Defined Aggreg
import pyarrow.compute
import datafusion
from datafusion import col, udaf, Accumulator
+ from typing import List
class MyAccumulator(Accumulator):
"""
@@ -62,9 +63,9 @@ Additionally the :func:`.udaf` function allows you to define User-Defined Aggreg
# not nice since pyarrow scalars can't be summed yet. This breaks on `None`
self._sum = pyarrow.scalar(self._sum.as_py() + pyarrow.compute.sum(values).as_py())
- def merge(self, states: pyarrow.Array) -> None:
+ def merge(self, states: List[pyarrow.Array]) -> None:
# not nice since pyarrow scalars can't be summed yet. This breaks on `None`
- self._sum = pyarrow.scalar(self._sum.as_py() + pyarrow.compute.sum(states).as_py())
+ self._sum = pyarrow.scalar(self._sum.as_py() + pyarrow.compute.sum(states[0]).as_py())
def state(self) -> pyarrow.Array:
return pyarrow.array([self._sum.as_py()])
diff --git a/_sources/user-guide/common-operations/windows.rst.txt b/_sources/user-guide/common-operations/windows.rst.txt
index f884c7e..5ef3c98 100644
--- a/_sources/user-guide/common-operations/windows.rst.txt
+++ b/_sources/user-guide/common-operations/windows.rst.txt
@@ -21,7 +21,7 @@ Window Functions
In this section you will learn about window functions. A window function utilizes values from one or multiple rows to
produce a result for each individual row, unlike an aggregate function that provides a single value for multiple rows.
-The functionality of window functions in DataFusion is supported by the dedicated :func:`.window` function.
+The functionality of window functions in DataFusion is supported by the dedicated :py:func:`~datafusion.functions.window` function.
We'll use the pokemon dataset (from Ritchie Vink) in the following examples.
@@ -40,7 +40,7 @@ We'll use the pokemon dataset (from Ritchie Vink) in the following examples.
ctx = SessionContext()
df = ctx.read_csv("pokemon.csv")
-Here is an example that shows how to compare each pokemons’s attack power with the average attack power in its :code:`"Type 1"`
+Here is an example that shows how to compare each pokemons’s attack power with the average attack power in its ``"Type 1"``
.. ipython:: python
@@ -54,7 +54,7 @@ Here is an example that shows how to compare each pokemons’s attack power with
)
You can also control the order in which rows are processed by window functions by providing
-a list of :func:`.order_by` functions for the :code:`order_by` parameter.
+a list of ``order_by`` functions for the ``order_by`` parameter.
.. ipython:: python
diff --git a/_sources/user-guide/configuration.rst.txt b/_sources/user-guide/configuration.rst.txt
index 0c1a481..7d33001 100644
--- a/_sources/user-guide/configuration.rst.txt
+++ b/_sources/user-guide/configuration.rst.txt
@@ -18,8 +18,8 @@
Configuration
=============
-Let's look at how we can configure DataFusion. When creating a :code:`SessionContext`, you can pass in
-a :code:`SessionConfig` and :code:`RuntimeConfig` object. These two cover a wide range of options.
+Let's look at how we can configure DataFusion. When creating a :py:class:`~datafusion.context.SessionContext`, you can pass in
+a :py:class:`~datafusion.context.SessionConfig` and :py:class:`~datafusion.context.RuntimeConfig` object. These two cover a wide range of options.
.. code-block:: python
@@ -47,5 +47,5 @@ a :code:`SessionConfig` and :code:`RuntimeConfig` object. These two cover a wide
print(ctx)
-You can read more about available :code:`SessionConfig` options `here <https://arrow.apache.org/datafusion/user-guide/configs.html>`_,
-and about :code:`RuntimeConfig` options `here <https://docs.rs/datafusion/latest/datafusion/execution/runtime_env/struct.RuntimeConfig.html>`_.
+You can read more about available :py:class:`~datafusion.context.SessionConfig` options in the `rust DataFusion Configuration guide <https://arrow.apache.org/datafusion/user-guide/configs.html>`_,
+and about :code:`RuntimeConfig` options in the rust `online API documentation <https://docs.rs/datafusion/latest/datafusion/execution/runtime_env/struct.RuntimeConfig.html>`_.
diff --git a/_sources/user-guide/io/avro.rst.txt b/_sources/user-guide/io/avro.rst.txt
index 85d546e..5f1ff72 100644
--- a/_sources/user-guide/io/avro.rst.txt
+++ b/_sources/user-guide/io/avro.rst.txt
@@ -19,7 +19,7 @@ Avro
====
`Avro <https://avro.apache.org/>`_ is a serialization format for record data. Reading an avro file is very straightforward
-with :meth:`.SessionContext.read_avro`
+with :py:func:`~datafusion.context.SessionContext.read_avro`
.. code-block:: python
diff --git a/_sources/user-guide/io/csv.rst.txt b/_sources/user-guide/io/csv.rst.txt
index 3f95c54..d2a62bf 100644
--- a/_sources/user-guide/io/csv.rst.txt
+++ b/_sources/user-guide/io/csv.rst.txt
@@ -18,7 +18,7 @@
CSV
===
-Reading a csv is very straightforward with :meth:`.SessionContext.read_csv`
+Reading a csv is very straightforward with :py:func:`~datafusion.context.SessionContext.read_csv`
.. code-block:: python
@@ -28,9 +28,9 @@ Reading a csv is very straightforward with :meth:`.SessionContext.read_csv`
ctx = SessionContext()
df = ctx.read_csv("file.csv")
-An alternative is to use :meth:`.SessionContext.register_csv`
+An alternative is to use :py:func:`~datafusion.context.SessionContext.register_csv`
.. code-block:: python
ctx.register_csv("file", "file.csv")
- df = ctx.table("file")
\ No newline at end of file
+ df = ctx.table("file")
diff --git a/_sources/user-guide/io/json.rst.txt b/_sources/user-guide/io/json.rst.txt
index 1ee065c..f9da375 100644
--- a/_sources/user-guide/io/json.rst.txt
+++ b/_sources/user-guide/io/json.rst.txt
@@ -18,7 +18,7 @@
JSON
====
`JSON <https://www.json.org/json-en.html>`_ (JavaScript Object Notation) is a lightweight data-interchange format.
-When it comes to reading a JSON file, using :meth:`.SessionContext.read_json` is a simple and easy
+When it comes to reading a JSON file, using :py:func:`~datafusion.context.SessionContext.read_json` is a simple and easy
.. code-block:: python
diff --git a/_sources/user-guide/io/parquet.rst.txt b/_sources/user-guide/io/parquet.rst.txt
index 78bba30..75bc981 100644
--- a/_sources/user-guide/io/parquet.rst.txt
+++ b/_sources/user-guide/io/parquet.rst.txt
@@ -18,7 +18,7 @@
Parquet
=======
-It is quite simple to read a parquet file using the :meth:`.SessionContext.read_parquet` function.
+It is quite simple to read a parquet file using the :py:func:`~datafusion.context.SessionContext.read_parquet` function.
.. code-block:: python
@@ -28,9 +28,9 @@ It is quite simple to read a parquet file using the :meth:`.SessionContext.read_
ctx = SessionContext()
df = ctx.read_parquet("file.parquet")
-An alternative is to use :meth:`.SessionContext.register_parquet`
+An alternative is to use :py:func:`~datafusion.context.SessionContext.register_parquet`
.. code-block:: python
ctx.register_parquet("file", "file.parquet")
- df = ctx.table("file")
\ No newline at end of file
+ df = ctx.table("file")
diff --git a/_static/graphviz.css b/_static/graphviz.css
new file mode 100644
index 0000000..027576e
--- /dev/null
+++ b/_static/graphviz.css
@@ -0,0 +1,19 @@
+/*
+ * graphviz.css
+ * ~~~~~~~~~~~~
+ *
+ * Sphinx stylesheet -- graphviz extension.
+ *
+ * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
+ * :license: BSD, see LICENSE for details.
+ *
+ */
+
+img.graphviz {
+ border: 0;
+ max-width: 100%;
+}
+
+object.graphviz {
+ max-width: 100%;
+}
diff --git a/_static/searchtools.js b/_static/searchtools.js
index 92da3f8..b08d58c 100644
--- a/_static/searchtools.js
+++ b/_static/searchtools.js
@@ -178,7 +178,7 @@ const Search = {
htmlToText: (htmlString, anchor) => {
const htmlElement = new DOMParser().parseFromString(htmlString, 'text/html');
- for (const removalQuery of [".headerlinks", "script", "style"]) {
+ for (const removalQuery of [".headerlink", "script", "style"]) {
htmlElement.querySelectorAll(removalQuery).forEach((el) => { el.remove() });
}
if (anchor) {
@@ -328,13 +328,14 @@ const Search = {
for (const [title, foundTitles] of Object.entries(allTitles)) {
if (title.toLowerCase().trim().includes(queryLower) && (queryLower.length >= title.length/2)) {
for (const [file, id] of foundTitles) {
- let score = Math.round(100 * queryLower.length / title.length)
+ const score = Math.round(Scorer.title * queryLower.length / title.length);
+ const boost = titles[file] === title ? 1 : 0; // add a boost for document titles
normalResults.push([
docNames[file],
titles[file] !== title ? `${titles[file]} > ${title}` : title,
id !== null ? "#" + id : "",
null,
- score,
+ score + boost,
filenames[file],
]);
}
diff --git a/api.html b/api.html
deleted file mode 100644
index f2551d7..0000000
--- a/api.html
+++ /dev/null
@@ -1,466 +0,0 @@
-<!DOCTYPE html>
-
-<html lang="en" data-content_root="./">
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
-
- <title>API Reference — Apache Arrow DataFusion documentation</title>
-
- <link href="_static/styles/theme.css?digest=1999514e3f237ded88cf" rel="stylesheet">
-<link href="_static/styles/pydata-sphinx-theme.css?digest=1999514e3f237ded88cf" rel="stylesheet">
-
-
- <link rel="stylesheet"
- href="_static/vendor/fontawesome/5.13.0/css/all.min.css">
- <link rel="preload" as="font" type="font/woff2" crossorigin
- href="_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.woff2">
- <link rel="preload" as="font" type="font/woff2" crossorigin
- href="_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.woff2">
-
-
-
-
-
- <link rel="stylesheet" type="text/css" href="_static/pygments.css?v=a746c00c" />
- <link rel="stylesheet" type="text/css" href="_static/styles/pydata-sphinx-theme.css?v=1140d252" />
- <link rel="stylesheet" type="text/css" href="_static/theme_overrides.css?v=ef9fea58" />
-
- <link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=1999514e3f237ded88cf">
-
- <script src="_static/documentation_options.js?v=8a448e45"></script>
- <script src="_static/doctools.js?v=9a2dae69"></script>
- <script src="_static/sphinx_highlight.js?v=dc90522c"></script>
- <link rel="index" title="Index" href="genindex.html" />
- <link rel="search" title="Search" href="search.html" />
- <link rel="next" title="DataFrame" href="api/dataframe.html" />
- <link rel="prev" title="Introduction" href="contributor-guide/introduction.html" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
-
-
- <!-- Google Analytics -->
-
- </head>
- <body data-spy="scroll" data-target="#bd-toc-nav" data-offset="80">
-
- <div class="container-fluid" id="banner"></div>
-
-
-
-
- <div class="container-xl">
- <div class="row">
-
-
- <!-- Only show if we have sidebars configured, else just a small margin -->
- <div class="col-12 col-md-3 bd-sidebar">
- <div class="sidebar-start-items">
-<a class="navbar-brand" href="index.html">
- <img src="_static/images/2x_bgwhite_original.png" class="logo" alt="logo">
-</a>
-
-<form class="bd-search d-flex align-items-center" action="search.html" method="get">
- <i class="icon fas fa-search"></i>
- <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" >
-</form>
-
-<nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
- <div class="bd-toc-item active">
-
- <p aria-level="2" class="caption" role="heading">
- <span class="caption-text">
- LINKS
- </span>
-</p>
-<ul class="nav bd-sidenav">
- <li class="toctree-l1">
- <a class="reference external" href="https://github.com/apache/datafusion-python">
- Github and Issue Tracker
- </a>
- </li>
- <li class="toctree-l1">
- <a class="reference external" href="https://docs.rs/datafusion/latest/datafusion/">
- Rust's API Docs
- </a>
- </li>
- <li class="toctree-l1">
- <a class="reference external" href="https://github.com/apache/datafusion/blob/main/CODE_OF_CONDUCT.md">
- Code of conduct
- </a>
- </li>
- <li class="toctree-l1">
- <a class="reference external" href="https://github.com/apache/datafusion-python/tree/main/examples">
- Examples
- </a>
- </li>
-</ul>
-<p aria-level="2" class="caption" role="heading">
- <span class="caption-text">
- USER GUIDE
- </span>
-</p>
-<ul class="nav bd-sidenav">
- <li class="toctree-l1">
- <a class="reference internal" href="user-guide/introduction.html">
- Introduction
- </a>
- </li>
- <li class="toctree-l1">
- <a class="reference internal" href="user-guide/basics.html">
- Concepts
- </a>
- </li>
- <li class="toctree-l1">
- <a class="reference internal" href="user-guide/configuration.html">
- Configuration
- </a>
- </li>
- <li class="toctree-l1 has-children">
- <a class="reference internal" href="user-guide/common-operations/index.html">
- Common Operations
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"/>
- <label for="toctree-checkbox-1">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l2">
- <a class="reference internal" href="user-guide/common-operations/basic-info.html">
- Basic Operations
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="user-guide/common-operations/select-and-filter.html">
- Column Selections
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="user-guide/common-operations/expressions.html">
- Expressions
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="user-guide/common-operations/joins.html">
- Joins
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="user-guide/common-operations/functions.html">
- Functions
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="user-guide/common-operations/aggregations.html">
- Aggregation
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="user-guide/common-operations/windows.html">
- Window Functions
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="user-guide/common-operations/udf-and-udfa.html">
- User Defined Functions
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l1 has-children">
- <a class="reference internal" href="user-guide/io/index.html">
- IO
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" type="checkbox"/>
- <label for="toctree-checkbox-2">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l2">
- <a class="reference internal" href="user-guide/io/csv.html">
- CSV
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="user-guide/io/parquet.html">
- Parquet
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="user-guide/io/json.html">
- JSON
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="user-guide/io/avro.html">
- Avro
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l1">
- <a class="reference internal" href="user-guide/sql.html">
- SQL
- </a>
- </li>
-</ul>
-<p aria-level="2" class="caption" role="heading">
- <span class="caption-text">
- CONTRIBUTOR GUIDE
- </span>
-</p>
-<ul class="nav bd-sidenav">
- <li class="toctree-l1">
- <a class="reference internal" href="contributor-guide/introduction.html">
- Introduction
- </a>
- </li>
-</ul>
-<p aria-level="2" class="caption" role="heading">
- <span class="caption-text">
- API
- </span>
-</p>
-<ul class="current nav bd-sidenav">
- <li class="toctree-l1 current active has-children">
- <a class="current reference internal" href="#">
- API Reference
- </a>
- <input checked="" class="toctree-checkbox" id="toctree-checkbox-3" name="toctree-checkbox-3" type="checkbox"/>
- <label for="toctree-checkbox-3">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l2 has-children">
- <a class="reference internal" href="api/dataframe.html">
- DataFrame
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-4" name="toctree-checkbox-4" type="checkbox"/>
- <label for="toctree-checkbox-4">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l3">
- <a class="reference internal" href="generated/datafusion.DataFrame.html">
- datafusion.DataFrame
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l2 has-children">
- <a class="reference internal" href="api/execution_context.html">
- SessionContext
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-5" name="toctree-checkbox-5" type="checkbox"/>
- <label for="toctree-checkbox-5">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l3">
- <a class="reference internal" href="generated/datafusion.SessionConfig.html">
- datafusion.SessionConfig
- </a>
- </li>
- <li class="toctree-l3">
- <a class="reference internal" href="generated/datafusion.RuntimeConfig.html">
- datafusion.RuntimeConfig
- </a>
- </li>
- <li class="toctree-l3">
- <a class="reference internal" href="generated/datafusion.SessionContext.html">
- datafusion.SessionContext
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l2 has-children">
- <a class="reference internal" href="api/expression.html">
- Expr
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-6" name="toctree-checkbox-6" type="checkbox"/>
- <label for="toctree-checkbox-6">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l3">
- <a class="reference internal" href="generated/datafusion.Expr.html">
- datafusion.Expr
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l2 has-children">
- <a class="reference internal" href="api/functions.html">
- Functions
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-7" name="toctree-checkbox-7" type="checkbox"/>
- <label for="toctree-checkbox-7">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l3">
- <a class="reference internal" href="generated/datafusion.functions.functions.html">
- datafusion.functions.functions
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l2 has-children">
- <a class="reference internal" href="api/object_store.html">
- ObjectStore
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-8" name="toctree-checkbox-8" type="checkbox"/>
- <label for="toctree-checkbox-8">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l3">
- <a class="reference internal" href="generated/datafusion.object_store.object_store.html">
- datafusion.object_store.object_store
- </a>
- </li>
- </ul>
- </li>
- </ul>
- </li>
-</ul>
-
-
- </div>
-</nav>
- </div>
- <div class="sidebar-end-items">
- </div>
- </div>
-
-
-
-
- <div class="d-none d-xl-block col-xl-2 bd-toc">
-
-
- <div class="toc-item">
-
-
-<nav id="bd-toc-nav">
-
-</nav>
- </div>
-
- <div class="toc-item">
-
-
-<div class="tocsection editthispage">
- <a href="https://github.com/apache/arrow-datafusion-python/edit/main/docs/source/api.rst">
- <i class="fas fa-pencil-alt"></i> Edit this page
- </a>
-</div>
-
- </div>
-
-
- </div>
-
-
-
-
-
-
- <main class="col-12 col-md-9 col-xl-7 py-md-5 pl-md-5 pr-md-4 bd-content" role="main">
-
- <div>
-
- <section id="api-reference">
-<span id="api"></span><h1>API Reference<a class="headerlink" href="#api-reference" title="Link to this heading">¶</a></h1>
-<div class="toctree-wrapper compound">
-<ul>
-<li class="toctree-l1"><a class="reference internal" href="api/dataframe.html">DataFrame</a><ul>
-<li class="toctree-l2"><a class="reference internal" href="generated/datafusion.DataFrame.html">datafusion.DataFrame</a></li>
-</ul>
-</li>
-<li class="toctree-l1"><a class="reference internal" href="api/execution_context.html">SessionContext</a><ul>
-<li class="toctree-l2"><a class="reference internal" href="generated/datafusion.SessionConfig.html">datafusion.SessionConfig</a></li>
-<li class="toctree-l2"><a class="reference internal" href="generated/datafusion.RuntimeConfig.html">datafusion.RuntimeConfig</a></li>
-<li class="toctree-l2"><a class="reference internal" href="generated/datafusion.SessionContext.html">datafusion.SessionContext</a></li>
-</ul>
-</li>
-<li class="toctree-l1"><a class="reference internal" href="api/expression.html">Expr</a><ul>
-<li class="toctree-l2"><a class="reference internal" href="generated/datafusion.Expr.html">datafusion.Expr</a></li>
-</ul>
-</li>
-<li class="toctree-l1"><a class="reference internal" href="api/functions.html">Functions</a><ul>
-<li class="toctree-l2"><a class="reference internal" href="generated/datafusion.functions.functions.html">datafusion.functions.functions</a></li>
-</ul>
-</li>
-<li class="toctree-l1"><a class="reference internal" href="api/object_store.html">ObjectStore</a><ul>
-<li class="toctree-l2"><a class="reference internal" href="generated/datafusion.object_store.object_store.html">datafusion.object_store.object_store</a></li>
-</ul>
-</li>
-</ul>
-</div>
-</section>
-
-
- </div>
-
-
- <!-- Previous / next buttons -->
-<div class='prev-next-area'>
- <a class='left-prev' id="prev-link" href="contributor-guide/introduction.html" title="previous page">
- <i class="fas fa-angle-left"></i>
- <div class="prev-next-info">
- <p class="prev-next-subtitle">previous</p>
- <p class="prev-next-title">Introduction</p>
- </div>
- </a>
- <a class='right-next' id="next-link" href="api/dataframe.html" title="next page">
- <div class="prev-next-info">
- <p class="prev-next-subtitle">next</p>
- <p class="prev-next-title">DataFrame</p>
- </div>
- <i class="fas fa-angle-right"></i>
- </a>
-</div>
-
- </main>
-
-
- </div>
- </div>
-
- <script src="_static/scripts/pydata-sphinx-theme.js?digest=1999514e3f237ded88cf"></script>
-
-<!-- Based on pydata_sphinx_theme/footer.html -->
-<footer class="footer mt-5 mt-md-0">
- <div class="container">
-
- <div class="footer-item">
- <p class="copyright">
- © Copyright 2019-2024, Apache Software Foundation.<br>
-</p>
- </div>
-
- <div class="footer-item">
- <p class="sphinx-version">
-Created using <a href="http://sphinx-doc.org/">Sphinx</a> 7.3.7.<br>
-</p>
- </div>
-
- <div class="footer-item">
- <p>Apache Arrow DataFusion, Arrow DataFusion, Apache, the Apache feather logo, and the Apache Arrow DataFusion project logo</p>
- <p>are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.</p>
- </div>
- </div>
-</footer>
-
-
- </body>
-</html>
\ No newline at end of file
diff --git a/api/execution_context.html b/api/execution_context.html
deleted file mode 100644
index bcc25f7..0000000
--- a/api/execution_context.html
+++ /dev/null
@@ -1,453 +0,0 @@
-<!DOCTYPE html>
-
-<html lang="en" data-content_root="../">
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
-
- <title>SessionContext — Apache Arrow DataFusion documentation</title>
-
- <link href="../_static/styles/theme.css?digest=1999514e3f237ded88cf" rel="stylesheet">
-<link href="../_static/styles/pydata-sphinx-theme.css?digest=1999514e3f237ded88cf" rel="stylesheet">
-
-
- <link rel="stylesheet"
- href="../_static/vendor/fontawesome/5.13.0/css/all.min.css">
- <link rel="preload" as="font" type="font/woff2" crossorigin
- href="../_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.woff2">
- <link rel="preload" as="font" type="font/woff2" crossorigin
- href="../_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.woff2">
-
-
-
-
-
- <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=a746c00c" />
- <link rel="stylesheet" type="text/css" href="../_static/styles/pydata-sphinx-theme.css?v=1140d252" />
- <link rel="stylesheet" type="text/css" href="../_static/theme_overrides.css?v=ef9fea58" />
-
- <link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=1999514e3f237ded88cf">
-
- <script src="../_static/documentation_options.js?v=8a448e45"></script>
- <script src="../_static/doctools.js?v=9a2dae69"></script>
- <script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
- <link rel="index" title="Index" href="../genindex.html" />
- <link rel="search" title="Search" href="../search.html" />
- <link rel="next" title="datafusion.SessionConfig" href="../generated/datafusion.SessionConfig.html" />
- <link rel="prev" title="datafusion.DataFrame" href="../generated/datafusion.DataFrame.html" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
-
-
- <!-- Google Analytics -->
-
- </head>
- <body data-spy="scroll" data-target="#bd-toc-nav" data-offset="80">
-
- <div class="container-fluid" id="banner"></div>
-
-
-
-
- <div class="container-xl">
- <div class="row">
-
-
- <!-- Only show if we have sidebars configured, else just a small margin -->
- <div class="col-12 col-md-3 bd-sidebar">
- <div class="sidebar-start-items">
-<a class="navbar-brand" href="../index.html">
- <img src="../_static/images/2x_bgwhite_original.png" class="logo" alt="logo">
-</a>
-
-<form class="bd-search d-flex align-items-center" action="../search.html" method="get">
- <i class="icon fas fa-search"></i>
- <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" >
-</form>
-
-<nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
- <div class="bd-toc-item active">
-
- <p aria-level="2" class="caption" role="heading">
- <span class="caption-text">
- LINKS
- </span>
-</p>
-<ul class="nav bd-sidenav">
- <li class="toctree-l1">
- <a class="reference external" href="https://github.com/apache/datafusion-python">
- Github and Issue Tracker
- </a>
- </li>
- <li class="toctree-l1">
- <a class="reference external" href="https://docs.rs/datafusion/latest/datafusion/">
- Rust's API Docs
- </a>
- </li>
- <li class="toctree-l1">
- <a class="reference external" href="https://github.com/apache/datafusion/blob/main/CODE_OF_CONDUCT.md">
- Code of conduct
- </a>
- </li>
- <li class="toctree-l1">
- <a class="reference external" href="https://github.com/apache/datafusion-python/tree/main/examples">
- Examples
- </a>
- </li>
-</ul>
-<p aria-level="2" class="caption" role="heading">
- <span class="caption-text">
- USER GUIDE
- </span>
-</p>
-<ul class="nav bd-sidenav">
- <li class="toctree-l1">
- <a class="reference internal" href="../user-guide/introduction.html">
- Introduction
- </a>
- </li>
- <li class="toctree-l1">
- <a class="reference internal" href="../user-guide/basics.html">
- Concepts
- </a>
- </li>
- <li class="toctree-l1">
- <a class="reference internal" href="../user-guide/configuration.html">
- Configuration
- </a>
- </li>
- <li class="toctree-l1 has-children">
- <a class="reference internal" href="../user-guide/common-operations/index.html">
- Common Operations
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"/>
- <label for="toctree-checkbox-1">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/basic-info.html">
- Basic Operations
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/select-and-filter.html">
- Column Selections
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/expressions.html">
- Expressions
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/joins.html">
- Joins
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/functions.html">
- Functions
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/aggregations.html">
- Aggregation
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/windows.html">
- Window Functions
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/udf-and-udfa.html">
- User Defined Functions
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l1 has-children">
- <a class="reference internal" href="../user-guide/io/index.html">
- IO
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" type="checkbox"/>
- <label for="toctree-checkbox-2">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/io/csv.html">
- CSV
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/io/parquet.html">
- Parquet
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/io/json.html">
- JSON
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/io/avro.html">
- Avro
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l1">
- <a class="reference internal" href="../user-guide/sql.html">
- SQL
- </a>
- </li>
-</ul>
-<p aria-level="2" class="caption" role="heading">
- <span class="caption-text">
- CONTRIBUTOR GUIDE
- </span>
-</p>
-<ul class="nav bd-sidenav">
- <li class="toctree-l1">
- <a class="reference internal" href="../contributor-guide/introduction.html">
- Introduction
- </a>
- </li>
-</ul>
-<p aria-level="2" class="caption" role="heading">
- <span class="caption-text">
- API
- </span>
-</p>
-<ul class="current nav bd-sidenav">
- <li class="toctree-l1 current active has-children">
- <a class="reference internal" href="../api.html">
- API Reference
- </a>
- <input checked="" class="toctree-checkbox" id="toctree-checkbox-3" name="toctree-checkbox-3" type="checkbox"/>
- <label for="toctree-checkbox-3">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul class="current">
- <li class="toctree-l2 has-children">
- <a class="reference internal" href="dataframe.html">
- DataFrame
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-4" name="toctree-checkbox-4" type="checkbox"/>
- <label for="toctree-checkbox-4">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.DataFrame.html">
- datafusion.DataFrame
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l2 current active has-children">
- <a class="current reference internal" href="#">
- SessionContext
- </a>
- <input checked="" class="toctree-checkbox" id="toctree-checkbox-5" name="toctree-checkbox-5" type="checkbox"/>
- <label for="toctree-checkbox-5">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.SessionConfig.html">
- datafusion.SessionConfig
- </a>
- </li>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.RuntimeConfig.html">
- datafusion.RuntimeConfig
- </a>
- </li>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.SessionContext.html">
- datafusion.SessionContext
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l2 has-children">
- <a class="reference internal" href="expression.html">
- Expr
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-6" name="toctree-checkbox-6" type="checkbox"/>
- <label for="toctree-checkbox-6">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.Expr.html">
- datafusion.Expr
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l2 has-children">
- <a class="reference internal" href="functions.html">
- Functions
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-7" name="toctree-checkbox-7" type="checkbox"/>
- <label for="toctree-checkbox-7">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.functions.functions.html">
- datafusion.functions.functions
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l2 has-children">
- <a class="reference internal" href="object_store.html">
- ObjectStore
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-8" name="toctree-checkbox-8" type="checkbox"/>
- <label for="toctree-checkbox-8">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.object_store.object_store.html">
- datafusion.object_store.object_store
- </a>
- </li>
- </ul>
- </li>
- </ul>
- </li>
-</ul>
-
-
- </div>
-</nav>
- </div>
- <div class="sidebar-end-items">
- </div>
- </div>
-
-
-
-
- <div class="d-none d-xl-block col-xl-2 bd-toc">
-
-
- <div class="toc-item">
-
-
-<nav id="bd-toc-nav">
-
-</nav>
- </div>
-
- <div class="toc-item">
-
-
-<div class="tocsection editthispage">
- <a href="https://github.com/apache/arrow-datafusion-python/edit/main/docs/source/api/execution_context.rst">
- <i class="fas fa-pencil-alt"></i> Edit this page
- </a>
-</div>
-
- </div>
-
-
- </div>
-
-
-
-
-
-
- <main class="col-12 col-md-9 col-xl-7 py-md-5 pl-md-5 pr-md-4 bd-content" role="main">
-
- <div>
-
- <section id="sessioncontext">
-<span id="api-execution-context"></span><h1>SessionContext<a class="headerlink" href="#sessioncontext" title="Link to this heading">¶</a></h1>
-<table class="autosummary longtable table autosummary">
-<tbody>
-<tr class="row-odd"><td><p><a class="reference internal" href="../generated/datafusion.SessionConfig.html#datafusion.SessionConfig" title="datafusion.SessionConfig"><code class="xref py py-obj docutils literal notranslate"><span class="pre">SessionConfig</span></code></a>([config_options])</p></td>
-<td><p>Configuration options for a SessionContext</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="../generated/datafusion.RuntimeConfig.html#datafusion.RuntimeConfig" title="datafusion.RuntimeConfig"><code class="xref py py-obj docutils literal notranslate"><span class="pre">RuntimeConfig</span></code></a>()</p></td>
-<td><p>Runtime options for a SessionContext</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="../generated/datafusion.SessionContext.html#datafusion.SessionContext" title="datafusion.SessionContext"><code class="xref py py-obj docutils literal notranslate"><span class="pre">SessionContext</span></code></a>([config, runtime])</p></td>
-<td><p><cite>PySessionContext</cite> is able to plan and execute DataFusion plans.</p></td>
-</tr>
-</tbody>
-</table>
-</section>
-
-
- </div>
-
-
- <!-- Previous / next buttons -->
-<div class='prev-next-area'>
- <a class='left-prev' id="prev-link" href="../generated/datafusion.DataFrame.html" title="previous page">
- <i class="fas fa-angle-left"></i>
- <div class="prev-next-info">
- <p class="prev-next-subtitle">previous</p>
- <p class="prev-next-title">datafusion.DataFrame</p>
- </div>
- </a>
- <a class='right-next' id="next-link" href="../generated/datafusion.SessionConfig.html" title="next page">
- <div class="prev-next-info">
- <p class="prev-next-subtitle">next</p>
- <p class="prev-next-title">datafusion.SessionConfig</p>
- </div>
- <i class="fas fa-angle-right"></i>
- </a>
-</div>
-
- </main>
-
-
- </div>
- </div>
-
- <script src="../_static/scripts/pydata-sphinx-theme.js?digest=1999514e3f237ded88cf"></script>
-
-<!-- Based on pydata_sphinx_theme/footer.html -->
-<footer class="footer mt-5 mt-md-0">
- <div class="container">
-
- <div class="footer-item">
- <p class="copyright">
- © Copyright 2019-2024, Apache Software Foundation.<br>
-</p>
- </div>
-
- <div class="footer-item">
- <p class="sphinx-version">
-Created using <a href="http://sphinx-doc.org/">Sphinx</a> 7.3.7.<br>
-</p>
- </div>
-
- <div class="footer-item">
- <p>Apache Arrow DataFusion, Arrow DataFusion, Apache, the Apache feather logo, and the Apache Arrow DataFusion project logo</p>
- <p>are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.</p>
- </div>
- </div>
-</footer>
-
-
- </body>
-</html>
\ No newline at end of file
diff --git a/api/functions.html b/api/functions.html
deleted file mode 100644
index 4bf9b10..0000000
--- a/api/functions.html
+++ /dev/null
@@ -1,447 +0,0 @@
-<!DOCTYPE html>
-
-<html lang="en" data-content_root="../">
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
-
- <title>Functions — Apache Arrow DataFusion documentation</title>
-
- <link href="../_static/styles/theme.css?digest=1999514e3f237ded88cf" rel="stylesheet">
-<link href="../_static/styles/pydata-sphinx-theme.css?digest=1999514e3f237ded88cf" rel="stylesheet">
-
-
- <link rel="stylesheet"
- href="../_static/vendor/fontawesome/5.13.0/css/all.min.css">
- <link rel="preload" as="font" type="font/woff2" crossorigin
- href="../_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.woff2">
- <link rel="preload" as="font" type="font/woff2" crossorigin
- href="../_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.woff2">
-
-
-
-
-
- <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=a746c00c" />
- <link rel="stylesheet" type="text/css" href="../_static/styles/pydata-sphinx-theme.css?v=1140d252" />
- <link rel="stylesheet" type="text/css" href="../_static/theme_overrides.css?v=ef9fea58" />
-
- <link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=1999514e3f237ded88cf">
-
- <script src="../_static/documentation_options.js?v=8a448e45"></script>
- <script src="../_static/doctools.js?v=9a2dae69"></script>
- <script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
- <link rel="index" title="Index" href="../genindex.html" />
- <link rel="search" title="Search" href="../search.html" />
- <link rel="next" title="datafusion.functions.functions" href="../generated/datafusion.functions.functions.html" />
- <link rel="prev" title="datafusion.Expr" href="../generated/datafusion.Expr.html" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
-
-
- <!-- Google Analytics -->
-
- </head>
- <body data-spy="scroll" data-target="#bd-toc-nav" data-offset="80">
-
- <div class="container-fluid" id="banner"></div>
-
-
-
-
- <div class="container-xl">
- <div class="row">
-
-
- <!-- Only show if we have sidebars configured, else just a small margin -->
- <div class="col-12 col-md-3 bd-sidebar">
- <div class="sidebar-start-items">
-<a class="navbar-brand" href="../index.html">
- <img src="../_static/images/2x_bgwhite_original.png" class="logo" alt="logo">
-</a>
-
-<form class="bd-search d-flex align-items-center" action="../search.html" method="get">
- <i class="icon fas fa-search"></i>
- <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" >
-</form>
-
-<nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
- <div class="bd-toc-item active">
-
- <p aria-level="2" class="caption" role="heading">
- <span class="caption-text">
- LINKS
- </span>
-</p>
-<ul class="nav bd-sidenav">
- <li class="toctree-l1">
- <a class="reference external" href="https://github.com/apache/datafusion-python">
- Github and Issue Tracker
- </a>
- </li>
- <li class="toctree-l1">
- <a class="reference external" href="https://docs.rs/datafusion/latest/datafusion/">
- Rust's API Docs
- </a>
- </li>
- <li class="toctree-l1">
- <a class="reference external" href="https://github.com/apache/datafusion/blob/main/CODE_OF_CONDUCT.md">
- Code of conduct
- </a>
- </li>
- <li class="toctree-l1">
- <a class="reference external" href="https://github.com/apache/datafusion-python/tree/main/examples">
- Examples
- </a>
- </li>
-</ul>
-<p aria-level="2" class="caption" role="heading">
- <span class="caption-text">
- USER GUIDE
- </span>
-</p>
-<ul class="nav bd-sidenav">
- <li class="toctree-l1">
- <a class="reference internal" href="../user-guide/introduction.html">
- Introduction
- </a>
- </li>
- <li class="toctree-l1">
- <a class="reference internal" href="../user-guide/basics.html">
- Concepts
- </a>
- </li>
- <li class="toctree-l1">
- <a class="reference internal" href="../user-guide/configuration.html">
- Configuration
- </a>
- </li>
- <li class="toctree-l1 has-children">
- <a class="reference internal" href="../user-guide/common-operations/index.html">
- Common Operations
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"/>
- <label for="toctree-checkbox-1">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/basic-info.html">
- Basic Operations
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/select-and-filter.html">
- Column Selections
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/expressions.html">
- Expressions
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/joins.html">
- Joins
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/functions.html">
- Functions
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/aggregations.html">
- Aggregation
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/windows.html">
- Window Functions
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/udf-and-udfa.html">
- User Defined Functions
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l1 has-children">
- <a class="reference internal" href="../user-guide/io/index.html">
- IO
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" type="checkbox"/>
- <label for="toctree-checkbox-2">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/io/csv.html">
- CSV
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/io/parquet.html">
- Parquet
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/io/json.html">
- JSON
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/io/avro.html">
- Avro
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l1">
- <a class="reference internal" href="../user-guide/sql.html">
- SQL
- </a>
- </li>
-</ul>
-<p aria-level="2" class="caption" role="heading">
- <span class="caption-text">
- CONTRIBUTOR GUIDE
- </span>
-</p>
-<ul class="nav bd-sidenav">
- <li class="toctree-l1">
- <a class="reference internal" href="../contributor-guide/introduction.html">
- Introduction
- </a>
- </li>
-</ul>
-<p aria-level="2" class="caption" role="heading">
- <span class="caption-text">
- API
- </span>
-</p>
-<ul class="current nav bd-sidenav">
- <li class="toctree-l1 current active has-children">
- <a class="reference internal" href="../api.html">
- API Reference
- </a>
- <input checked="" class="toctree-checkbox" id="toctree-checkbox-3" name="toctree-checkbox-3" type="checkbox"/>
- <label for="toctree-checkbox-3">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul class="current">
- <li class="toctree-l2 has-children">
- <a class="reference internal" href="dataframe.html">
- DataFrame
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-4" name="toctree-checkbox-4" type="checkbox"/>
- <label for="toctree-checkbox-4">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.DataFrame.html">
- datafusion.DataFrame
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l2 has-children">
- <a class="reference internal" href="execution_context.html">
- SessionContext
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-5" name="toctree-checkbox-5" type="checkbox"/>
- <label for="toctree-checkbox-5">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.SessionConfig.html">
- datafusion.SessionConfig
- </a>
- </li>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.RuntimeConfig.html">
- datafusion.RuntimeConfig
- </a>
- </li>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.SessionContext.html">
- datafusion.SessionContext
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l2 has-children">
- <a class="reference internal" href="expression.html">
- Expr
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-6" name="toctree-checkbox-6" type="checkbox"/>
- <label for="toctree-checkbox-6">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.Expr.html">
- datafusion.Expr
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l2 current active has-children">
- <a class="current reference internal" href="#">
- Functions
- </a>
- <input checked="" class="toctree-checkbox" id="toctree-checkbox-7" name="toctree-checkbox-7" type="checkbox"/>
- <label for="toctree-checkbox-7">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.functions.functions.html">
- datafusion.functions.functions
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l2 has-children">
- <a class="reference internal" href="object_store.html">
- ObjectStore
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-8" name="toctree-checkbox-8" type="checkbox"/>
- <label for="toctree-checkbox-8">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.object_store.object_store.html">
- datafusion.object_store.object_store
- </a>
- </li>
- </ul>
- </li>
- </ul>
- </li>
-</ul>
-
-
- </div>
-</nav>
- </div>
- <div class="sidebar-end-items">
- </div>
- </div>
-
-
-
-
- <div class="d-none d-xl-block col-xl-2 bd-toc">
-
-
- <div class="toc-item">
-
-
-<nav id="bd-toc-nav">
-
-</nav>
- </div>
-
- <div class="toc-item">
-
-
-<div class="tocsection editthispage">
- <a href="https://github.com/apache/arrow-datafusion-python/edit/main/docs/source/api/functions.rst">
- <i class="fas fa-pencil-alt"></i> Edit this page
- </a>
-</div>
-
- </div>
-
-
- </div>
-
-
-
-
-
-
- <main class="col-12 col-md-9 col-xl-7 py-md-5 pl-md-5 pr-md-4 bd-content" role="main">
-
- <div>
-
- <section id="functions">
-<span id="api-functions"></span><h1>Functions<a class="headerlink" href="#functions" title="Link to this heading">¶</a></h1>
-<table class="autosummary longtable table autosummary">
-<tbody>
-<tr class="row-odd"><td><p><a class="reference internal" href="../generated/datafusion.functions.functions.html#module-datafusion.functions.functions" title="datafusion.functions.functions"><code class="xref py py-obj docutils literal notranslate"><span class="pre">functions.functions</span></code></a></p></td>
-<td><p></p></td>
-</tr>
-</tbody>
-</table>
-</section>
-
-
- </div>
-
-
- <!-- Previous / next buttons -->
-<div class='prev-next-area'>
- <a class='left-prev' id="prev-link" href="../generated/datafusion.Expr.html" title="previous page">
- <i class="fas fa-angle-left"></i>
- <div class="prev-next-info">
- <p class="prev-next-subtitle">previous</p>
- <p class="prev-next-title">datafusion.Expr</p>
- </div>
- </a>
- <a class='right-next' id="next-link" href="../generated/datafusion.functions.functions.html" title="next page">
- <div class="prev-next-info">
- <p class="prev-next-subtitle">next</p>
- <p class="prev-next-title">datafusion.functions.functions</p>
- </div>
- <i class="fas fa-angle-right"></i>
- </a>
-</div>
-
- </main>
-
-
- </div>
- </div>
-
- <script src="../_static/scripts/pydata-sphinx-theme.js?digest=1999514e3f237ded88cf"></script>
-
-<!-- Based on pydata_sphinx_theme/footer.html -->
-<footer class="footer mt-5 mt-md-0">
- <div class="container">
-
- <div class="footer-item">
- <p class="copyright">
- © Copyright 2019-2024, Apache Software Foundation.<br>
-</p>
- </div>
-
- <div class="footer-item">
- <p class="sphinx-version">
-Created using <a href="http://sphinx-doc.org/">Sphinx</a> 7.3.7.<br>
-</p>
- </div>
-
- <div class="footer-item">
- <p>Apache Arrow DataFusion, Arrow DataFusion, Apache, the Apache feather logo, and the Apache Arrow DataFusion project logo</p>
- <p>are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.</p>
- </div>
- </div>
-</footer>
-
-
- </body>
-</html>
\ No newline at end of file
diff --git a/api/object_store.html b/api/object_store.html
deleted file mode 100644
index be773f5..0000000
--- a/api/object_store.html
+++ /dev/null
@@ -1,447 +0,0 @@
-<!DOCTYPE html>
-
-<html lang="en" data-content_root="../">
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
-
- <title>ObjectStore — Apache Arrow DataFusion documentation</title>
-
- <link href="../_static/styles/theme.css?digest=1999514e3f237ded88cf" rel="stylesheet">
-<link href="../_static/styles/pydata-sphinx-theme.css?digest=1999514e3f237ded88cf" rel="stylesheet">
-
-
- <link rel="stylesheet"
- href="../_static/vendor/fontawesome/5.13.0/css/all.min.css">
- <link rel="preload" as="font" type="font/woff2" crossorigin
- href="../_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.woff2">
- <link rel="preload" as="font" type="font/woff2" crossorigin
- href="../_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.woff2">
-
-
-
-
-
- <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=a746c00c" />
- <link rel="stylesheet" type="text/css" href="../_static/styles/pydata-sphinx-theme.css?v=1140d252" />
- <link rel="stylesheet" type="text/css" href="../_static/theme_overrides.css?v=ef9fea58" />
-
- <link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=1999514e3f237ded88cf">
-
- <script src="../_static/documentation_options.js?v=8a448e45"></script>
- <script src="../_static/doctools.js?v=9a2dae69"></script>
- <script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
- <link rel="index" title="Index" href="../genindex.html" />
- <link rel="search" title="Search" href="../search.html" />
- <link rel="next" title="datafusion.object_store.object_store" href="../generated/datafusion.object_store.object_store.html" />
- <link rel="prev" title="datafusion.functions.functions" href="../generated/datafusion.functions.functions.html" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
-
-
- <!-- Google Analytics -->
-
- </head>
- <body data-spy="scroll" data-target="#bd-toc-nav" data-offset="80">
-
- <div class="container-fluid" id="banner"></div>
-
-
-
-
- <div class="container-xl">
- <div class="row">
-
-
- <!-- Only show if we have sidebars configured, else just a small margin -->
- <div class="col-12 col-md-3 bd-sidebar">
- <div class="sidebar-start-items">
-<a class="navbar-brand" href="../index.html">
- <img src="../_static/images/2x_bgwhite_original.png" class="logo" alt="logo">
-</a>
-
-<form class="bd-search d-flex align-items-center" action="../search.html" method="get">
- <i class="icon fas fa-search"></i>
- <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" >
-</form>
-
-<nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
- <div class="bd-toc-item active">
-
- <p aria-level="2" class="caption" role="heading">
- <span class="caption-text">
- LINKS
- </span>
-</p>
-<ul class="nav bd-sidenav">
- <li class="toctree-l1">
- <a class="reference external" href="https://github.com/apache/datafusion-python">
- Github and Issue Tracker
- </a>
- </li>
- <li class="toctree-l1">
- <a class="reference external" href="https://docs.rs/datafusion/latest/datafusion/">
- Rust's API Docs
- </a>
- </li>
- <li class="toctree-l1">
- <a class="reference external" href="https://github.com/apache/datafusion/blob/main/CODE_OF_CONDUCT.md">
- Code of conduct
- </a>
- </li>
- <li class="toctree-l1">
- <a class="reference external" href="https://github.com/apache/datafusion-python/tree/main/examples">
- Examples
- </a>
- </li>
-</ul>
-<p aria-level="2" class="caption" role="heading">
- <span class="caption-text">
- USER GUIDE
- </span>
-</p>
-<ul class="nav bd-sidenav">
- <li class="toctree-l1">
- <a class="reference internal" href="../user-guide/introduction.html">
- Introduction
- </a>
- </li>
- <li class="toctree-l1">
- <a class="reference internal" href="../user-guide/basics.html">
- Concepts
- </a>
- </li>
- <li class="toctree-l1">
- <a class="reference internal" href="../user-guide/configuration.html">
- Configuration
- </a>
- </li>
- <li class="toctree-l1 has-children">
- <a class="reference internal" href="../user-guide/common-operations/index.html">
- Common Operations
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"/>
- <label for="toctree-checkbox-1">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/basic-info.html">
- Basic Operations
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/select-and-filter.html">
- Column Selections
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/expressions.html">
- Expressions
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/joins.html">
- Joins
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/functions.html">
- Functions
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/aggregations.html">
- Aggregation
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/windows.html">
- Window Functions
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/common-operations/udf-and-udfa.html">
- User Defined Functions
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l1 has-children">
- <a class="reference internal" href="../user-guide/io/index.html">
- IO
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" type="checkbox"/>
- <label for="toctree-checkbox-2">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/io/csv.html">
- CSV
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/io/parquet.html">
- Parquet
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/io/json.html">
- JSON
- </a>
- </li>
- <li class="toctree-l2">
- <a class="reference internal" href="../user-guide/io/avro.html">
- Avro
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l1">
- <a class="reference internal" href="../user-guide/sql.html">
- SQL
- </a>
- </li>
-</ul>
-<p aria-level="2" class="caption" role="heading">
- <span class="caption-text">
- CONTRIBUTOR GUIDE
- </span>
-</p>
-<ul class="nav bd-sidenav">
- <li class="toctree-l1">
- <a class="reference internal" href="../contributor-guide/introduction.html">
- Introduction
- </a>
- </li>
-</ul>
-<p aria-level="2" class="caption" role="heading">
- <span class="caption-text">
- API
- </span>
-</p>
-<ul class="current nav bd-sidenav">
- <li class="toctree-l1 current active has-children">
- <a class="reference internal" href="../api.html">
- API Reference
- </a>
- <input checked="" class="toctree-checkbox" id="toctree-checkbox-3" name="toctree-checkbox-3" type="checkbox"/>
- <label for="toctree-checkbox-3">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul class="current">
- <li class="toctree-l2 has-children">
- <a class="reference internal" href="dataframe.html">
- DataFrame
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-4" name="toctree-checkbox-4" type="checkbox"/>
- <label for="toctree-checkbox-4">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.DataFrame.html">
- datafusion.DataFrame
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l2 has-children">
- <a class="reference internal" href="execution_context.html">
- SessionContext
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-5" name="toctree-checkbox-5" type="checkbox"/>
- <label for="toctree-checkbox-5">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.SessionConfig.html">
- datafusion.SessionConfig
- </a>
- </li>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.RuntimeConfig.html">
- datafusion.RuntimeConfig
- </a>
- </li>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.SessionContext.html">
- datafusion.SessionContext
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l2 has-children">
- <a class="reference internal" href="expression.html">
- Expr
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-6" name="toctree-checkbox-6" type="checkbox"/>
- <label for="toctree-checkbox-6">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.Expr.html">
- datafusion.Expr
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l2 has-children">
- <a class="reference internal" href="functions.html">
- Functions
- </a>
- <input class="toctree-checkbox" id="toctree-checkbox-7" name="toctree-checkbox-7" type="checkbox"/>
- <label for="toctree-checkbox-7">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.functions.functions.html">
- datafusion.functions.functions
- </a>
- </li>
- </ul>
- </li>
- <li class="toctree-l2 current active has-children">
- <a class="current reference internal" href="#">
- ObjectStore
- </a>
- <input checked="" class="toctree-checkbox" id="toctree-checkbox-8" name="toctree-checkbox-8" type="checkbox"/>
- <label for="toctree-checkbox-8">
- <i class="fas fa-chevron-down">
- </i>
- </label>
- <ul>
- <li class="toctree-l3">
- <a class="reference internal" href="../generated/datafusion.object_store.object_store.html">
- datafusion.object_store.object_store
- </a>
- </li>
- </ul>
- </li>
- </ul>
- </li>
-</ul>
-
-
- </div>
-</nav>
- </div>
- <div class="sidebar-end-items">
- </div>
- </div>
-
-
-
-
- <div class="d-none d-xl-block col-xl-2 bd-toc">
-
-
- <div class="toc-item">
-
-
-<nav id="bd-toc-nav">
-
-</nav>
- </div>
-
- <div class="toc-item">
-
-
-<div class="tocsection editthispage">
- <a href="https://github.com/apache/arrow-datafusion-python/edit/main/docs/source/api/object_store.rst">
- <i class="fas fa-pencil-alt"></i> Edit this page
- </a>
-</div>
-
- </div>
-
-
- </div>
-
-
-
-
-
-
- <main class="col-12 col-md-9 col-xl-7 py-md-5 pl-md-5 pr-md-4 bd-content" role="main">
-
- <div>
-
- <section id="objectstore">
-<span id="api-object-store"></span><h1>ObjectStore<a class="headerlink" href="#objectstore" title="Link to this heading">¶</a></h1>
-<table class="autosummary longtable table autosummary">
-<tbody>
-<tr class="row-odd"><td><p><a class="reference internal" href="../generated/datafusion.object_store.object_store.html#module-datafusion.object_store.object_store" title="datafusion.object_store.object_store"><code class="xref py py-obj docutils literal notranslate"><span class="pre">object_store</span></code></a></p></td>
-<td><p></p></td>
-</tr>
-</tbody>
-</table>
-</section>
-
-
- </div>
-
-
- <!-- Previous / next buttons -->
-<div class='prev-next-area'>
- <a class='left-prev' id="prev-link" href="../generated/datafusion.functions.functions.html" title="previous page">
- <i class="fas fa-angle-left"></i>
- <div class="prev-next-info">
- <p class="prev-next-subtitle">previous</p>
- <p class="prev-next-title">datafusion.functions.functions</p>
- </div>
- </a>
- <a class='right-next' id="next-link" href="../generated/datafusion.object_store.object_store.html" title="next page">
- <div class="prev-next-info">
- <p class="prev-next-subtitle">next</p>
- <p class="prev-next-title">datafusion.object_store.object_store</p>
- </div>
- <i class="fas fa-angle-right"></i>
- </a>
-</div>
-
- </main>
-
-
- </div>
- </div>
-
- <script src="../_static/scripts/pydata-sphinx-theme.js?digest=1999514e3f237ded88cf"></script>
-
-<!-- Based on pydata_sphinx_theme/footer.html -->
-<footer class="footer mt-5 mt-md-0">
- <div class="container">
-
- <div class="footer-item">
- <p class="copyright">
- © Copyright 2019-2024, Apache Software Foundation.<br>
-</p>
- </div>
-
- <div class="footer-item">
- <p class="sphinx-version">
-Created using <a href="http://sphinx-doc.org/">Sphinx</a> 7.3.7.<br>
-</p>
- </div>
-
- <div class="footer-item">
- <p>Apache Arrow DataFusion, Arrow DataFusion, Apache, the Apache feather logo, and the Apache Arrow DataFusion project logo</p>
- <p>are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.</p>
- </div>
- </div>
-</footer>
-
-
- </body>
-</html>
\ No newline at end of file
diff --git a/autoapi/datafusion/catalog/index.html b/autoapi/datafusion/catalog/index.html
new file mode 100644
index 0000000..1bb9243
--- /dev/null
+++ b/autoapi/datafusion/catalog/index.html
@@ -0,0 +1,641 @@
+<!DOCTYPE html>
+
+<html lang="en" data-content_root="../../../">
+ <head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
+
+ <title>datafusion.catalog — Apache Arrow DataFusion documentation</title>
+
+ <link href="../../../_static/styles/theme.css?digest=1999514e3f237ded88cf" rel="stylesheet">
+<link href="../../../_static/styles/pydata-sphinx-theme.css?digest=1999514e3f237ded88cf" rel="stylesheet">
+
+
+ <link rel="stylesheet"
+ href="../../../_static/vendor/fontawesome/5.13.0/css/all.min.css">
+ <link rel="preload" as="font" type="font/woff2" crossorigin
+ href="../../../_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.woff2">
+ <link rel="preload" as="font" type="font/woff2" crossorigin
+ href="../../../_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.woff2">
+
+
+
+
+
+ <link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=a746c00c" />
+ <link rel="stylesheet" type="text/css" href="../../../_static/styles/pydata-sphinx-theme.css?v=1140d252" />
+ <link rel="stylesheet" type="text/css" href="../../../_static/graphviz.css?v=fd3f3429" />
+ <link rel="stylesheet" type="text/css" href="../../../_static/theme_overrides.css?v=ef9fea58" />
+
+ <link rel="preload" as="script" href="../../../_static/scripts/pydata-sphinx-theme.js?digest=1999514e3f237ded88cf">
+
+ <script src="../../../_static/documentation_options.js?v=8a448e45"></script>
+ <script src="../../../_static/doctools.js?v=9a2dae69"></script>
+ <script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
+ <link rel="index" title="Index" href="../../../genindex.html" />
+ <link rel="search" title="Search" href="../../../search.html" />
+ <link rel="next" title="datafusion.context" href="../context/index.html" />
+ <link rel="prev" title="datafusion.input.location" href="../input/location/index.html" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta name="docsearch:language" content="en">
+
+
+ <!-- Google Analytics -->
+
+ </head>
+ <body data-spy="scroll" data-target="#bd-toc-nav" data-offset="80">
+
+ <div class="container-fluid" id="banner"></div>
+
+
+
+
+ <div class="container-xl">
+ <div class="row">
+
+
+ <!-- Only show if we have sidebars configured, else just a small margin -->
+ <div class="col-12 col-md-3 bd-sidebar">
+ <div class="sidebar-start-items">
+<a class="navbar-brand" href="../../../index.html">
+ <img src="../../../_static/images/2x_bgwhite_original.png" class="logo" alt="logo">
+</a>
+
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="icon fas fa-search"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" >
+</form>
+
+<nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
+ <div class="bd-toc-item active">
+
+ <p aria-level="2" class="caption" role="heading">
+ <span class="caption-text">
+ LINKS
+ </span>
+</p>
+<ul class="nav bd-sidenav">
+ <li class="toctree-l1">
+ <a class="reference external" href="https://github.com/apache/datafusion-python">
+ Github and Issue Tracker
+ </a>
+ </li>
+ <li class="toctree-l1">
+ <a class="reference external" href="https://docs.rs/datafusion/latest/datafusion/">
+ Rust's API Docs
+ </a>
+ </li>
+ <li class="toctree-l1">
+ <a class="reference external" href="https://github.com/apache/datafusion/blob/main/CODE_OF_CONDUCT.md">
+ Code of conduct
+ </a>
+ </li>
+ <li class="toctree-l1">
+ <a class="reference external" href="https://github.com/apache/datafusion-python/tree/main/examples">
+ Examples
+ </a>
+ </li>
+</ul>
+<p aria-level="2" class="caption" role="heading">
+ <span class="caption-text">
+ USER GUIDE
+ </span>
+</p>
+<ul class="nav bd-sidenav">
+ <li class="toctree-l1">
+ <a class="reference internal" href="../../../user-guide/introduction.html">
+ Introduction
+ </a>
+ </li>
+ <li class="toctree-l1">
+ <a class="reference internal" href="../../../user-guide/basics.html">
+ Concepts
+ </a>
+ </li>
+ <li class="toctree-l1">
+ <a class="reference internal" href="../../../user-guide/configuration.html">
+ Configuration
+ </a>
+ </li>
+ <li class="toctree-l1 has-children">
+ <a class="reference internal" href="../../../user-guide/common-operations/index.html">
+ Common Operations
+ </a>
+ <input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"/>
+ <label for="toctree-checkbox-1">
+ <i class="fas fa-chevron-down">
+ </i>
+ </label>
+ <ul>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/common-operations/basic-info.html">
+ Basic Operations
+ </a>
+ </li>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/common-operations/select-and-filter.html">
+ Column Selections
+ </a>
+ </li>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/common-operations/expressions.html">
+ Expressions
+ </a>
+ </li>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/common-operations/joins.html">
+ Joins
+ </a>
+ </li>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/common-operations/functions.html">
+ Functions
+ </a>
+ </li>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/common-operations/aggregations.html">
+ Aggregation
+ </a>
+ </li>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/common-operations/windows.html">
+ Window Functions
+ </a>
+ </li>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/common-operations/udf-and-udfa.html">
+ User Defined Functions
+ </a>
+ </li>
+ </ul>
+ </li>
+ <li class="toctree-l1 has-children">
+ <a class="reference internal" href="../../../user-guide/io/index.html">
+ IO
+ </a>
+ <input class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" type="checkbox"/>
+ <label for="toctree-checkbox-2">
+ <i class="fas fa-chevron-down">
+ </i>
+ </label>
+ <ul>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/io/csv.html">
+ CSV
+ </a>
+ </li>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/io/parquet.html">
+ Parquet
+ </a>
+ </li>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/io/json.html">
+ JSON
+ </a>
+ </li>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/io/avro.html">
+ Avro
+ </a>
+ </li>
+ </ul>
+ </li>
+ <li class="toctree-l1">
+ <a class="reference internal" href="../../../user-guide/sql.html">
+ SQL
+ </a>
+ </li>
+</ul>
+<p aria-level="2" class="caption" role="heading">
+ <span class="caption-text">
+ CONTRIBUTOR GUIDE
+ </span>
+</p>
+<ul class="nav bd-sidenav">
+ <li class="toctree-l1">
+ <a class="reference internal" href="../../../contributor-guide/introduction.html">
+ Introduction
+ </a>
+ </li>
+</ul>
+<p aria-level="2" class="caption" role="heading">
+ <span class="caption-text">
+ API
+ </span>
+</p>
+<ul class="current nav bd-sidenav">
+ <li class="toctree-l1 current active has-children">
+ <a class="reference internal" href="../../index.html">
+ API Reference
+ </a>
+ <input checked="" class="toctree-checkbox" id="toctree-checkbox-3" name="toctree-checkbox-3" type="checkbox"/>
+ <label for="toctree-checkbox-3">
+ <i class="fas fa-chevron-down">
+ </i>
+ </label>
+ <ul class="current">
+ <li class="toctree-l2 current active has-children">
+ <a class="reference internal" href="../index.html">
+ datafusion
+ </a>
+ <input checked="" class="toctree-checkbox" id="toctree-checkbox-4" name="toctree-checkbox-4" type="checkbox"/>
+ <label for="toctree-checkbox-4">
+ <i class="fas fa-chevron-down">
+ </i>
+ </label>
+ <ul class="current">
+ <li class="toctree-l3 has-children">
+ <a class="reference internal" href="../input/index.html">
+ datafusion.input
+ </a>
+ <input class="toctree-checkbox" id="toctree-checkbox-5" name="toctree-checkbox-5" type="checkbox"/>
+ <label for="toctree-checkbox-5">
+ <i class="fas fa-chevron-down">
+ </i>
+ </label>
+ <ul>
+ <li class="toctree-l4">
+ <a class="reference internal" href="../input/base/index.html">
+ datafusion.input.base
+ </a>
+ </li>
+ <li class="toctree-l4">
+ <a class="reference internal" href="../input/location/index.html">
+ datafusion.input.location
+ </a>
+ </li>
+ </ul>
+ </li>
+ <li class="toctree-l3 current active">
+ <a class="current reference internal" href="#">
+ datafusion.catalog
+ </a>
+ </li>
+ <li class="toctree-l3">
+ <a class="reference internal" href="../context/index.html">
+ datafusion.context
+ </a>
+ </li>
+ <li class="toctree-l3">
+ <a class="reference internal" href="../dataframe/index.html">
+ datafusion.dataframe
+ </a>
+ </li>
+ <li class="toctree-l3">
+ <a class="reference internal" href="../expr/index.html">
+ datafusion.expr
+ </a>
+ </li>
+ <li class="toctree-l3">
+ <a class="reference internal" href="../functions/index.html">
+ datafusion.functions
+ </a>
+ </li>
+ <li class="toctree-l3">
+ <a class="reference internal" href="../object_store/index.html">
+ datafusion.object_store
+ </a>
+ </li>
+ <li class="toctree-l3">
+ <a class="reference internal" href="../record_batch/index.html">
+ datafusion.record_batch
+ </a>
+ </li>
+ <li class="toctree-l3">
+ <a class="reference internal" href="../substrait/index.html">
+ datafusion.substrait
+ </a>
+ </li>
+ <li class="toctree-l3">
+ <a class="reference internal" href="../udf/index.html">
+ datafusion.udf
+ </a>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+</ul>
+
+
+ </div>
+</nav>
+ </div>
+ <div class="sidebar-end-items">
+ </div>
+ </div>
+
+
+
+
+ <div class="d-none d-xl-block col-xl-2 bd-toc">
+
+
+ <div class="toc-item">
+
+<div class="tocsection onthispage pt-5 pb-3">
+ <i class="fas fa-list"></i> On this page
+</div>
+
+<nav id="bd-toc-nav">
+ <ul class="visible nav section-nav flex-column">
+ <li class="toc-h2 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#classes">
+ Classes
+ </a>
+ </li>
+ <li class="toc-h2 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#module-contents">
+ Module Contents
+ </a>
+ <ul class="visible nav section-nav flex-column">
+ <li class="toc-h3 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.catalog.Catalog">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ Catalog
+ </span>
+ </code>
+ </a>
+ <ul class="nav section-nav flex-column">
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.catalog.Catalog.database">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ Catalog.database()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.catalog.Catalog.names">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ Catalog.names()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.catalog.Catalog.catalog">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ Catalog.catalog
+ </span>
+ </code>
+ </a>
+ </li>
+ </ul>
+ </li>
+ <li class="toc-h3 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.catalog.Database">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ Database
+ </span>
+ </code>
+ </a>
+ <ul class="nav section-nav flex-column">
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.catalog.Database.names">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ Database.names()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.catalog.Database.table">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ Database.table()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.catalog.Database.db">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ Database.db
+ </span>
+ </code>
+ </a>
+ </li>
+ </ul>
+ </li>
+ <li class="toc-h3 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.catalog.Table">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ Table
+ </span>
+ </code>
+ </a>
+ <ul class="nav section-nav flex-column">
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.catalog.Table.schema">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ Table.schema()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.catalog.Table.kind">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ Table.kind
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.catalog.Table.table">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ Table.table
+ </span>
+ </code>
+ </a>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+</ul>
+
+</nav>
+ </div>
+
+ <div class="toc-item">
+
+ </div>
+
+
+ </div>
+
+
+
+
+
+
+ <main class="col-12 col-md-9 col-xl-7 py-md-5 pl-md-5 pr-md-4 bd-content" role="main">
+
+ <div>
+
+ <section id="module-datafusion.catalog">
+<span id="datafusion-catalog"></span><h1>datafusion.catalog<a class="headerlink" href="#module-datafusion.catalog" title="Link to this heading">¶</a></h1>
+<p>Data catalog providers.</p>
+<section id="classes">
+<h2>Classes<a class="headerlink" href="#classes" title="Link to this heading">¶</a></h2>
+<table class="autosummary longtable table autosummary">
+<tbody>
+<tr class="row-odd"><td><p><a class="reference internal" href="#datafusion.catalog.Catalog" title="datafusion.catalog.Catalog"><code class="xref py py-obj docutils literal notranslate"><span class="pre">Catalog</span></code></a></p></td>
+<td><p>DataFusion data catalog.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#datafusion.catalog.Database" title="datafusion.catalog.Database"><code class="xref py py-obj docutils literal notranslate"><span class="pre">Database</span></code></a></p></td>
+<td><p>DataFusion Database.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#datafusion.catalog.Table" title="datafusion.catalog.Table"><code class="xref py py-obj docutils literal notranslate"><span class="pre">Table</span></code></a></p></td>
+<td><p>DataFusion table.</p></td>
+</tr>
+</tbody>
+</table>
+</section>
+<section id="module-contents">
+<h2>Module Contents<a class="headerlink" href="#module-contents" title="Link to this heading">¶</a></h2>
+<dl class="py class">
+<dt class="sig sig-object py" id="datafusion.catalog.Catalog">
+<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">datafusion.catalog.</span></span><span class="sig-name descname"><span class="pre">Catalog</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">catalog</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">datafusion._internal.Catalog</span [...]
+<dd><p>DataFusion data catalog.</p>
+<p>This constructor is not typically called by the end user.</p>
+<dl class="py method">
+<dt class="sig sig-object py" id="datafusion.catalog.Catalog.database">
+<span class="sig-name descname"><span class="pre">database</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">name</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">'public'</span></span></em><span class="sig-par [...]
+<dd><p>Returns the database with the given <code class="docutils literal notranslate"><span class="pre">name</span></code> from this catalog.</p>
+</dd></dl>
+
+<dl class="py method">
+<dt class="sig sig-object py" id="datafusion.catalog.Catalog.names">
+<span class="sig-name descname"><span class="pre">names</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">list</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#datafusion.catalog.Catalog.names" title="Link to this d [...]
+<dd><p>Returns the list of databases in this catalog.</p>
+</dd></dl>
+
+<dl class="py attribute">
+<dt class="sig sig-object py" id="datafusion.catalog.Catalog.catalog">
+<span class="sig-name descname"><span class="pre">catalog</span></span><a class="headerlink" href="#datafusion.catalog.Catalog.catalog" title="Link to this definition">¶</a></dt>
+<dd></dd></dl>
+
+</dd></dl>
+
+<dl class="py class">
+<dt class="sig sig-object py" id="datafusion.catalog.Database">
+<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">datafusion.catalog.</span></span><span class="sig-name descname"><span class="pre">Database</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">db</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">datafusion._internal.Database</span></ [...]
+<dd><p>DataFusion Database.</p>
+<p>This constructor is not typically called by the end user.</p>
+<dl class="py method">
+<dt class="sig sig-object py" id="datafusion.catalog.Database.names">
+<span class="sig-name descname"><span class="pre">names</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">set</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#datafusion.catalog.Database.names" title="Link to this d [...]
+<dd><p>Returns the list of all tables in this database.</p>
+</dd></dl>
+
+<dl class="py method">
+<dt class="sig sig-object py" id="datafusion.catalog.Database.table">
+<span class="sig-name descname"><span class="pre">table</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">name</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href="#datafusion.ca [...]
+<dd><p>Return the table with the given <code class="docutils literal notranslate"><span class="pre">name</span></code> from this database.</p>
+</dd></dl>
+
+<dl class="py attribute">
+<dt class="sig sig-object py" id="datafusion.catalog.Database.db">
+<span class="sig-name descname"><span class="pre">db</span></span><a class="headerlink" href="#datafusion.catalog.Database.db" title="Link to this definition">¶</a></dt>
+<dd></dd></dl>
+
+</dd></dl>
+
+<dl class="py class">
+<dt class="sig sig-object py" id="datafusion.catalog.Table">
+<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">datafusion.catalog.</span></span><span class="sig-name descname"><span class="pre">Table</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">table</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">datafusion._internal.Table</span></spa [...]
+<dd><p>DataFusion table.</p>
+<p>This constructor is not typically called by the end user.</p>
+<dl class="py method">
+<dt class="sig sig-object py" id="datafusion.catalog.Table.schema">
+<span class="sig-name descname"><span class="pre">schema</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">pyarrow.Schema</span></span></span><a class="headerlink" href="#datafusion.catalog.Table.schema" title="Link to this definition">¶</a></dt>
+<dd><p>Returns the schema associated with this table.</p>
+</dd></dl>
+
+<dl class="py property">
+<dt class="sig sig-object py" id="datafusion.catalog.Table.kind">
+<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">kind</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">str</span></em><a class="headerlink" href="#datafusion.catalog.Table.kind" title="Link to this definition">¶</a></dt>
+<dd><p>Returns the kind of table.</p>
+</dd></dl>
+
+<dl class="py attribute">
+<dt class="sig sig-object py" id="datafusion.catalog.Table.table">
+<span class="sig-name descname"><span class="pre">table</span></span><a class="headerlink" href="#datafusion.catalog.Table.table" title="Link to this definition">¶</a></dt>
+<dd></dd></dl>
+
+</dd></dl>
+
+</section>
+</section>
+
+
+ </div>
+
+
+ <!-- Previous / next buttons -->
+<div class='prev-next-area'>
+ <a class='left-prev' id="prev-link" href="../input/location/index.html" title="previous page">
+ <i class="fas fa-angle-left"></i>
+ <div class="prev-next-info">
+ <p class="prev-next-subtitle">previous</p>
+ <p class="prev-next-title">datafusion.input.location</p>
+ </div>
+ </a>
+ <a class='right-next' id="next-link" href="../context/index.html" title="next page">
+ <div class="prev-next-info">
+ <p class="prev-next-subtitle">next</p>
+ <p class="prev-next-title">datafusion.context</p>
+ </div>
+ <i class="fas fa-angle-right"></i>
+ </a>
+</div>
+
+ </main>
+
+
+ </div>
+ </div>
+
+ <script src="../../../_static/scripts/pydata-sphinx-theme.js?digest=1999514e3f237ded88cf"></script>
+
+<!-- Based on pydata_sphinx_theme/footer.html -->
+<footer class="footer mt-5 mt-md-0">
+ <div class="container">
+
+ <div class="footer-item">
+ <p class="copyright">
+ © Copyright 2019-2024, Apache Software Foundation.<br>
+</p>
+ </div>
+
+ <div class="footer-item">
+ <p class="sphinx-version">
+Created using <a href="http://sphinx-doc.org/">Sphinx</a> 8.0.2.<br>
+</p>
+ </div>
+
+ <div class="footer-item">
+ <p>Apache Arrow DataFusion, Arrow DataFusion, Apache, the Apache feather logo, and the Apache Arrow DataFusion project logo</p>
+ <p>are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.</p>
+ </div>
+ </div>
+</footer>
+
+
+ </body>
+</html>
\ No newline at end of file
diff --git a/autoapi/datafusion/context/index.html b/autoapi/datafusion/context/index.html
new file mode 100644
index 0000000..047f514
--- /dev/null
+++ b/autoapi/datafusion/context/index.html
@@ -0,0 +1,1999 @@
+<!DOCTYPE html>
+
+<html lang="en" data-content_root="../../../">
+ <head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
+
+ <title>datafusion.context — Apache Arrow DataFusion documentation</title>
+
+ <link href="../../../_static/styles/theme.css?digest=1999514e3f237ded88cf" rel="stylesheet">
+<link href="../../../_static/styles/pydata-sphinx-theme.css?digest=1999514e3f237ded88cf" rel="stylesheet">
+
+
+ <link rel="stylesheet"
+ href="../../../_static/vendor/fontawesome/5.13.0/css/all.min.css">
+ <link rel="preload" as="font" type="font/woff2" crossorigin
+ href="../../../_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.woff2">
+ <link rel="preload" as="font" type="font/woff2" crossorigin
+ href="../../../_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.woff2">
+
+
+
+
+
+ <link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=a746c00c" />
+ <link rel="stylesheet" type="text/css" href="../../../_static/styles/pydata-sphinx-theme.css?v=1140d252" />
+ <link rel="stylesheet" type="text/css" href="../../../_static/graphviz.css?v=fd3f3429" />
+ <link rel="stylesheet" type="text/css" href="../../../_static/theme_overrides.css?v=ef9fea58" />
+
+ <link rel="preload" as="script" href="../../../_static/scripts/pydata-sphinx-theme.js?digest=1999514e3f237ded88cf">
+
+ <script src="../../../_static/documentation_options.js?v=8a448e45"></script>
+ <script src="../../../_static/doctools.js?v=9a2dae69"></script>
+ <script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
+ <link rel="index" title="Index" href="../../../genindex.html" />
+ <link rel="search" title="Search" href="../../../search.html" />
+ <link rel="next" title="datafusion.dataframe" href="../dataframe/index.html" />
+ <link rel="prev" title="datafusion.catalog" href="../catalog/index.html" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta name="docsearch:language" content="en">
+
+
+ <!-- Google Analytics -->
+
+ </head>
+ <body data-spy="scroll" data-target="#bd-toc-nav" data-offset="80">
+
+ <div class="container-fluid" id="banner"></div>
+
+
+
+
+ <div class="container-xl">
+ <div class="row">
+
+
+ <!-- Only show if we have sidebars configured, else just a small margin -->
+ <div class="col-12 col-md-3 bd-sidebar">
+ <div class="sidebar-start-items">
+<a class="navbar-brand" href="../../../index.html">
+ <img src="../../../_static/images/2x_bgwhite_original.png" class="logo" alt="logo">
+</a>
+
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="icon fas fa-search"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" >
+</form>
+
+<nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
+ <div class="bd-toc-item active">
+
+ <p aria-level="2" class="caption" role="heading">
+ <span class="caption-text">
+ LINKS
+ </span>
+</p>
+<ul class="nav bd-sidenav">
+ <li class="toctree-l1">
+ <a class="reference external" href="https://github.com/apache/datafusion-python">
+ Github and Issue Tracker
+ </a>
+ </li>
+ <li class="toctree-l1">
+ <a class="reference external" href="https://docs.rs/datafusion/latest/datafusion/">
+ Rust's API Docs
+ </a>
+ </li>
+ <li class="toctree-l1">
+ <a class="reference external" href="https://github.com/apache/datafusion/blob/main/CODE_OF_CONDUCT.md">
+ Code of conduct
+ </a>
+ </li>
+ <li class="toctree-l1">
+ <a class="reference external" href="https://github.com/apache/datafusion-python/tree/main/examples">
+ Examples
+ </a>
+ </li>
+</ul>
+<p aria-level="2" class="caption" role="heading">
+ <span class="caption-text">
+ USER GUIDE
+ </span>
+</p>
+<ul class="nav bd-sidenav">
+ <li class="toctree-l1">
+ <a class="reference internal" href="../../../user-guide/introduction.html">
+ Introduction
+ </a>
+ </li>
+ <li class="toctree-l1">
+ <a class="reference internal" href="../../../user-guide/basics.html">
+ Concepts
+ </a>
+ </li>
+ <li class="toctree-l1">
+ <a class="reference internal" href="../../../user-guide/configuration.html">
+ Configuration
+ </a>
+ </li>
+ <li class="toctree-l1 has-children">
+ <a class="reference internal" href="../../../user-guide/common-operations/index.html">
+ Common Operations
+ </a>
+ <input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"/>
+ <label for="toctree-checkbox-1">
+ <i class="fas fa-chevron-down">
+ </i>
+ </label>
+ <ul>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/common-operations/basic-info.html">
+ Basic Operations
+ </a>
+ </li>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/common-operations/select-and-filter.html">
+ Column Selections
+ </a>
+ </li>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/common-operations/expressions.html">
+ Expressions
+ </a>
+ </li>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/common-operations/joins.html">
+ Joins
+ </a>
+ </li>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/common-operations/functions.html">
+ Functions
+ </a>
+ </li>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/common-operations/aggregations.html">
+ Aggregation
+ </a>
+ </li>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/common-operations/windows.html">
+ Window Functions
+ </a>
+ </li>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/common-operations/udf-and-udfa.html">
+ User Defined Functions
+ </a>
+ </li>
+ </ul>
+ </li>
+ <li class="toctree-l1 has-children">
+ <a class="reference internal" href="../../../user-guide/io/index.html">
+ IO
+ </a>
+ <input class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" type="checkbox"/>
+ <label for="toctree-checkbox-2">
+ <i class="fas fa-chevron-down">
+ </i>
+ </label>
+ <ul>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/io/csv.html">
+ CSV
+ </a>
+ </li>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/io/parquet.html">
+ Parquet
+ </a>
+ </li>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/io/json.html">
+ JSON
+ </a>
+ </li>
+ <li class="toctree-l2">
+ <a class="reference internal" href="../../../user-guide/io/avro.html">
+ Avro
+ </a>
+ </li>
+ </ul>
+ </li>
+ <li class="toctree-l1">
+ <a class="reference internal" href="../../../user-guide/sql.html">
+ SQL
+ </a>
+ </li>
+</ul>
+<p aria-level="2" class="caption" role="heading">
+ <span class="caption-text">
+ CONTRIBUTOR GUIDE
+ </span>
+</p>
+<ul class="nav bd-sidenav">
+ <li class="toctree-l1">
+ <a class="reference internal" href="../../../contributor-guide/introduction.html">
+ Introduction
+ </a>
+ </li>
+</ul>
+<p aria-level="2" class="caption" role="heading">
+ <span class="caption-text">
+ API
+ </span>
+</p>
+<ul class="current nav bd-sidenav">
+ <li class="toctree-l1 current active has-children">
+ <a class="reference internal" href="../../index.html">
+ API Reference
+ </a>
+ <input checked="" class="toctree-checkbox" id="toctree-checkbox-3" name="toctree-checkbox-3" type="checkbox"/>
+ <label for="toctree-checkbox-3">
+ <i class="fas fa-chevron-down">
+ </i>
+ </label>
+ <ul class="current">
+ <li class="toctree-l2 current active has-children">
+ <a class="reference internal" href="../index.html">
+ datafusion
+ </a>
+ <input checked="" class="toctree-checkbox" id="toctree-checkbox-4" name="toctree-checkbox-4" type="checkbox"/>
+ <label for="toctree-checkbox-4">
+ <i class="fas fa-chevron-down">
+ </i>
+ </label>
+ <ul class="current">
+ <li class="toctree-l3 has-children">
+ <a class="reference internal" href="../input/index.html">
+ datafusion.input
+ </a>
+ <input class="toctree-checkbox" id="toctree-checkbox-5" name="toctree-checkbox-5" type="checkbox"/>
+ <label for="toctree-checkbox-5">
+ <i class="fas fa-chevron-down">
+ </i>
+ </label>
+ <ul>
+ <li class="toctree-l4">
+ <a class="reference internal" href="../input/base/index.html">
+ datafusion.input.base
+ </a>
+ </li>
+ <li class="toctree-l4">
+ <a class="reference internal" href="../input/location/index.html">
+ datafusion.input.location
+ </a>
+ </li>
+ </ul>
+ </li>
+ <li class="toctree-l3">
+ <a class="reference internal" href="../catalog/index.html">
+ datafusion.catalog
+ </a>
+ </li>
+ <li class="toctree-l3 current active">
+ <a class="current reference internal" href="#">
+ datafusion.context
+ </a>
+ </li>
+ <li class="toctree-l3">
+ <a class="reference internal" href="../dataframe/index.html">
+ datafusion.dataframe
+ </a>
+ </li>
+ <li class="toctree-l3">
+ <a class="reference internal" href="../expr/index.html">
+ datafusion.expr
+ </a>
+ </li>
+ <li class="toctree-l3">
+ <a class="reference internal" href="../functions/index.html">
+ datafusion.functions
+ </a>
+ </li>
+ <li class="toctree-l3">
+ <a class="reference internal" href="../object_store/index.html">
+ datafusion.object_store
+ </a>
+ </li>
+ <li class="toctree-l3">
+ <a class="reference internal" href="../record_batch/index.html">
+ datafusion.record_batch
+ </a>
+ </li>
+ <li class="toctree-l3">
+ <a class="reference internal" href="../substrait/index.html">
+ datafusion.substrait
+ </a>
+ </li>
+ <li class="toctree-l3">
+ <a class="reference internal" href="../udf/index.html">
+ datafusion.udf
+ </a>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+</ul>
+
+
+ </div>
+</nav>
+ </div>
+ <div class="sidebar-end-items">
+ </div>
+ </div>
+
+
+
+
+ <div class="d-none d-xl-block col-xl-2 bd-toc">
+
+
+ <div class="toc-item">
+
+<div class="tocsection onthispage pt-5 pb-3">
+ <i class="fas fa-list"></i> On this page
+</div>
+
+<nav id="bd-toc-nav">
+ <ul class="visible nav section-nav flex-column">
+ <li class="toc-h2 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#classes">
+ Classes
+ </a>
+ </li>
+ <li class="toc-h2 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#module-contents">
+ Module Contents
+ </a>
+ <ul class="visible nav section-nav flex-column">
+ <li class="toc-h3 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.RuntimeConfig">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ RuntimeConfig
+ </span>
+ </code>
+ </a>
+ <ul class="nav section-nav flex-column">
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.RuntimeConfig.with_disk_manager_disabled">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ RuntimeConfig.with_disk_manager_disabled()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.RuntimeConfig.with_disk_manager_os">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ RuntimeConfig.with_disk_manager_os()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.RuntimeConfig.with_disk_manager_specified">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ RuntimeConfig.with_disk_manager_specified()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.RuntimeConfig.with_fair_spill_pool">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ RuntimeConfig.with_fair_spill_pool()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.RuntimeConfig.with_greedy_memory_pool">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ RuntimeConfig.with_greedy_memory_pool()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.RuntimeConfig.with_temp_file_path">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ RuntimeConfig.with_temp_file_path()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.RuntimeConfig.with_unbounded_memory_pool">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ RuntimeConfig.with_unbounded_memory_pool()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.RuntimeConfig.config_internal">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ RuntimeConfig.config_internal
+ </span>
+ </code>
+ </a>
+ </li>
+ </ul>
+ </li>
+ <li class="toc-h3 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SQLOptions">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SQLOptions
+ </span>
+ </code>
+ </a>
+ <ul class="nav section-nav flex-column">
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SQLOptions.with_allow_ddl">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SQLOptions.with_allow_ddl()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SQLOptions.with_allow_dml">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SQLOptions.with_allow_dml()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SQLOptions.with_allow_statements">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SQLOptions.with_allow_statements()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SQLOptions.options_internal">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SQLOptions.options_internal
+ </span>
+ </code>
+ </a>
+ </li>
+ </ul>
+ </li>
+ <li class="toc-h3 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionConfig">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionConfig
+ </span>
+ </code>
+ </a>
+ <ul class="nav section-nav flex-column">
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionConfig.set">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionConfig.set()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionConfig.with_batch_size">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionConfig.with_batch_size()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionConfig.with_create_default_catalog_and_schema">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionConfig.with_create_default_catalog_and_schema()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionConfig.with_default_catalog_and_schema">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionConfig.with_default_catalog_and_schema()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionConfig.with_information_schema">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionConfig.with_information_schema()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionConfig.with_parquet_pruning">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionConfig.with_parquet_pruning()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionConfig.with_repartition_aggregations">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionConfig.with_repartition_aggregations()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionConfig.with_repartition_file_min_size">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionConfig.with_repartition_file_min_size()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionConfig.with_repartition_file_scans">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionConfig.with_repartition_file_scans()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionConfig.with_repartition_joins">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionConfig.with_repartition_joins()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionConfig.with_repartition_sorts">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionConfig.with_repartition_sorts()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionConfig.with_repartition_windows">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionConfig.with_repartition_windows()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionConfig.with_target_partitions">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionConfig.with_target_partitions()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionConfig.config_internal">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionConfig.config_internal
+ </span>
+ </code>
+ </a>
+ </li>
+ </ul>
+ </li>
+ <li class="toc-h3 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext
+ </span>
+ </code>
+ </a>
+ <ul class="nav section-nav flex-column">
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.catalog">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.catalog()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.create_dataframe">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.create_dataframe()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.create_dataframe_from_logical_plan">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.create_dataframe_from_logical_plan()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.deregister_table">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.deregister_table()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.empty_table">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.empty_table()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.execute">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.execute()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.from_arrow_table">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.from_arrow_table()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.from_pandas">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.from_pandas()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.from_polars">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.from_polars()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.from_pydict">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.from_pydict()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.from_pylist">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.from_pylist()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.read_avro">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.read_avro()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.read_csv">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.read_csv()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.read_json">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.read_json()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.read_parquet">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.read_parquet()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.read_table">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.read_table()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.register_avro">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.register_avro()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.register_csv">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.register_csv()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.register_dataset">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.register_dataset()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.register_json">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.register_json()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.register_listing_table">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.register_listing_table()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.register_object_store">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.register_object_store()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.register_parquet">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.register_parquet()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.register_record_batches">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.register_record_batches()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.register_table">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.register_table()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.register_udaf">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.register_udaf()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.register_udf">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.register_udf()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.session_id">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.session_id()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.sql">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.sql()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.sql_with_options">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.sql_with_options()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.table">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.table()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.table_exist">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.table_exist()
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.config">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.config
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.ctx">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.ctx
+ </span>
+ </code>
+ </a>
+ </li>
+ <li class="toc-h4 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#datafusion.context.SessionContext.runtime">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ SessionContext.runtime
+ </span>
+ </code>
+ </a>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+</ul>
+
+</nav>
+ </div>
+
+ <div class="toc-item">
+
+ </div>
+
+
+ </div>
+
+
+
+
+
+
+ <main class="col-12 col-md-9 col-xl-7 py-md-5 pl-md-5 pr-md-4 bd-content" role="main">
+
+ <div>
+
+ <section id="module-datafusion.context">
+<span id="datafusion-context"></span><h1>datafusion.context<a class="headerlink" href="#module-datafusion.context" title="Link to this heading">¶</a></h1>
+<p>Session Context and it’s associated configuration.</p>
+<section id="classes">
+<h2>Classes<a class="headerlink" href="#classes" title="Link to this heading">¶</a></h2>
+<table class="autosummary longtable table autosummary">
+<tbody>
+<tr class="row-odd"><td><p><a class="reference internal" href="#datafusion.context.RuntimeConfig" title="datafusion.context.RuntimeConfig"><code class="xref py py-obj docutils literal notranslate"><span class="pre">RuntimeConfig</span></code></a></p></td>
+<td><p>Runtime configuration options.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#datafusion.context.SQLOptions" title="datafusion.context.SQLOptions"><code class="xref py py-obj docutils literal notranslate"><span class="pre">SQLOptions</span></code></a></p></td>
+<td><p>Options to be used when performing SQL queries.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#datafusion.context.SessionConfig" title="datafusion.context.SessionConfig"><code class="xref py py-obj docutils literal notranslate"><span class="pre">SessionConfig</span></code></a></p></td>
+<td><p>Session configuration options.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#datafusion.context.SessionContext" title="datafusion.context.SessionContext"><code class="xref py py-obj docutils literal notranslate"><span class="pre">SessionContext</span></code></a></p></td>
+<td><p>This is the main interface for executing queries and creating DataFrames.</p></td>
+</tr>
+</tbody>
+</table>
+</section>
+<section id="module-contents">
+<h2>Module Contents<a class="headerlink" href="#module-contents" title="Link to this heading">¶</a></h2>
+<dl class="py class">
+<dt class="sig sig-object py" id="datafusion.context.RuntimeConfig">
+<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">datafusion.context.</span></span><span class="sig-name descname"><span class="pre">RuntimeConfig</span></span><a class="headerlink" href="#datafusion.context.RuntimeConfig" title="Link to this definition">¶</a></dt>
+<dd><p>Runtime configuration options.</p>
+<p>Create a new <a class="reference internal" href="#datafusion.context.RuntimeConfig" title="datafusion.context.RuntimeConfig"><code class="xref py py-class docutils literal notranslate"><span class="pre">RuntimeConfig</span></code></a> with default values.</p>
+<dl class="py method">
+<dt class="sig sig-object py" id="datafusion.context.RuntimeConfig.with_disk_manager_disabled">
+<span class="sig-name descname"><span class="pre">with_disk_manager_disabled</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href="#datafusion.context.RuntimeConfig" title="datafusion.context.RuntimeConfig"><span class="pre">RuntimeConfig</span></a></span></span><a class="headerlink" href="#datafusion.context.RuntimeConfig.wi [...]
+<dd><p>Disable the disk manager, attempts to create temporary files will error.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Returns<span class="colon">:</span></dt>
+<dd class="field-odd"><p>A new <a class="reference internal" href="#datafusion.context.RuntimeConfig" title="datafusion.context.RuntimeConfig"><code class="xref py py-class docutils literal notranslate"><span class="pre">RuntimeConfig</span></code></a> object with the updated setting.</p>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="py method">
+<dt class="sig sig-object py" id="datafusion.context.RuntimeConfig.with_disk_manager_os">
+<span class="sig-name descname"><span class="pre">with_disk_manager_os</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href="#datafusion.context.RuntimeConfig" title="datafusion.context.RuntimeConfig"><span class="pre">RuntimeConfig</span></a></span></span><a class="headerlink" href="#datafusion.context.RuntimeConfig.with_dis [...]
+<dd><p>Use the operating system’s temporary directory for disk manager.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Returns<span class="colon">:</span></dt>
+<dd class="field-odd"><p>A new <a class="reference internal" href="#datafusion.context.RuntimeConfig" title="datafusion.context.RuntimeConfig"><code class="xref py py-class docutils literal notranslate"><span class="pre">RuntimeConfig</span></code></a> object with the updated setting.</p>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="py method">
+<dt class="sig sig-object py" id="datafusion.context.RuntimeConfig.with_disk_manager_specified">
+<span class="sig-name descname"><span class="pre">with_disk_manager_specified</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span><span class="n"><span class="pre">paths</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">pathlib.Path< [...]
+<dd><p>Use the specified paths for the disk manager’s temporary files.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><p><strong>paths</strong> – Paths to use for the disk manager’s temporary files.</p>
+</dd>
+<dt class="field-even">Returns<span class="colon">:</span></dt>
+<dd class="field-even"><p>A new <a class="reference internal" href="#datafusion.context.RuntimeConfig" title="datafusion.context.RuntimeConfig"><code class="xref py py-class docutils literal notranslate"><span class="pre">RuntimeConfig</span></code></a> object with the updated setting.</p>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="py method">
+<dt class="sig sig-object py" id="datafusion.context.RuntimeConfig.with_fair_spill_pool">
+<span class="sig-name descname"><span class="pre">with_fair_spill_pool</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href= [...]
+<dd><p>Use a fair spill pool with the specified size.</p>
+<p>This pool works best when you know beforehand the query has multiple spillable
+operators that will likely all need to spill. Sometimes it will cause spills
+even when there was sufficient memory (reserved for other operators) to avoid
+doing so:</p>
+<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>┌───────────────────────z──────────────────────z───────────────┐
+│ z z │
+│ z z │
+│ Spillable z Unspillable z Free │
+│ Memory z Memory z Memory │
+│ z z │
+│ z z │
+└───────────────────────z──────────────────────z───────────────┘
+</pre></div>
+</div>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><p><strong>size</strong> – Size of the memory pool in bytes.</p>
+</dd>
+<dt class="field-even">Returns<span class="colon">:</span></dt>
+<dd class="field-even"><p>A new <a class="reference internal" href="#datafusion.context.RuntimeConfig" title="datafusion.context.RuntimeConfig"><code class="xref py py-class docutils literal notranslate"><span class="pre">RuntimeConfig</span></code></a> object with the updated setting.</p>
+</dd>
+</dl>
+<p>Examples usage:</p>
+<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">config</span> <span class="o">=</span> <span class="n">RuntimeConfig</span><span class="p">()</span><span class="o">.</span><span class="n">with_fair_spill_pool</span><span class="p">(</span><span class="mi">1024</span><span class="p">)</span>
+</pre></div>
+</div>
+</dd></dl>
+
+<dl class="py method">
+<dt class="sig sig-object py" id="datafusion.context.RuntimeConfig.with_greedy_memory_pool">
+<span class="sig-name descname"><span class="pre">with_greedy_memory_pool</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" hr [...]
+<dd><p>Use a greedy memory pool with the specified size.</p>
+<p>This pool works well for queries that do not need to spill or have a single
+spillable operator. See <a class="reference internal" href="#datafusion.context.RuntimeConfig.with_fair_spill_pool" title="datafusion.context.RuntimeConfig.with_fair_spill_pool"><code class="xref py py-func docutils literal notranslate"><span class="pre">with_fair_spill_pool()</span></code></a> if there are
+multiple spillable operators that all will spill.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><p><strong>size</strong> – Size of the memory pool in bytes.</p>
+</dd>
+<dt class="field-even">Returns<span class="colon">:</span></dt>
+<dd class="field-even"><p>A new <a class="reference internal" href="#datafusion.context.RuntimeConfig" title="datafusion.context.RuntimeConfig"><code class="xref py py-class docutils literal notranslate"><span class="pre">RuntimeConfig</span></code></a> object with the updated setting.</p>
+</dd>
+</dl>
+<p>Example usage:</p>
+<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">config</span> <span class="o">=</span> <span class="n">RuntimeConfig</span><span class="p">()</span><span class="o">.</span><span class="n">with_greedy_memory_pool</span><span class="p">(</span><span class="mi">1024</span><span class="p">)</span>
+</pre></div>
+</div>
+</dd></dl>
+
+<dl class="py method">
+<dt class="sig sig-object py" id="datafusion.context.RuntimeConfig.with_temp_file_path">
+<span class="sig-name descname"><span class="pre">with_temp_file_path</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">path</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">pathlib.Path</span></span></em><span class="sig-paren">)</span> <span c [...]
+<dd><p>Use the specified path to create any needed temporary files.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><p><strong>path</strong> – Path to use for temporary files.</p>
+</dd>
+<dt class="field-even">Returns<span class="colon">:</span></dt>
+<dd class="field-even"><p>A new <a class="reference internal" href="#datafusion.context.RuntimeConfig" title="datafusion.context.RuntimeConfig"><code class="xref py py-class docutils literal notranslate"><span class="pre">RuntimeConfig</span></code></a> object with the updated setting.</p>
+</dd>
+</dl>
+<p>Example usage:</p>
+<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">config</span> <span class="o">=</span> <span class="n">RuntimeConfig</span><span class="p">()</span><span class="o">.</span><span class="n">with_temp_file_path</span><span class="p">(</span><span class="s2">"/tmp"</span><span class="p">)</span>
+</pre></div>
+</div>
+</dd></dl>
+
+<dl class="py method">
+<dt class="sig sig-object py" id="datafusion.context.RuntimeConfig.with_unbounded_memory_pool">
+<span class="sig-name descname"><span class="pre">with_unbounded_memory_pool</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href="#datafusion.context.RuntimeConfig" title="datafusion.context.RuntimeConfig"><span class="pre">RuntimeConfig</span></a></span></span><a class="headerlink" href="#datafusion.context.RuntimeConfig.wi [...]
+<dd><p>Use an unbounded memory pool.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Returns<span class="colon">:</span></dt>
+<dd class="field-odd"><p>A new <a class="reference internal" href="#datafusion.context.RuntimeConfig" title="datafusion.context.RuntimeConfig"><code class="xref py py-class docutils literal notranslate"><span class="pre">RuntimeConfig</span></code></a> object with the updated setting.</p>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="py attribute">
+<dt class="sig sig-object py" id="datafusion.context.RuntimeConfig.config_internal">
+<span class="sig-name descname"><span class="pre">config_internal</span></span><a class="headerlink" href="#datafusion.context.RuntimeConfig.config_internal" title="Link to this definition">¶</a></dt>
+<dd></dd></dl>
+
+</dd></dl>
+
+<dl class="py class">
+<dt class="sig sig-object py" id="datafusion.context.SQLOptions">
+<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">datafusion.context.</span></span><span class="sig-name descname"><span class="pre">SQLOptions</span></span><a class="headerlink" href="#datafusion.context.SQLOptions" title="Link to this definition">¶</a></dt>
+<dd><p>Options to be used when performing SQL queries.</p>
+<p>Create a new <a class="reference internal" href="#datafusion.context.SQLOptions" title="datafusion.context.SQLOptions"><code class="xref py py-class docutils literal notranslate"><span class="pre">SQLOptions</span></code></a> with default values.</p>
+<p>The default values are:
+- DDL commands are allowed
+- DML commands are allowed
+- Statements are allowed</p>
+<dl class="py method">
+<dt class="sig sig-object py" id="datafusion.context.SQLOptions.with_allow_ddl">
+<span class="sig-name descname"><span class="pre">with_allow_ddl</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">allow</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig [...]
+<dd><p>Should DDL (Data Definition Language) commands be run?</p>
+<p>Examples of DDL commands include <code class="docutils literal notranslate"><span class="pre">CREATE</span> <span class="pre">TABLE</span></code> and <code class="docutils literal notranslate"><span class="pre">DROP</span> <span class="pre">TABLE</span></code>.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><p><strong>allow</strong> – Allow DDL commands to be run.</p>
+</dd>
+<dt class="field-even">Returns<span class="colon">:</span></dt>
+<dd class="field-even"><p>A new <a class="reference internal" href="#datafusion.context.SQLOptions" title="datafusion.context.SQLOptions"><code class="xref py py-class docutils literal notranslate"><span class="pre">SQLOptions</span></code></a> object with the updated setting.</p>
+</dd>
+</dl>
+<p>Example usage:</p>
+<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">options</span> <span class="o">=</span> <span class="n">SQLOptions</span><span class="p">()</span><span class="o">.</span><span class="n">with_allow_ddl</span><span class="p">(</span><span class="kc">True</span><span class="p">)</span>
+</pre></div>
+</div>
+</dd></dl>
+
+<dl class="py method">
+<dt class="sig sig-object py" id="datafusion.context.SQLOptions.with_allow_dml">
+<span class="sig-name descname"><span class="pre">with_allow_dml</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">allow</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig [...]
+<dd><p>Should DML (Data Manipulation Language) commands be run?</p>
+<p>Examples of DML commands include <code class="docutils literal notranslate"><span class="pre">INSERT</span> <span class="pre">INTO</span></code> and <code class="docutils literal notranslate"><span class="pre">DELETE</span></code>.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><p><strong>allow</strong> – Allow DML commands to be run.</p>
+</dd>
+<dt class="field-even">Returns<span class="colon">:</span></dt>
+<dd class="field-even"><p>A new <a class="reference internal" href="#datafusion.context.SQLOptions" title="datafusion.context.SQLOptions"><code class="xref py py-class docutils literal notranslate"><span class="pre">SQLOptions</span></code></a> object with the updated setting.</p>
+</dd>
+</dl>
+<p>Example usage:</p>
+<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">options</span> <span class="o">=</span> <span class="n">SQLOptions</span><span class="p">()</span><span class="o">.</span><span class="n">with_allow_dml</span><span class="p">(</span><span class="kc">True</span><span class="p">)</span>
+</pre></div>
+</div>
+</dd></dl>
+
+<dl class="py method">
+<dt class="sig sig-object py" id="datafusion.context.SQLOptions.with_allow_statements">
+<span class="sig-name descname"><span class="pre">with_allow_statements</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">allow</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span cla [...]
+<dd><p>Should statements such as <code class="docutils literal notranslate"><span class="pre">SET</span> <span class="pre">VARIABLE</span></code> and <code class="docutils literal notranslate"><span class="pre">BEGIN</span> <span class="pre">TRANSACTION</span></code> be run?</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><p><strong>allow</strong> – Allow statements to be run.</p>
+</dd>
+<dt class="field-even">Returns<span class="colon">:</span></dt>
+<dd class="field-even"><p>py:class:SQLOptions` object with the updated setting.</p>
+</dd>
+<dt class="field-odd">Return type<span class="colon">:</span></dt>
+<dd class="field-odd"><p>A new</p>
+</dd>
+</dl>
+<p>Example usage:</p>
+<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">options</span> <span class="o">=</span> <span class="n">SQLOptions</span><span class="p">()</span><span class="o">.</span><span class="n">with_allow_statements</span><span class="p">(</span><span class="kc">True</span><span class="p">)</span>
+</pre></div>
+</div>
+</dd></dl>
+
+<dl class="py attribute">
+<dt class="sig sig-object py" id="datafusion.context.SQLOptions.options_internal">
+<span class="sig-name descname"><span class="pre">options_internal</span></span><a class="headerlink" href="#datafusion.context.SQLOptions.options_internal" title="Link to this definition">¶</a></dt>
+<dd></dd></dl>
+
+</dd></dl>
+
+<dl class="py class">
+<dt class="sig sig-object py" id="datafusion.context.SessionConfig">
+<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">datafusion.context.</span></span><span class="sig-name descname"><span class="pre">SessionConfig</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">config_options</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">dict</span><span clas [...]
+<dd><p>Session configuration options.</p>
+<p>Create a new <a class="reference internal" href="#datafusion.context.SessionConfig" title="datafusion.context.SessionConfig"><code class="xref py py-class docutils literal notranslate"><span class="pre">SessionConfig</span></code></a> with the given configuration options.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><p><strong>config_options</strong> – Configuration options.</p>
+</dd>
+</dl>
+<dl class="py method">
+<dt class="sig sig-object py" id="datafusion.context.SessionConfig.set">
+<span class="sig-name descname"><span class="pre">set</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">key</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">value</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</sp [...]
+<dd><p>Set a configuration option.</p>
+<p>Args:
+key: Option key.
+value: Option value.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Returns<span class="colon">:</span></dt>
+<dd class="field-odd"><p>A new <a class="reference internal" href="#datafusion.context.SessionConfig" title="datafusion.context.SessionConfig"><code class="xref py py-class docutils literal notranslate"><span class="pre">SessionConfig</span></code></a> object with the updated setting.</p>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="py method">
+<dt class="sig sig-object py" id="datafusion.context.SessionConfig.with_batch_size">
+<span class="sig-name descname"><span class="pre">with_batch_size</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">batch_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href [...]
+<dd><p>Customize batch size.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><p><strong>batch_size</strong> – Batch size.</p>
+</dd>
+<dt class="field-even">Returns<span class="colon">:</span></dt>
+<dd class="field-even"><p>A new <a class="reference internal" href="#datafusion.context.SessionConfig" title="datafusion.context.SessionConfig"><code class="xref py py-class docutils literal notranslate"><span class="pre">SessionConfig</span></code></a> object with the updated setting.</p>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="py method">
+<dt class="sig sig-object py" id="datafusion.context.SessionConfig.with_create_default_catalog_and_schema">
+<span class="sig-name descname"><span class="pre">with_create_default_catalog_and_schema</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">enabled</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></ [...]
+<dd><p>Control if the default catalog and schema will be automatically created.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters<span class="colon">:</span></dt>
+<dd class="field-odd"><p><strong>enabled</strong> – Whether the default catalog and schema will be
+automatically created.</p>
+</dd>
+<dt class="field-even">Returns<span class="colon">:</span></dt>
+<dd class="field-even"><p>A new <a class="reference internal" href="#datafusion.context.SessionConfig" title="datafusion.context.SessionConfig"><code class="xref py py-class docutils literal notranslate"><span class="pre">SessionConfig</span></code></a> object with the updated setting.</p>
+</dd>
+</dl>
... 31594 lines suppressed ...
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org