dab: replace sql_task with python_wheel_task in JobsPlugin #223
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Current DAB uses
sql_task.file.path: bundle/sql/{pipeline}/which requires 208 transpiled SQL files. PythonWheelTask runs the same narwhals code directly.Design
Tasks
JobsPlugin.resources()to emitpython_wheel_taskinstead ofsql_tasklibrariessection referencing the stack wheelbundle/sql/from sync includesbundle/sql/directory (208 files)databricks.ymlstructure is validComplete.
sql_taskwithpython_wheel_taskinJobsPluginpackage_name=stack, entry_point=cli, named_parameters={run: <pipeline>, --target: spark, --catalog: ${var.catalog}, --save: ""}warehouse_idvariable (only needed for SQL tasks)SQLPluginfrom_DEFAULT_PLUGINSlibrariesreferencing wheel artifact✅ 12,061 total tests pass.