Repository navigation
Add databricks-sql (Databricks SQL for RustGIS) - #104
Conversation
Co-authored-by: Isaac <no-reply@databricks.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 32 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
| { | ||
| "id": "databricks-sql", | ||
| "source": { | ||
| "url": "https://github.com/garridolecca/rustgis-databricks/releases/download/v0.4.0/databricks-sql-0.4.0.rgplugin", |
There was a problem hiding this comment.
This is a non-sandboxed process plugin whose network permission is the plugin's own, not enforced by RustGIS. The package is pinned by SHA-256, which is good. requirements.txt is unpinned (databricks-sql-connector[pyarrow]>=4.0, databricks-sdk>=0.50), so what gets installed from PyPI can change after review. I'd ask the author to pin exact versions. Confidence: medium.
Code reviewBugs
Security
Performance
Quality
CLAUDE.md
Plugin packages
Assessment:
Change sizeCompared: the whole PR against main (merge base a7ec9d9 to PR head 71ce6c3).
|
| "id": "databricks-sql", | ||
| "source": { | ||
| "url": "https://github.com/garridolecca/rustgis-databricks/releases/download/v0.4.0/databricks-sql-0.4.0.rgplugin", | ||
| "sha256": "1c610014750808b1326ee53d1f3902b6cf6a15638b3252b0ddd7f97355948e9e" |
There was a problem hiding this comment.
This is a process plugin (unsandboxed Python with the user's full rights). I read all of main.py (1,170 lines) from the unpacked package. I found no subprocess, eval/exec, obfuscation, environment or home-folder reads, or direct network code. Network access goes only through databricks-sql-connector and databricks-sdk, using the user's CLI profile.
Points for a maintainer to weigh (low to medium confidence):
requirements.txtis unpinned (databricks-sql-connector[pyarrow]>=4.0,databricks-sdk>=0.50). Both are well-known packages, but each install resolves to whatever is newest on PyPI. Pinning exact versions (or using a lock) would make the reviewed package match what runs.- The
filespermission is used to write GeoPackages totempfile.gettempdir()/rustgis-databricks/. The folder is shared and predictable, and nothing is cleaned up, so large result sets pile up in/tmp. - Genie can create a Databricks Genie space as a side effect (
Created Genie space 'RustGIS · …'). Beyond reading data, the plugin changes the user's workspace. This should be stated in the description and README. sql-layeraccepts anything starting withselectorwith. The statement is wrapped as(…)in a subquery, which limits abuse. Genie-generated SQL is wrapped the same way but not checked forSELECT.
Code reviewBugs
Security
Performance
Quality
CLAUDE.md
Plugin packages
Assessment: the code matches the stated purpose, and the Change sizeCompared: the whole PR against main (merge base b0d79ae to PR head 0b4aedb).
|
🧩 Plugin previewRemoved: the pull request is closed. |
Plugin: Databricks SQL (garridolecca/rustgis-databricks), a Python session process plugin, Apache-2.0.
What it does: It adds a Databricks panel to RustGIS:
GEOMETRY/GEOGRAPHYtables, and add them once or as dynamic layers. A dynamic layer re-queries only the map's view as you pan and zoom, into a GeoPackage RustGIS reloads in place, so styling survives.SELECTas a layer.The plugin never stores a token: it signs in through the Databricks SDK with the user's CLI profile.
How I tested it: RustGIS 0.8.0 on macOS (arm64), in the desktop app and
rustgis-cli, against a Databricks SQL warehouse:.rgplugininto a clean plugins folder.The panel uses two tab rows (
"kind": "tabs"), whichbuild.pydoesn't accept yet, so this depends on #103. With #103 applied,python scripts/build.py --checkpasses.source.urlis a release asset of the plugin's repository, andsha256is that file's (checked against the downloaded v0.4.0 asset).edit, to add and reload layers;network, for Databricks;files, for the local GeoPackages behind dynamic layers.This pull request and its description were written by Isaac.