Skip to content

Commit

Permalink
Chore: Release datafusion-python 45 (#1024)
Browse files Browse the repository at this point in the history
* Bump version number to prepare for release

* Add changelog 45.0.0

* Add deprecated marker from either typing or typing_extensions based on the python version

* Limit pyarrow version per issue # 1023

* Bumping the version number to support new release candidate

* There was no guarantee that the record batches would be returned in a single partition, so update the unit test to check all partitions.

* Revert "Limit pyarrow version per issue # 1023"

This reverts commit b48d587.

* Correct import for python 3.13 and above

* Bump minor version due to pypi requirement

* Update cargo lock
  • Loading branch information
timsaucer authored Feb 24, 2025
1 parent 3f3983c commit 69ebf70
Show file tree
Hide file tree
Showing 8 changed files with 118 additions and 81 deletions.
113 changes: 44 additions & 69 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

[package]
name = "datafusion-python"
version = "44.0.0"
version = "45.2.0"
homepage = "https://datafusion.apache.org/python"
repository = "https://github.com/apache/datafusion-python"
authors = ["Apache DataFusion <[email protected]>"]
Expand Down
42 changes: 42 additions & 0 deletions dev/changelog/45.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!--
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.
-->

# Apache DataFusion Python 45.0.0 Changelog

This release consists of 2 commits from 2 contributors. See credits at the end of this changelog for more information.

**Fixed bugs:**

- fix: add to_timestamp_nanos [#1020](https://github.com/apache/datafusion-python/pull/1020) (chenkovsky)

**Other:**

- Chore/upgrade datafusion 45 [#1010](https://github.com/apache/datafusion-python/pull/1010) (kevinjqliu)

## Credits

Thank you to everyone who contributed to this release. Here is a breakdown of commits (PRs merged) per contributor.

```
1 Kevin Liu
1 Tim Saucer
```

Thank you also to everyone who contributed in other ways such as filing issues, reviewing PRs, and providing feedback on this release.

5 changes: 4 additions & 1 deletion python/datafusion/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@

from typing import TYPE_CHECKING, Any, Protocol

from typing_extensions import deprecated
try:
from warnings import deprecated # Python 3.13+
except ImportError:
from typing_extensions import deprecated # Python 3.12

from datafusion.catalog import Catalog, Table
from datafusion.dataframe import DataFrame
Expand Down
5 changes: 4 additions & 1 deletion python/datafusion/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
overload,
)

from typing_extensions import deprecated
try:
from warnings import deprecated # Python 3.13+
except ImportError:
from typing_extensions import deprecated # Python 3.12

from datafusion.plan import ExecutionPlan, LogicalPlan
from datafusion.record_batch import RecordBatchStream
Expand Down
Loading

0 comments on commit 69ebf70

Please sign in to comment.