Skip to content

Commit da5e4b5

Browse files
Manul from Pathwayembe-pwjanchorowskiXGendredxtrous
committed
Release 0.5.0
Co-authored-by: Michał Bartoszkiewicz <embe@pathway.com> Co-authored-by: Jan Chorowski <janek@pathway.com> Co-authored-by: Xavier Gendre <xavier@pathway.com> Co-authored-by: Adrian Kosowski <adrian@pathway.com> Co-authored-by: Jakub Kowalski <kuba@pathway.com> Co-authored-by: Sergey Kulik <sergey@pathway.com> Co-authored-by: Mateusz Lewandowski <mateusz@pathway.com> Co-authored-by: Mohamed Malhou <mohamed@pathway.com> Co-authored-by: Krzysztof Nowicki <krzysiek@pathway.com> Co-authored-by: Richard Pelgrim <richard.pelgrim@pathway.com> Co-authored-by: Kamil Piechowiak <kamil@pathway.com> Co-authored-by: Paweł Podhajski <pawel.podhajski@pathway.com> Co-authored-by: Olivier Ruas <olivier@pathway.com> Co-authored-by: Przemysław Uznański <przemek@pathway.com> Co-authored-by: Sebastian Włudzik <sebastian.wludzik@pathway.com> GitOrigin-RevId: f84bb429efb65b7b7a8612921a8c58f8c0f6f7e3
1 parent d2b6d79 commit da5e4b5

File tree

172 files changed

+10312
-4274
lines changed

Some content is hidden

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

172 files changed

+10312
-4274
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ jobs:
6262
rm -f LICENSE_*-LICENSE-*
6363
for filename in library_licenses/*; do cp "$filename" "LICENSE_$(basename "${filename}")"; done;
6464
65+
- name: Set package version
66+
id: set-version
67+
run: |
68+
PACKAGE_VERSION=$(perl -nle 'print $& while m{^version[[:space:]]*=[[:space:]]"\K[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+(?=")}g' Cargo.toml)
69+
[[ -z "$PACKAGE_VERSION" ]] && { echo "Malformed package version in Cargo.toml" ; exit 1; }
70+
71+
echo $PACKAGE_VERSION
72+
echo "__version__ = \"${PACKAGE_VERSION}\"" > python/pathway/internals/version.py
73+
6574
- name: Build package Ubuntu x86-x64
6675
if: ${{ matrix.os == 'ubuntu-22.04'}}
6776
uses: PyO3/maturin-action@v1
@@ -147,7 +156,7 @@ jobs:
147156

148157
- name: Create dir for wheels
149158
run: |
150-
mkdir wheels
159+
mkdir -p wheels
151160
152161
- uses: actions/download-artifact@master
153162
with:
@@ -183,7 +192,7 @@ jobs:
183192
steps:
184193
- name: Create dir for wheels
185194
run: |
186-
mkdir wheels
195+
mkdir -p wheels
187196
188197
- uses: actions/download-artifact@master
189198
if: ${{ matrix.os == 'ec2-macOS' }}
@@ -200,13 +209,12 @@ jobs:
200209
- name: Install and verify ${{ matrix.os }} package
201210
run: |
202211
set -ex
203-
# Pathway http monitoring set port
204-
source .github/workflows/bash_scripts/PATHWAY_MONITORING_HTTP_PORT.sh
205212
ENV_NAME="testenv_${{ matrix.python-version }}"
206213
rm -rf "${ENV_NAME}"
207214
python"${{ matrix.python-version }}" -m venv "${ENV_NAME}"
208215
source "${ENV_NAME}/bin/activate"
209216
WHEEL=(./wheels/pathway-*.whl)
217+
PATHWAY_MONITORING_HTTP_PORT=20099
210218
pip install --prefer-binary "${WHEEL}[tests]"
211219
# --confcutdir anything below to avoid picking REPO_TOP_DIR/conftest.py
212220
python -m pytest --confcutdir "${ENV_NAME}" --doctest-modules --pyargs pathway
@@ -241,7 +249,7 @@ jobs:
241249

242250
- name: Create dir for wheels
243251
run: |
244-
mkdir wheels
252+
mkdir -p wheels
245253
246254
- uses: actions/download-artifact@master
247255
with:

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,30 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77
## [Unreleased]
88

9+
## [0.5.0] - 2023-10-04
10+
11+
### Added
12+
- `Schema` method `typehints` that returns dict of mypy-compatible typehints.
13+
14+
### Changed
15+
- **BREAKING**: renamed `Table` method `dtypes` to `typehints`. It now returns a `dict` of mypy-compatible typehints.
16+
- **BREAKING**: `Schema.__getitem__` returns a data class `ColumnSchema` containing all related information on particular column.
17+
18+
### Added
19+
- Support for JSON parsing from CSV sources.
20+
- `restrict` method in `Table` to restrict table universe to the universe of the other table.
21+
- Better support for postgresql types in the output connector.
22+
23+
### Changed
24+
- **BREAKING**: `tuple` reducer used after intervals_over window now sorts values by time.
25+
- **BREAKING**: expressions used in `select`, `filter`, `flatten`, `with_columns`, `with_id`, `with_id_from` have to have the same universe as the table. Earlier it was possible to use an expression from a superset of a table universe. To use expressions from wider universes, one can use `restrict` on the expression source table.
26+
- **BREAKING**: `pw.universes.promise_are_equal(t1, t2)` no longer allows to use references from `t1` and `t2` in a single expression. To change the universe of a table, use `with_universe_of`.
27+
- **BREAKING**: `ix` and `ix_ref` are temporarily broken inside joins (both temporal and ordinary).
28+
- `select`, `filter`, `concat` keep columns as a single stream. The work for other operators is ongoing.
29+
30+
### Fixed
31+
- Optional types other than string correctly output to PostgreSQL.
32+
933
## [0.4.1] - 2023-09-25
1034

1135
### Added
@@ -16,6 +40,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1640
### Added
1741
- Support for JSON data format, including `pw.Json` type.
1842
- Methods `as_int()`, `as_float()`, `as_str()`, `as_bool()` to convert values from `Json`.
43+
- New argument `skip_nones` for `tuple` and `sorted_tuple` reducers.
44+
- New argument `is_outer` for `intervals_over` window.
45+
- `pw.schema_from_dict` and `pw.schema_from_csv` for generating schema based, respectively, on provided definition as a dictionary and CSV file with sample data.
46+
- `generate_class` method in `Schema` class for generating schema class code.
1947

2048
### Changed
2149
- Method `get()` and `[]` to support accessing elements in Jsons.

0 commit comments

Comments
 (0)