analyze
Analyze SQL or PySpark code to understand context, data flow, and discover optimization opportunities.
Instructions
Analyze SQL or PySpark code for context, data flow, or optimization opportunities.
Modes:
sql_context
Analyze SQL context (schemas, tables, dialect, complexity).
Parameters: sql_content or selected_text
data_flow
Analyze data flow patterns in PySpark code.
Parameters: pyspark_code (required), table_info
codebase
Analyze a PySpark codebase directory for patterns and issues.
Parameters: directory_path (required), include_optimization_suggestions,
scan_depth
workspace
Full workspace analysis including project structure.
Parameters: sql_content or workspace_path, include_project_structure,
workspace_name
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| scan_depth | No | ||
| table_info | No | ||
| sql_content | No | ||
| pyspark_code | No | ||
| selected_text | No | ||
| directory_path | No | ||
| workspace_name | No | ||
| workspace_path | No | ||
| include_project_structure | No | ||
| include_optimization_suggestions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||