Skip to content

Commit bc74170

Browse files
committed
feat: Cloud changes
1 parent c3e288e commit bc74170

File tree

8 files changed

+1740
-60
lines changed

8 files changed

+1740
-60
lines changed

queries/polars/utils.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,17 @@ def run_query(query_number: int, lf: pl.LazyFrame) -> None:
168168
class PatchedComputeContext(pc.ComputeContext):
169169
def __init__(self, *args, **kwargs) -> None: # type: ignore[no-untyped-def]
170170
self._interactive = True
171-
self._compute_address = "localhost:5051"
172-
self._compute_public_key = b""
171+
compute_address = "localhost:5051"
172+
client_options = pc.polars_cloud.ClientOptions()
173+
client_options.insecure = True
173174
self._compute_id = "1" # type: ignore[assignment]
175+
self._interactive_client = pc.polars_cloud.SchedulerClient(
176+
compute_address, client_options
177+
)
174178

175-
def get_status(self: pc.ComputeContext) -> pc.ComputeContextStatus:
176-
"""Get the status of the compute cluster."""
177-
return pc.ComputeContextStatus.RUNNING
179+
def get_status(self: pc.ComputeContext) -> pc.ComputeContextStatus:
180+
"""Get the status of the compute cluster."""
181+
return pc.ComputeContextStatus.RUNNING
178182

179183
pc.ComputeContext.__init__ = PatchedComputeContext.__init__ # type: ignore[assignment]
180184
pc.ComputeContext.get_status = PatchedComputeContext.get_status # type: ignore[method-assign]

requirements-dev.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
# This file was autogenerated by uv via the following command:
22
# uv pip compile requirements-dev.in
3-
mypy==1.15.0
3+
mypy==1.17.1
44
# via -r requirements-dev.in
55
mypy-extensions==1.1.0
66
# via mypy
7-
numpy==2.2.6
7+
numpy==2.3.2
88
# via pandas-stubs
9-
pandas-stubs==2.2.3.250308
9+
pandas-stubs==2.3.0.250703
1010
# via -r requirements-dev.in
11-
ruff==0.11.11
11+
pathspec==0.12.1
12+
# via mypy
13+
ruff==0.12.7
1214
# via -r requirements-dev.in
1315
types-pytz==2025.2.0.20250516
1416
# via pandas-stubs
15-
typing-extensions==4.13.2
17+
typing-extensions==4.14.1
1618
# via mypy

