Skip to content

Commit efcdfd1

Browse files
Publish built docs triggered by 1aa9cb9
1 parent c1e3b00 commit efcdfd1

64 files changed

Lines changed: 4533 additions & 550 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

_sources/autoapi/datafusion/catalog/index.rst.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,18 @@ Module Contents
7373
This constructor is not typically called by the end user.
7474

7575

76-
.. py:method:: schema() -> pyarrow.Schema
76+
.. py:property:: kind
77+
:type: str
7778

78-
Returns the schema associated with this table.
7979

80+
Returns the kind of table.
8081

8182

82-
.. py:property:: kind
83-
:type: str
83+
.. py:property:: schema
84+
:type: pyarrow.Schema
8485

8586

86-
Returns the kind of table.
87+
Returns the schema associated with this table.
8788

8889

8990
.. py:attribute:: table

_sources/autoapi/datafusion/context/index.rst.txt

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ Module Contents
421421
422422
Create and return a dataframe using the provided partitions.
423423

424-
:param partitions: :py:class:`pyarrow.RecordBatch` partitions to register.
424+
:param partitions: :py:class:`pa.RecordBatch` partitions to register.
425425
:param name: Resultant dataframe name.
426426
:param schema: Schema for the partitions.
427427

@@ -534,6 +534,16 @@ Module Contents
534534

535535

536536

537+
.. py:method:: global_ctx() -> SessionContext
538+
:classmethod:
539+
540+
541+
Retrieve the global context as a `SessionContext` wrapper.
542+
543+
:returns: A `SessionContext` object that wraps the global `SessionContextInternal`.
544+
545+
546+
537547
.. 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
538548
539549
Create a :py:class:`DataFrame` for reading Avro data source.
@@ -586,7 +596,7 @@ Module Contents
586596

587597

588598

589-
.. 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
599+
.. 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 | datafusion.expr.SortExpr]] | None = None) -> datafusion.dataframe.DataFrame
590600
591601
Read a Parquet source into a :py:class:`~datafusion.dataframe.Dataframe`.
592602

@@ -657,7 +667,7 @@ Module Contents
657667

658668
.. py:method:: register_dataset(name: str, dataset: pyarrow.dataset.Dataset) -> None
659669
660-
Register a :py:class:`pyarrow.dataset.Dataset` as a table.
670+
Register a :py:class:`pa.dataset.Dataset` as a table.
661671

662672
:param name: Name of the table to register.
663673
:param dataset: PyArrow dataset.
@@ -710,7 +720,7 @@ Module Contents
710720

711721

712722

713-
.. 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
723+
.. 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.SortExpr]] | None = None) -> None
714724
715725
Register a Parquet file as a table.
716726

@@ -782,6 +792,17 @@ Module Contents
782792

783793

784794

795+
.. py:method:: register_view(name: str, df: datafusion.dataframe.DataFrame) -> None
796+
797+
Register a :py:class: `~datafusion.detaframe.DataFrame` as a view.
798+
799+
:param name: The name to register the view under.
800+
:type name: str
801+
:param df: The DataFrame to be converted into a view and registered.
802+
:type df: DataFrame
803+
804+
805+
785806
.. py:method:: session_id() -> str
786807
787808
Return an id that uniquely identifies this :py:class:`SessionContext`.

_sources/autoapi/datafusion/dataframe/index.rst.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Module Contents
115115

116116

117117

118-
.. py:method:: __getitem__(key: str | List[str]) -> DataFrame
118+
.. py:method:: __getitem__(key: str | list[str]) -> DataFrame
119119
120120
Return a new :py:class`DataFrame` with the specified column or columns.
121121

@@ -319,6 +319,12 @@ Module Contents
319319

320320

321321

322+
.. py:method:: into_view() -> pyarrow.Table
323+
324+
Convert DataFrame as a ViewTable which can be used in register_table.
325+
326+
327+
322328
.. py:method:: join(right: DataFrame, on: str | Sequence[str], how: Literal['inner', 'left', 'right', 'full', 'semi', 'anti'] = 'inner', *, left_on: None = None, right_on: None = None, join_keys: None = None) -> DataFrame
323329
join(right: DataFrame, on: None = None, how: Literal['inner', 'left', 'right', 'full', 'semi', 'anti'] = 'inner', *, left_on: str | Sequence[str], right_on: str | Sequence[str], join_keys: tuple[list[str], list[str]] | None = None) -> DataFrame
324330
join(right: DataFrame, on: None = None, how: Literal['inner', 'left', 'right', 'full', 'semi', 'anti'] = 'inner', *, join_keys: tuple[list[str], list[str]], left_on: None = None, right_on: None = None) -> DataFrame

_sources/autoapi/datafusion/expr/index.rst.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Module Contents
132132
.. py:attribute:: case_builder
133133
134134
135-
.. py:class:: Expr(expr: datafusion._internal.expr.Expr)
135+
.. py:class:: Expr(expr: datafusion._internal.expr.RawExpr)
136136
137137
Expression object.
138138

@@ -156,7 +156,7 @@ Module Contents
156156

157157

158158

159-
.. py:method:: __eq__(rhs: Any) -> Expr
159+
.. py:method:: __eq__(rhs: object) -> Expr
160160
161161
Equal to.
162162

@@ -228,7 +228,7 @@ Module Contents
228228

229229

230230

