Skip to content

Commit

Permalink
Don't test pc files
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Feb 28, 2025
1 parent de629b4 commit 17795f9
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 15 deletions.
20 changes: 15 additions & 5 deletions docs/source/polars-cloud/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,21 @@ Then we write a regular lazy Polars query. In this simple example we compute the
`a` over column `b`.

```python
df = pl.DataFrame({
"a": [1, 2, 3],
"b": [4, 4, 5]
})
lf = df.lazy().with_columns(pl.col("a").max().over("b").alias("c"))
import polars as pl

ctx = pc.ComputeContext(memory=8, cpus=2, cluster_size=1)
lf = (
pl.LazyFrame({
"a": [1, 2, 3],
"b": [4, 4, 5]
}).with_columns(
pl.col("a").max().over("b").alias("c")
)
)
(
lf.remote(context=ctx)
.sink_parquet(uri="s3://my-bucket/result.parquet")
)
```

Then we are going to run our query on the compute cluster. We use `remote` to signify that we want
Expand Down
2 changes: 2 additions & 0 deletions docs/source/src/python/polars-cloud/authentication.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
exit(0) # a hack to not test this file

# --8<-- [start:login]
import polars_cloud as pc

Expand Down
1 change: 1 addition & 0 deletions docs/source/src/python/polars-cloud/compute-context.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
exit(0) # a hack to not test this file
import polars_cloud as pc

# --8<-- [start:compute]
Expand Down
1 change: 1 addition & 0 deletions docs/source/src/python/polars-cloud/index.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
exit(0) # a hack to not test this file
# --8<-- [start:index]
import polars as pl
import polars_cloud as pc
Expand Down
1 change: 1 addition & 0 deletions docs/source/src/python/polars-cloud/interactive-batch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
exit(0)
# --8<-- [start:example]
import polars as pl
import polars_cloud as pc
Expand Down
10 changes: 0 additions & 10 deletions docs/source/src/python/polars-cloud/quickstart.py

This file was deleted.

0 comments on commit 17795f9

Please sign in to comment.