requirements.txt

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ attrs==25.3.0
66
# via
77
# jsonschema
88
# referencing
9-
certifi==2025.4.26
9+
certifi==2025.8.3
1010
# via requests
1111
charset-normalizer==3.4.2
1212
# via requests
@@ -16,34 +16,34 @@ click==8.2.1
1616
# ray
1717
cloudpickle==3.1.1
1818
# via dask
19-
contourpy==1.3.2
19+
contourpy==1.3.3
2020
# via matplotlib
21-
cramjam==2.10.0
21+
cramjam==2.11.0
2222
# via fastparquet
2323
cycler==0.12.1
2424
# via matplotlib
25-
dask==2025.5.1
25+
dask==2025.7.0
2626
# via
2727
# -r requirements.in
2828
# dask-expr
2929
dask-expr==2.0.0
3030
# via -r requirements.in
31-
duckdb==1.3.0
31+
duckdb==1.3.2
3232
# via -r requirements.in
3333
fastparquet==2024.11.0
3434
# via -r requirements.in
3535
filelock==3.18.0
3636
# via ray
37-
fonttools==4.58.0
37+
fonttools==4.59.0
3838
# via matplotlib
39-
fsspec==2025.5.1
39+
fsspec==2025.7.0
4040
# via
4141
# dask
4242
# fastparquet
4343
# modin
4444
idna==3.10
4545
# via requests
46-
jsonschema==4.23.0
46+
jsonschema==4.25.0
4747
# via ray
4848
jsonschema-specifications==2025.4.1
4949
# via jsonschema
@@ -53,17 +53,17 @@ linetimer==0.1.5
5353
# via -r requirements.in
5454
locket==1.0.0
5555
# via partd
56-
matplotlib==3.10.3
56+
matplotlib==3.10.5
5757
# via plotnine
58-
mizani==0.13.5
58+
mizani==0.14.2
5959
# via plotnine
60-
modin==0.32.0
60+
modin==0.34.1
6161
# via -r requirements.in
62-
msgpack==1.1.0
62+
msgpack==1.1.1
6363
# via ray
64-
narwhals==1.40.0
64+
narwhals==2.0.1
6565
# via plotly
66-
numpy==2.2.6
66+
numpy==2.3.2
6767
# via
6868
# contourpy
6969
# dask
@@ -98,36 +98,36 @@ partd==1.4.2
9898
# via dask
9999
patsy==1.0.1
100100
# via statsmodels
101-
pillow==11.2.1
101+
pillow==11.3.0
102102
# via matplotlib
103-
plotly==6.1.1
103+
plotly==6.2.0
104104
# via -r requirements.in
105-
plotnine==0.14.5
105+
plotnine==0.15.0
106106
# via -r requirements.in
107-
polars==1.30.0
107+
polars==1.32.0
108108
# via
109109
# -r requirements.in
110110
# polars-cloud
111-
polars-cloud==0.0.9
111+
polars-cloud==0.0.11
112112
# via -r requirements.in
113-
protobuf==6.31.0
113+
protobuf==6.31.1
114114
# via ray
115115
psutil==7.0.0
116116
# via modin
117117
py4j==0.10.9.9
118118
# via pyspark
119-
pyarrow==20.0.0
119+
pyarrow==21.0.0
120120
# via
121121
# -r requirements.in
122122
# dask
123123
# modin
124-
pydantic==2.11.5
124+
pydantic==2.11.7
125125
# via
126126
# -r requirements.in
127127
# pydantic-settings
128128
pydantic-core==2.33.2
129129
# via pydantic
130-
pydantic-settings==2.9.1
130+
pydantic-settings==2.10.1
131131
# via -r requirements.in
132132
pyparsing==3.2.3
133133
# via matplotlib
@@ -137,45 +137,46 @@ python-dateutil==2.9.0.post0
137137
# via
138138
# matplotlib
139139
# pandas
140-
python-dotenv==1.1.0
140+
python-dotenv==1.1.1
141141
# via pydantic-settings
142142
pytz==2025.2
143143
# via pandas
144144
pyyaml==6.0.2
145145
# via
146146
# dask
147147
# ray
148-
ray==2.46.0
148+
ray==2.48.0
149149
# via modin
150150
referencing==0.36.2
151151
# via
152152
# jsonschema
153153
# jsonschema-specifications
154-
requests==2.32.3
154+
requests==2.32.4
155155
# via ray
156-
rpds-py==0.25.1
156+
rpds-py==0.27.0
157157
# via
158158
# jsonschema
159159
# referencing
160-
scipy==1.15.3
160+
scipy==1.16.1
161161
# via
162162
# mizani
163163
# plotnine
164164
# statsmodels
165-
setuptools==80.8.0
165+
setuptools==80.9.0
166166
# via -r requirements.in
167167
six==1.17.0
168168
# via python-dateutil
169-
statsmodels==0.14.4
169+
statsmodels==0.14.5
170170
# via plotnine
171171
toolz==1.0.0
172172
# via
173173
# dask
174174
# partd
175-
tpchgen-cli==1.1.0
175+
tpchgen-cli==1.1.1
176176
# via -r requirements.in
177-
typing-extensions==4.13.2
177+
typing-extensions==4.14.1
178178
# via
179+
# polars-cloud
179180
# pydantic
180181
# pydantic-core
181182
# referencing
@@ -186,5 +187,5 @@ typing-inspection==0.4.1
186187
# pydantic-settings
187188
tzdata==2025.2
188189
# via pandas
189-
urllib3==2.4.0
190+
urllib3==2.5.0
190191
# via requests

0 commit comments

Comments
 (0)