231-
.. py:method:: __ne__(rhs: Any) -> Expr
231+
.. py:method:: __ne__(rhs: object) -> Expr
232232
233233
Not equal to.
234234

@@ -292,7 +292,7 @@ Module Contents
292292

293293

294294

295-
.. py:method:: cast(to: pyarrow.DataType[Any] | Type[float] | Type[int] | Type[str] | Type[bool]) -> Expr
295+
.. py:method:: cast(to: pyarrow.DataType[Any] | type[float | int | str | bool]) -> Expr
296296
297297
Cast to a new data type.
298298

@@ -540,6 +540,7 @@ Module Contents
540540
541541
542542
.. py:attribute:: _to_pyarrow_types
543+
:type: ClassVar[dict[type, pyarrow.DataType]]
543544

544545

545546
.. py:attribute:: expr
@@ -638,7 +639,7 @@ Module Contents
638639

639640

640641

641-
.. py:method:: get_upper_bound()
642+
.. py:method:: get_upper_bound() -> WindowFrameBound
642643
643644
Returns end bound.
644645

_sources/autoapi/datafusion/functions/index.rst.txt

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ Functions
194194
datafusion.functions.random
195195
datafusion.functions.range
196196
datafusion.functions.rank
197+
datafusion.functions.regexp_count
197198
datafusion.functions.regexp_like
198199
datafusion.functions.regexp_match
199200
datafusion.functions.regexp_replace
@@ -240,6 +241,7 @@ Functions
240241
datafusion.functions.to_timestamp
241242
datafusion.functions.to_timestamp_micros
242243
datafusion.functions.to_timestamp_millis
244+
datafusion.functions.to_timestamp_nanos
243245
datafusion.functions.to_timestamp_seconds
244246
datafusion.functions.to_unixtime
245247
datafusion.functions.translate
@@ -935,7 +937,7 @@ Module Contents
935937
This is an alias for :py:func:`date_trunc`.
936938

937939

938-
.. py:function:: decode(input: datafusion.expr.Expr, encoding: datafusion.expr.Expr) -> datafusion.expr.Expr
940+
.. py:function:: decode(expr: datafusion.expr.Expr, encoding: datafusion.expr.Expr) -> datafusion.expr.Expr
939941
940942
Decode the ``input``, using the ``encoding``. encoding can be base64 or hex.
941943

@@ -979,7 +981,7 @@ Module Contents
979981
This is an alias for :py:func:`array_empty`.
980982

981983

982-
.. py:function:: encode(input: datafusion.expr.Expr, encoding: datafusion.expr.Expr) -> datafusion.expr.Expr
984+
.. py:function:: encode(expr: datafusion.expr.Expr, encoding: datafusion.expr.Expr) -> datafusion.expr.Expr
983985
984986
Encode the ``input``, using the ``encoding``. encoding can be base64 or hex.
985987

@@ -1655,6 +1657,14 @@ Module Contents
16551657
:param order_by: Set ordering within the window frame.
16561658

16571659

1660+
.. py:function:: regexp_count(string: datafusion.expr.Expr, pattern: datafusion.expr.Expr, start: datafusion.expr.Expr, flags: datafusion.expr.Expr | None = None) -> datafusion.expr.Expr
1661+
1662+
Returns the number of matches in a string.
1663+
1664+
Optional start position (the first position is 1) to search for the regular
1665+
expression.
1666+
1667+
16581668
.. py:function:: regexp_like(string: datafusion.expr.Expr, regex: datafusion.expr.Expr, flags: datafusion.expr.Expr | None = None) -> datafusion.expr.Expr
16591669
16601670
Find if any regular expression (regex) matches exist.
@@ -1837,7 +1847,7 @@ Module Contents
18371847
Returns the last ``n`` characters in the ``string``.
18381848

18391849

1840-
.. py:function:: round(value: datafusion.expr.Expr, decimal_places: datafusion.expr.Expr = Expr.literal(0)) -> datafusion.expr.Expr
1850+
.. py:function:: round(value: datafusion.expr.Expr, decimal_places: datafusion.expr.Expr | None = None) -> datafusion.expr.Expr
18411851
18421852
Round the argument to the nearest integer.
18431853

@@ -2058,6 +2068,13 @@ Module Contents
20582068
See :py:func:`to_timestamp` for a description on how to use formatters.
20592069

20602070

2071+
.. py:function:: to_timestamp_nanos(arg: datafusion.expr.Expr, *formatters: datafusion.expr.Expr) -> datafusion.expr.Expr
2072+
2073+
Converts a string and optional formats to a ``Timestamp`` in nanoseconds.
2074+
2075+
See :py:func:`to_timestamp` for a description on how to use formatters.
2076+
2077+
20612078
.. py:function:: to_timestamp_seconds(arg: datafusion.expr.Expr, *formatters: datafusion.expr.Expr) -> datafusion.expr.Expr
20622079
20632080
Converts a string and optional formats to a ``Timestamp`` in seconds.
@@ -2090,7 +2107,7 @@ Module Contents
20902107
Converts a string to uppercase.
20912108

20922109

2093-
.. py:function:: uuid(arg: datafusion.expr.Expr) -> datafusion.expr.Expr
2110+
.. py:function:: uuid() -> datafusion.expr.Expr
20942111
20952112
Returns uuid v4 as a string value.
20962113

0 commit comments

Comments
 (0)