You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: `rook-ceph-rgw-nautiluss3.rook` is an internal endpoint that only your tool running on k8s can access. The publicly accessible external endpoint is `s3-west.nrp-nautilus.io`, which requires `USE_SSL true` and `SET THREADS=2`. Always use the internal endpoint to run queries.
- Two secrets: readonly data access + write access for outputs
59
+
Then tell the user the *public https* address (note the use of the public, not private endpoint): it should have the format like: `https://s3-west.nrp-nautilus.io/public-output/unique-file-name.csv` (adjust `unique-file-name.csv` part appropriately.)
60
+
61
+
62
+
63
+
Note: s3://public-output has a 30-day expiration and 1 Gb object size limit. CORS headers will permit files to be placed here and rendered by other tools.
64
+
65
+
51
66
52
-
**Generating Output Files:**
53
-
```sql
54
-
COPY (SELECT ...) TO 's3://public-outputs/wetlands/filename.csv' (FORMAT CSV, HEADER, OVERWRITE_OR_IGNORE);
55
-
```
56
-
Then provide download link: `https://minio.carlboettiger.info/public-outputs/wetlands/filename.csv`
57
67
58
68
## Query Optimization Essentials
59
69
@@ -68,41 +78,13 @@ SELECT ... FROM filtered JOIN read_parquet('s3://public-wetlands/glwd/hex/**') w
68
78
ONfiltered.h8=w.h8ANDfiltered.h0=w.h0
69
79
```
70
80
71
-
### 2. Pre-filter Taxonomy
72
-
```sql
73
-
-- Good: Filter to birds before joining position data
74
-
WITH birds AS (
75
-
SELECT id, scientificName FROM read_parquet('s3://public-inat/taxonomy/...')
76
-
WHERE class ='Aves'
77
-
)
78
-
SELECT ... FROM birds JOIN read_parquet('s3://public-inat/range-maps/hex/**') ...
0 commit comments