interloper-sql 0.121.0__tar.gz → 0.122.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {interloper_sql-0.121.0 → interloper_sql-0.122.1}/PKG-INFO +1 -1
- {interloper_sql-0.121.0 → interloper_sql-0.122.1}/pyproject.toml +1 -1
- {interloper_sql-0.121.0 → interloper_sql-0.122.1}/pyproject.toml.orig +1 -1
- {interloper_sql-0.121.0 → interloper_sql-0.122.1}/src/interloper_sql/view/base.py +4 -0
- {interloper_sql-0.121.0 → interloper_sql-0.122.1}/README.md +0 -0
- {interloper_sql-0.121.0 → interloper_sql-0.122.1}/src/interloper_sql/__init__.py +0 -0
- {interloper_sql-0.121.0 → interloper_sql-0.122.1}/src/interloper_sql/connection.py +0 -0
- {interloper_sql-0.121.0 → interloper_sql-0.122.1}/src/interloper_sql/destination.py +0 -0
- {interloper_sql-0.121.0 → interloper_sql-0.122.1}/src/interloper_sql/types.py +0 -0
- {interloper_sql-0.121.0 → interloper_sql-0.122.1}/src/interloper_sql/view/__init__.py +0 -0
- {interloper_sql-0.121.0 → interloper_sql-0.122.1}/src/interloper_sql/view/decorator.py +0 -0
- {interloper_sql-0.121.0 → interloper_sql-0.122.1}/src/interloper_sql/view/timezone.py +0 -0
- {interloper_sql-0.121.0 → interloper_sql-0.122.1}/src/interloper_sql/view/types.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: interloper-sql
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.122.1
|
|
4
4
|
Summary: Interloper SQL integration: portable views over SQL warehouses, and a SQLAlchemy-backed destination for PostgreSQL and other SQL databases
|
|
5
5
|
Author: Guillaume Onfroy
|
|
6
6
|
Author-email: Guillaume Onfroy <guillaume@digitlcloud.com>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "interloper-sql"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.122.1"
|
|
4
4
|
description = "Interloper SQL integration: portable views over SQL warehouses, and a SQLAlchemy-backed destination for PostgreSQL and other SQL databases"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# ###############
|
|
4
4
|
[project]
|
|
5
5
|
name = "interloper-sql"
|
|
6
|
-
version = "0.
|
|
6
|
+
version = "0.122.1"
|
|
7
7
|
description = "Interloper SQL integration: portable views over SQL warehouses, and a SQLAlchemy-backed destination for PostgreSQL and other SQL databases"
|
|
8
8
|
readme = "README.md"
|
|
9
9
|
authors = [{ name = "Guillaume Onfroy", email = "guillaume@digitlcloud.com" }]
|
|
@@ -157,6 +157,9 @@ def union(upstreams: Sequence[Upstream], *columns: str, **stamps: Callable[[Upst
|
|
|
157
157
|
def latest(rows: ibis.Table, key: str, *order: ibis.Expr) -> ibis.Table:
|
|
158
158
|
"""One row per *key*, the first in *order*: the dimension pattern over candidate rows.
|
|
159
159
|
|
|
160
|
+
A row whose key is NULL is dropped: it identifies nothing, joins nothing,
|
|
161
|
+
and every such row would otherwise collapse into one NULL-keyed row.
|
|
162
|
+
|
|
160
163
|
Args:
|
|
161
164
|
rows: Candidate rows, several per key.
|
|
162
165
|
key: The column one row is kept per value of.
|
|
@@ -166,5 +169,6 @@ def latest(rows: ibis.Table, key: str, *order: ibis.Expr) -> ibis.Table:
|
|
|
166
169
|
Returns:
|
|
167
170
|
The kept rows, without the ranking column.
|
|
168
171
|
"""
|
|
172
|
+
rows = rows.filter(rows[key].notnull())
|
|
169
173
|
ranked = rows.mutate(rank=ibis.row_number().over(group_by=key, order_by=list(order)))
|
|
170
174
|
return ranked.filter(ranked["rank"] == 0).drop("rank")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|