pyspiral 0.7.7__cp312-abi3-manylinux_2_28_aarch64.whl → 0.7.8__cp312-abi3-manylinux_2_28_aarch64.whl

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.

Potentially problematic release.


This version of pyspiral might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyspiral
3
- Version: 0.7.7
3
+ Version: 0.7.8
4
4
  Classifier: Intended Audience :: Science/Research
5
5
  Classifier: Operating System :: OS Independent
6
6
  Classifier: Programming Language :: Python
@@ -1,8 +1,8 @@
1
- pyspiral-0.7.7.dist-info/METADATA,sha256=5KbbTylag9ZfdffltxdGDcIK2fdzoMZHkQ3ASWi0ZRM,1874
2
- pyspiral-0.7.7.dist-info/WHEEL,sha256=I5JYpyYzeAl2SOerY_wvkm-HJti0rDQc6zMeJs35MpM,108
3
- pyspiral-0.7.7.dist-info/entry_points.txt,sha256=R96Y3FpYX6XbQu9qMPfUTgiCcf4qM9OBQQZTDdBkZwA,74
1
+ pyspiral-0.7.8.dist-info/METADATA,sha256=tGCOA2CfvPk_EGKZ35MCaeZ0x6SIm-XZNnLMHd5ao-U,1874
2
+ pyspiral-0.7.8.dist-info/WHEEL,sha256=I5JYpyYzeAl2SOerY_wvkm-HJti0rDQc6zMeJs35MpM,108
3
+ pyspiral-0.7.8.dist-info/entry_points.txt,sha256=R96Y3FpYX6XbQu9qMPfUTgiCcf4qM9OBQQZTDdBkZwA,74
4
4
  spiral/__init__.py,sha256=PwaYBWFBtB7cYi7peMmhk_Lm5XzjRoLwOtLbUhc1ZDo,1449
5
- spiral/_lib.abi3.so,sha256=0_bgv3p4eChTxdrSfd6v1KZexnYVjwi8SdUXdlfru8I,61716472
5
+ spiral/_lib.abi3.so,sha256=Xd_FEh5WITGs_pTl7JlGA3JZc7Vlzn4Wxj6cY14Rmfc,61716216
6
6
  spiral/adbc.py,sha256=7IxfWIeQN-fh0W5OdN_PP2x3pzQYg6ZUOLsHg3jktqw,14842
7
7
  spiral/api/__init__.py,sha256=ULBlVq3PnfNOO6T5naE_ULmmii-83--qTuN2PpAUQN0,2241
8
8
  spiral/api/admin.py,sha256=A1iVR1XYJSObZivPAD5UzmPuMgupXc9kaHNYYa_kwfs,585
@@ -30,7 +30,7 @@ spiral/cli/orgs.py,sha256=fmOuLxpeIFfKqePRi292Gv9k-EF5pPn_tbKd2BLl2Ig,2869
30
30
  spiral/cli/printer.py,sha256=aosc763hDFgoXJGkiANmNyO3kAsecAS1JWgjEhn8GCM,1784
31
31
  spiral/cli/projects.py,sha256=1M1nGrBT-t0aY9RV5Cnmzy7YrhIvmHwdkpa3y9j8rG8,5756
32
32
  spiral/cli/state.py,sha256=10wTIVQ0SJkY67Z6-KQ1LFlt3aVIPmZhoHFdTwp4kNA,130
33
- spiral/cli/tables.py,sha256=gp7v8K-6EUTa0P7ZcHXD9gYPPpp4nHABloo_elvUrBw,7757
33
+ spiral/cli/tables.py,sha256=Mv6M8zlgG_1i_GsguYIzU-CY2GXq2fMmKnabSMWE1qI,6402
34
34
  spiral/cli/telemetry.py,sha256=Uxo1Q1FkKJ6n6QNGOUmL3j_pRRWRx0qWIhoP-U9BuR0,589
35
35
  spiral/cli/text.py,sha256=DlWGe4JrkdERAiqyITNpk91Wqb63Re99rNYlIFsIamc,4031
36
36
  spiral/cli/types.py,sha256=XYzo1GgX7dBBItoBSrHI4vO5C2lLmS2sktb-2GnGH3E,1362
@@ -39,7 +39,7 @@ spiral/client.py,sha256=53dVv8wxYMmozUfR8MVcUufKGqdVIdb0yZ0gchczBoQ,6426
39
39
  spiral/core/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
40
  spiral/core/_tools/__init__.pyi,sha256=b2KLfTOQ67pjfbYt07o0IGiTu5o2bZw69lllV8v0Dps,143
