generate_fabric_code
Generate Fabric-specific PySpark code for lakehouse operations, including reading, writing, merging Delta tables, and monitoring performance. Use it to get ready-to-run code for Microsoft Fabric.
Instructions
Generate Fabric-specific PySpark code for lakehouse operations.
Args:
operation: Type of operation ('read_lakehouse', 'write_lakehouse', 'merge_delta', 'performance_monitor')
lakehouse_name: Name of the lakehouse
table_name: Name of the source table
target_table: Name of the target table (for write/merge operations)
ctx: Context object containing client information
Returns:
A string containing the generated Fabric-specific PySpark code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | ||
| table_name | No | ||
| target_table | No | ||
| lakehouse_name | No |