MCPcopy Create free account

hub / github.com/andre-salvati/databricks-template / functions

Functions113 in github.com/andre-salvati/databricks-template

↓ 9 callersMethodget_value
(self, key)
src/template/config.py:128
↓ 8 callersMethodcluster_by
Set Delta liquid-clustering keys on an existing table. Metadata-only and idempotent: re-running just re-asserts the keys. Subsequent
src/template/baseTask.py:10
↓ 7 callersFunction_wheel_task
(include_load_test: bool = False)
scripts/sdk_generate_template_job.py:104
↓ 5 callersMethod_build_name_updates
(self, seed_date: str)
src/template/job1/seed_sources.py:237
↓ 5 callersFunction_retry_kwargs
(retries: int)
scripts/sdk_generate_template_job.py:151
↓ 4 callersMethod_build_incremental_orders
(self, seed_date: str)
src/template/job1/seed_sources.py:195
↓ 4 callersFunction_tags
(environment: str)
scripts/sdk_generate_template_job.py:127
↓ 4 callersMethodfilter
(self, record: logging.LogRecord)
src/template/config.py:28
↓ 4 callersFunctionrun_sql
(workspace: WorkspaceClient, warehouse_id: str, sql: str)
scripts/_sdk_sql.py:33
↓ 3 callersFunction_environments
()
scripts/sdk_generate_template_job.py:118
↓ 3 callersFunctionaggregate_orders
Aggregate enriched orders by the report dimensions. Mirrors GenerateOrdersAgg.aggregate_orders exactly. total_value sums item_total — th
src/template/job1_sdp/transforms.py:62
↓ 3 callersMethodaggregate_orders
(self, df_order)
src/template/job1/generate_orders_agg.py:10
↓ 3 callersFunctionenrich_order
Four-way join: order_item ⨝ order ⨝ customer ⨝ product. Mirrors GenerateOrders.enrich_order exactly. product_name is read from the product
src/template/job1_sdp/transforms.py:16
↓ 3 callersMethodenrich_order
(self, df_customer, df_order, df_order_item, df_product)
src/template/job1/generate_orders.py:10
↓ 3 callersFunctionget_warehouse_id
Resolve a SQL warehouse to use for DDL. Picking warehouses[0] is fragile — the API returns warehouses in an implementation-defined order, so
scripts/_sdk_sql.py:5
↓ 2 callersFunction_alert_emails
()
scripts/sdk_generate_template_job.py:138
↓ 2 callersMethod_build_customer_updates
(self, seed_date: str)
src/template/job1/seed_sources.py:222
↓ 2 callersMethod_build_incremental_items
(self, seed_date: str)
src/template/job1/seed_sources.py:206
↓ 2 callersMethod_products_renamed_on
The product ids selected for a rename on a given day, by a day-anchored rotation. Deterministic so reruns of the same date are idempotent.
src/template/job1/seed_sources.py:231
↓ 2 callersFunctionarg_parser
()
src/template/main.py:28
↓ 2 callersMethodget_spark
(self)
src/template/config.py:125
↓ 2 callersMethodrun
(self)
src/template/job1/seed_sources.py:49
↓ 2 callersMethodvalidate_order
(self, df_order)
src/template/job1/extract_source2.py:16
↓ 1 callersMethod__init__
(self, args)
src/template/config.py:48
↓ 1 callersFunction_build_job
(environment: str, sp_id: str | None)
scripts/sdk_generate_template_job.py:183
↓ 1 callersFunction_build_job_integration_test
Integration test: setup → run (job1 batch) + run_sdp (pipeline) in parallel → validate. A single validate task waits for both run and run_sdp to
scripts/sdk_generate_template_job.py:310
↓ 1 callersFunction_build_job_prod_integration
Prod integration job: seed_sources → run (job1 batch) + run_sdp (pipeline) in parallel. Mirrors the staging integration test structure but uses s
scripts/sdk_generate_template_job.py:377
↓ 1 callersFunction_build_pipeline
(environment: str, catalog: str, sp_id: str | None)
scripts/sdk_generate_template_job.py:452
↓ 1 callersFunction_configure_logging
(level: int, run_id: str)
src/template/config.py:33
↓ 1 callersFunction_dqx_package
Read the DQX version from pyproject.toml so it stays in sync with the runtime dep.
scripts/sdk_generate_template_job.py:41
↓ 1 callersFunction_drop_candidates
DROP statements to try in order. The kind-specific form first (when there is one), then plain DROP TABLE as a fallback for warehouses whose parser
scripts/sdk_drop_tables.py:27
↓ 1 callersMethod_ensure_tables
(self, catalog: str)
src/template/job1/seed_sources.py:80
↓ 1 callersFunction_existing_catalogs
(workspace: WorkspaceClient)
scripts/sdk_init_workspace.py:67
↓ 1 callersFunction_existing_schemas
(workspace: WorkspaceClient, catalog: str)
scripts/sdk_init_workspace.py:71
↓ 1 callersFunction_find_sp
(workspace: WorkspaceClient, display_name: str)
scripts/sdk_init_workspace.py:22
↓ 1 callersFunction_get_service_principal_id
(display_name: str, profile: str)
scripts/sdk_generate_template_job.py:96
↓ 1 callersFunction_product_category
Stable category attribute of a product, mirroring the Spark expression in _seed_initial: category = (product_id - 1) % 10 + 1. Used to build the n
src/template/job1/seed_sources.py:24
↓ 1 callersFunction_product_unit_price
Static unit_price of a product, mirroring the Spark expression in _seed_initial. unit_price never changes after the initial load; it is carried on
src/template/job1/seed_sources.py:32
↓ 1 callersFunction_project_version
Read version from pyproject.toml so the bundle pins to the exact built wheel.
scripts/sdk_generate_template_job.py:86
↓ 1 callersMethod_reset_schemas
(self, catalog)
tests/job1/integration_setup.py:15
↓ 1 callersFunction_resolve_catalog
Compute the target catalog at generation time, mirroring Config.__init__. - dev → dev_<sanitized_user> (per-developer sandbox) - stagin
scripts/sdk_generate_template_job.py:438
↓ 1 callersFunction_resolve_catalog
(workspace: WorkspaceClient, env: str)
scripts/sdk_drop_tables.py:38
↓ 1 callersFunction_retries
(environment: str)
scripts/sdk_generate_template_job.py:145
↓ 1 callersMethod_seed_incremental
(self, catalog: str, seed_date: str)
src/template/job1/seed_sources.py:159
↓ 1 callersMethod_seed_initial
(self, catalog: str, seed_date: str)
src/template/job1/seed_sources.py:99
↓ 1 callersMethod_seed_load_test
(self, catalog)
tests/job1/integration_setup.py:53
↓ 1 callersMethod_seed_standard
(self, catalog)
tests/job1/integration_setup.py:25
↓ 1 callersFunction_target_overrides
Target-level run_as and root_path pinned to the SP for staging/prod. Two independent gates stack here: 1. Target-level run_as makes mode: p
scripts/sdk_generate_template_job.py:163
↓ 1 callersMethod_validate_load_test
(self, catalog)
tests/job1/integration_validate.py:33
↓ 1 callersMethod_validate_standard
(self, catalog)
tests/job1/integration_validate.py:14
↓ 1 callersFunctionanalyze_job_costs
Analyze job costs for a specific date using system tables. Args: workspace: Databricks WorkspaceClient instance target_date:
scripts/sdk_analyze_job_costs.py:28
↓ 1 callersFunctionaws_daily_costs
(days: int, profile: str | None = None)
scripts/project_costs.py:19
↓ 1 callersFunctioncreate_catalogs_and_schemas
(workspace: WorkspaceClient, sp_id: str, storage_root: str | None, warehouse_id: str)
scripts/sdk_init_workspace.py:75
↓ 1 callersFunctioncreate_service_principal
(workspace: WorkspaceClient, display_name: str, warehouse_id: str)
scripts/sdk_init_workspace.py:29
↓ 1 callersFunctiondatabricks_daily_costs
(profile: str, days: int)
scripts/project_costs.py:112
↓ 1 callersFunctiondemoAccountApi
()
scripts/sdk_workspace_and_account.py:19
↓ 1 callersFunctiondemoWorkspaceApi
()
scripts/sdk_workspace_and_account.py:6
↓ 1 callersFunctiondisplay_job_costs
(data_array)
scripts/sdk_analyze_job_costs.py:107
↓ 1 callersFunctiondisplay_summary
(data_array)
scripts/sdk_analyze_job_costs.py:122
↓ 1 callersFunctionfallback_analysis
Fallback method using Jobs API when system tables are unavailable. Note: This doesn't provide cost data, only run information.
scripts/sdk_analyze_job_costs.py:138
↓ 1 callersMethodget_test_output
(self)
src/template/config.py:131
↓ 1 callersFunctionget_todays_date
Get today's date in YYYY-MM-DD format.
scripts/sdk_analyze_job_costs.py:23
↓ 1 callersFunctionget_warehouse_id
Get the first available SQL warehouse ID.
scripts/sdk_analyze_job_costs.py:99
↓ 1 callersFunctionmain
()
src/template/main.py:47
↓ 1 callersFunctionmain
()
scripts/sdk_init_workspace.py:104
↓ 1 callersFunctionmain
Main entry point for the script.
scripts/sdk_analyze_job_costs.py:183
↓ 1 callersFunctionmain
()
scripts/sdk_generate_template_job.py:474
↓ 1 callersFunctionmain
()
scripts/project_costs.py:196
↓ 1 callersFunctionmain
()
scripts/sdk_drop_tables.py:46
Method__init__
(self, run_id: str)
src/template/config.py:24
Method__init__
(self, config)
src/template/baseTask.py:5
Method__init__
(self, config)
src/template/job1/generate_orders_agg.py:7
Method__init__
(self, config)
src/template/job1/generate_orders.py:7
Method__init__
(self, config)
src/template/job1/extract_source2.py:13
Method__init__
(self, config)
src/template/job1/extract_source1.py:14
Method__init__
(self, config)
src/template/job1/health_check.py:8
Method__init__
(self, config)
tests/job1/integration_setup.py:12
Method__init__
(self, config)
tests/job1/integration_validate.py:11
Functionconfig
()
tests/job1/unit_test.py:35
Functioncurated_order_enriched_sdp
()
src/template/job1_sdp/pipeline.py:144
Functiondf_orders
(spark)
tests/job1/unit_test.py:65
Functiondf_orders_enriched
Pre-joined enriched orders matching the output of enrich_order().
tests/job1/unit_test_sdp.py:39
Functiondf_orders_from_source
(spark)
tests/job1/unit_test.py:53
Functionraw_customer_sdp
()
src/template/job1_sdp/pipeline.py:92
Functionraw_order_item_sdp
()
src/template/job1_sdp/pipeline.py:131
Functionraw_order_sdp
()
src/template/job1_sdp/pipeline.py:118
Functionraw_product_sdp
()
src/template/job1_sdp/pipeline.py:105
Functionreport_order_agg_sdp
()
src/template/job1_sdp/pipeline.py:162
Methodrun
(self)
src/template/job1/generate_orders_agg.py:27
Methodrun
(self)
src/template/job1/generate_orders.py:37
Methodrun
(self)
src/template/job1/extract_source2.py:44
Methodrun
(self)
src/template/job1/extract_source1.py:17
Methodrun
(self)
src/template/job1/health_check.py:11
Methodrun
(self)
tests/job1/integration_setup.py:90
Methodrun
(self)
tests/job1/integration_validate.py:49
Functionspark
()
tests/job1/unit_test_sdp.py:34
Functionspark
(config)
tests/job1/unit_test.py:48
Functiontest_aggregate_orders
(spark, config, df_orders)
tests/job1/unit_test.py:222
Functiontest_aggregate_orders_row_count
One aggregated row per distinct customer name.
tests/job1/unit_test_sdp.py:153
Functiontest_aggregate_orders_values
Aggregated qty and value must match hand-calculated totals.
tests/job1/unit_test_sdp.py:159
next →1–100 of 113, ranked by callers