41
41
  spiral/core/authn/__init__.pyi,sha256=z_GWyIS62fuiYQrYO8hzw4W8oGaiciqS1u5qtAt54VY,769
42
- spiral/core/client/__init__.pyi,sha256=MmuIzluwaxAFFamr_J8iT15qP8AkA4smkz4zrF-yGnM,6993
42
+ spiral/core/client/__init__.pyi,sha256=YgDM-MoIt3J-QKxvsfs5gRiaTBtOA6TphbNBIAnrFCw,6956
43
43
  spiral/core/expr/__init__.pyi,sha256=3HSKjkotiEkxBvGBALXEBIie0JiyI9bCpehwA3nMQkU,571
44
44
  spiral/core/expr/images/__init__.pyi,sha256=wnE_wZXq7a4iqTg3SVm-ssxGw1WQZyk5dGOPaP4Btko,73
45
45
  spiral/core/expr/list_/__init__.pyi,sha256=Q_9c87eIQfZbqlaw_rq3fvs93YEsW7K5VYk6VZ4g6mU,126
@@ -106,4 +106,4 @@ spiral/table.py,sha256=p95AYv6b7e14F3t7j-B-r45k9CtG84ngikdlAhh9WxA,12260
106
106
  spiral/text_index.py,sha256=FQ9rgIEGLSJryS9lFdMhKtPFey18BXoWbPXyvZPJJ04,442
107
107
  spiral/transaction.py,sha256=bI5oqBAmPMSF0yOOYcPfGbV37Xc1-_V-wQNKw1xOlTA,4136
108
108
  spiral/types_.py,sha256=W_jyO7F6rpPiH69jhgSgV7OxQZbOlb1Ho3InpKUP6Eo,155
109
- pyspiral-0.7.7.dist-info/RECORD,,
109
+ pyspiral-0.7.8.dist-info/RECORD,,
spiral/_lib.abi3.so CHANGED
Binary file
spiral/cli/tables.py CHANGED
@@ -1,6 +1,5 @@
1
- import datetime
2
1
  from collections.abc import Callable
3
- from typing import Annotated, Literal
2
+ from typing import Annotated
4
3
 
5
4
  import questionary
6
5
  import rich
@@ -137,40 +136,9 @@ def flush(
137
136
  project: ProjectArg,
138
137
  table: Annotated[str | None, Option(help="Table name.")] = None,
139
138
  dataset: Annotated[str | None, Option(help="Dataset name.")] = None,
140
- keep: Annotated[
141
- Literal["1h", "2h", "4h"] | None,
142
- Option(help="Duration string that indicates how much WAL to keep. Defaults to 24h."),
143
- ] = None,
144
- full: Annotated[bool, Option(help="Flush full Write-Ahead-Log.")] = False,
145
139
  ):
146
- # TODO(marko): Use some human-readable duration parsing library.
147
- duration = None
148
- if keep is not None:
149
- if full:
150
- raise ValueError("Cannot specify both --keep and --full")
151
- match keep:
152
- case "1h":
153
- duration = datetime.timedelta(hours=1)
154
- case "2h":
155
- duration = datetime.timedelta(hours=2)
156
- case "4h":
157
- duration = datetime.timedelta(hours=4)
158
- case _:
159
- raise ValueError(f"Invalid duration string: {keep}")
160
-
161
- if full:
162
- # Warn and wait for confirmation.
163
- ERR_CONSOLE.print("[bold yellow]Warning: All currently open transaction will fail to commit.[/bold yellow]")
164
- if not questionary.confirm("Are you sure you want to continue?", default=False).ask(): # pyright: ignore[reportAny]
165
- ERR_CONSOLE.print("Aborting.")
166
- raise typer.Exit(1)
167
-
168
- duration = datetime.timedelta(hours=0)
169
-
170
- keep_latest_s = int(duration.total_seconds()) if duration is not None else None
171
-
172
140
  identifier, t = get_table(project, table, dataset)
173
- state.spiral.internal.flush_wal(t.core, keep_latest_s=keep_latest_s) # pyright: ignore[reportPrivateUsage]
141
+ state.spiral.internal.flush_wal(t.core) # pyright: ignore[reportPrivateUsage]
174
142
  CONSOLE.print(f"Flushed WAL for table {identifier} in project {project}.")
175
143
 
176
144
 
@@ -175,7 +175,7 @@ class ShuffleConfig:
175
175
  ): ...
176
176
 
177
177
  class Internal:
178
- def flush_wal(self, table: Table, *, keep_latest_s: int | None = None) -> None:
178
+ def flush_wal(self, table: Table) -> None:
179
179
  """
180
180
  Flush the write-ahead log of the table.
181
181
  """