dab: add CLI --pipeline/--catalog flags for Databricks wheel execution #222
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
The
stack runCLI command needs flags for Databricks PythonWheelTask execution:--pipeline <name> --catalog <catalog>.Design
When
--catalogis provided, usemake_databricks_loader(spark, catalog)instead of the DuckDB loader. Spark session acquired from Databricks runtime viaSparkSession.builder.getOrCreate().Tasks
--catalogoption tocli/run.py--catalogset: import spark, createmake_databricks_loader, callpipeline.run(load)--catalognot set: existing DuckDB path (unchanged)Complete.
--catalogoption tostack run(impliestarget=spark)_SparkContextclass withmake_databricks_loaderintegrationstack run readmissions --catalog aco_devruns pipeline on Databricks via SparkSession✅ Lint clean.