Review Databricks code
review_databricks_codeCheck one file of SQL, Python (PySpark, a notebook's source) or YAML (a Databricks Asset Bundle, job, cluster or warehouse config) against the Field Guide's own best-practice rules, deterministically: partitioning where the guide would cluster, secrets and storage paths written into code, grants to people rather than groups, environments in table names, jobs on all-purpose clusters or without timeouts, warehouses and clusters without auto-stop, bundle targets without their modes, and the rest of the rules the chapters state. Each finding gives the line, why, the fix, the guide's passage verbatim with its section URL, and the docs.databricks.com links the guide cites for it; the result also lists the sections worth reading for this code. No model is called: weigh the findings yourself. One file per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The file's contents: SQL, Python (PySpark, a notebook's source) or YAML (a Databricks Asset Bundle, job, cluster or warehouse config). At most 48000 characters; review a larger file in parts. | |
| lang | No | sql, python or yaml. Omit to detect it from the filename or the code. | |
| filename | No | The file's path in the repository, e.g. resources/nightly.job.yml: used to detect the language and echoed back |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | Yes | ||
| note | Yes | ||
| build | Yes | The commit of the deploy that answered | |
| lines | Yes | ||
| total | Yes | ||
| ttlMs | Yes | How long this answer may be kept before asking again, in milliseconds | |
| filename | Yes | ||
| findings | Yes | ||
| sections | Yes | ||
| withheld | Yes | ||
| index_built | Yes | When this deploy's index was built (ISO 8601) | |
| rules_checked | Yes |