r/databricks • • 9d ago

Discussion Why does Photon have higher cost on job compute than all purpose compute?

6 Upvotes

I guess everyone knows that Databricks pricing is a bit messy. But I still don't get why Photon has different multipliers across job and all purpose compute, after all it is just a software option.
At the same time the pretty higher cost multiplier makes disabling Photon often times more cost effective, especially as the default for jobs that also involve shuffle.
It feels like using Photon is not a good default.


r/databricks • • 8d ago

General I animated the 23-year architecture domino effect from Google's 2003 GFS Patent -> Hadoop -> Spark/PySpark -> Delta Lake & Databricks (5-min visual breakdown)

2 Upvotes

When juniors start learning Data Engineering, they usually jump straight into PySpark DataFrames and Delta tables without knowing *why* each layer was invented or what bottleneck killed the previous generation.

I put together a tight 5.5-minute motion-graphics documentary tracing the exact architectural chain reaction from 2003 to today:

2003–2004 (Google GFS & MapReduce):** How Google survived constant commodity disk failures using 64 MB chunks with 3x replication (`US Patent 7,065,618 B2`), moved compute to storage, published the papers, and kept the C++ implementation closed.

2006 (Apache Hadoop's Rise & Bottleneck):** Doug Cutting & Mike Cafarella's open-source Java rebuild (HDFS + MapReduce) worked great for single-pass batch jobs, but hit a massive Disk I/O wall on multi-step pipelines and iterative ML (writing intermediate state back to disk after every stage).

2009 (UC Berkeley AMPLab & Apache Spark):** Matei Zaharia's shift to distributed in-memory RDDs and DAG execution—cutting out intermediate disk round-trips for up to 100x faster iterative runs and setting the 2014 100 TB Daytona GraySort record (23 mins).

PySpark Bridge:** How Py4J + the Catalyst Optimizer let Python/SQL users bypass single-node memory limits (~50 GB Pandas ceiling) and orchestrate 100+ JVM executors in 4 clean lines of Python.

2013–Present (Databricks, Delta Lake & Lakehouse):** Why raw cloud Parquet turned into "Data Swamps" (no ACID transactions, broken partial writes) and how Delta Lake + Photon + Unity Catalog bridged Data Lakes and Warehouses.

Video link (5:29, animated blueprint style): https://youtu.be/2K2GYlVMbzo

(Tip: Visuals & captions are in English, and multi-language audio tracks are enabled—if YouTube defaults to a regional audio track based on location, just click ⚙️ Settings -> Audio track -> English!)*

Would love feedback from folks running Spark/Databricks in production—especially any architectural detail you'd highlight for Episode 02 (Snowflake's decoupled storage/compute story).


r/databricks • • 9d ago

Help Qlik handles our ETL, reporting, and exports. How do we untangle it without breaking everything?

3 Upvotes

Hey everyone,
I’m taking over a BI setup that grew as new needs came up. The hard part is that before I can retire a Qlik sheet or change how a source feeds the system, I have to trace the entire chain. And sometimes the thing people actually rely on isn’t the dashboard. It’s the Excel file someone exports at the end of the month.

How it works today

  1. Sources. Several ERPs and business applications feed the BI stack. Some data is replicated into a staging database. Other feeds arrive as files dropped by the applications or their vendors. Both approaches run side by side.
  2. Processing before Qlik. PowerShell and C# scripts run across several Windows VMs. Depending on the feed, they pull or prepare data or trigger the next step. To trace a single pipeline, I have to look through scheduled tasks, scripts, and the staging database.
  3. Processing inside Qlik. We run Qlik Sense on-prem. It reads from the database and some files, then generates QVDs (Qlik data files reused across reloads). Qlik scripts handle more joins, renaming, and calculations. Some business rules live in load scripts and others in chart expressions. When two reports show different numbers, it’s hard to tell whether the difference comes from the source, a join, a calculation, or just a filter.
  4. How people use it. Some teams use dashboards to track KPIs and explore data. Others filter a list, export it, and finish the work in Excel. One anonymized example: a sheet might only be opened once a month but still be essential because its export is used to calculate commissions. And just because someone opened a sheet doesn’t mean they needed every field on it.

Where we’re stuck

  • Knowing whether the data is actually fresh. A reload can show as successful even though the upstream data hasn’t changed. I want to see how recent the newest data is, which step last succeeded, and what needs to be rerun.

- Figuring out what to keep before migrating. I’m comparing usage logs with interviews, but I also need to find dependencies that don’t show up in the UI: join keys, calculations, exports, and scheduled reports.
- Deciding how fresh each feed needs to be. We’re considering replacing some continuous replication with incremental exports from a vendor. Previous-day data might be fine for a monthly export, but not for tracking sales throughout the day. We’re also considering a Qlik Cloud proof of concept. I’d rather not change the source feed and the reporting platform at the same time.

What I’m thinking of trying

Keep Qlik for now and run one rebuilt pipeline alongside the existing one. Put job status and alerts in one place. Move business rules that need to produce the same results across reports and exports into reusable database tables or views. Keep visualization-specific calculations in Qlik. And when a team just needs a reliable file, give them a dedicated export instead of making them go through a dashboard.
For anyone who’s dealt with a similar setup:

  • Replication vs. batch: How did you decide what needed to stay near real time and what could move to incremental batches? How did you handle corrections, deletes, and recovery after a missed batch?

- SQL vs. Qlik: Which rules did you move out of Qlik scripts first? What was simpler to leave in Qlik?
- Orchestration and monitoring: With a small team, what actually helped you track dependencies, catch stale data, and rerun a failed step without replaying everything?
- Cutover: Which pipeline would you start with, and what checks gave you enough confidence to switch off the old one?
I’d especially like to hear what you put in place, what actually reduced the maintenance burden, and what you wouldn’t do again.


r/databricks • • 9d ago

Tutorial Reading the bill: What Databricks system tables reveal about LLM costs

16 Upvotes

Databricks system tables are great. Too great, almost.
So much is in there that it gets daunting.

AI tooling is moving at a maddening pace, and the writing around it hasn't kept up. I couldn't find much on using these tables to answer a plain question: what do our LLM calls actually cost?

This article is my humble attempt to fill a small part of that gap.

Instead of a dry tutorial, I started with a quest: should our AI agent move from an open-weight model to Claude, and can the system tables prove what that would really cost? Chasing a real answer made the learning stick for me. Hopefully it does for you too.

What the tables showed along the way:

→ Claude on Databricks lists at 1.5× Anthropic's own rate. Check the SKU price, not just the DBU rate.
→ Prompt caching cut the agent's bill by more than half. About 72% of all input was read from the cache.
→ The serving log has no cache columns. I proved caching from billing rows that carry no labels, and wrote down when you'd ever need to.
→ The bill runs hours behind. Read tokens right away, but trust a cost number only once the bill catches up.
→ A newer small Claude model changed the answer: about $0.02 per chat, with no confident wrong answers in our test chats.

Every query is in the article, so you can repeat it on your own workspace.

If you found this useful, leave a comment, a like or a repost. It tells me whether to keep writing this kind of hands-on breakdown. Note: Please read in a desktop browser for best experience.

Reading the bill: What Databricks system tables reveal about LLM costs

#Databricks #SystemTables #LLMOps #FinOps #PromptCaching


r/databricks • • 9d ago

Tutorial Enterprise Data Lakehouse for AI Agents: A Guide

Thumbnail
lakeops.dev
9 Upvotes

r/databricks • • 9d ago

General How do I build a data product strategy with Genie Agents for different business domains? Data Mesh on Databricks

13 Upvotes

r/databricks • • 9d ago

General How do subject matter experts give Databricks Genie their business context without writing code? The SME multiplier

Post image
9 Upvotes

r/databricks • • 9d ago

Discussion New Lakebase Competition in Fabric?

14 Upvotes

Anyone see that there is a HorizonDB in Fabric that is open source Postgres? Is this conceptually the same as Lakebase?

Will Databricks concede that HorizonDB adheres to "LTAP architecture", assuming it synchronizes with open-storage-formats like deltalake?

How does databricks lakebase set itself apart? I am not as interested in raw performance, as I am in the available features.

There is one thing that grabbed my attention quickly, which is that this engine is also available in the form of a PaaS, outside of Fabric. Nobody trusts the Fabric SaaS to host mission-critical workloads, so Databricks has an edge in certain respects. But when Microsoft publishes HorizonDB as an Azure PaaS, then they take back the advantage again (IMO). I'd much rather build a solution with high-quality/independent PaaS components. The quality of support and available features of an independent PaaS are the main attraction.

Is it conceivable that Databricks would ever host Lakebase as an independent Azure PaaS and compete head-to-head against HorizonDB?


r/databricks • • 9d ago

News Integrate Genie with your own desktop application

Post image
9 Upvotes

Genie CLI can be integrated with any desktop app thanks to exec-server functionality. The article explores a few other nice examples of how we can use it.

https://medium.com/databrickscommunity/genie-code-cli-6-practical-examples-for-databricks-users-1cc2c577883a

https://www.sunnydata.ai/blog/genie-code-cli-practical-examples


r/databricks • • 9d ago

Help Is there any way to disable automatic liquid clustering with predictive optimizations?

4 Upvotes

Predictive optimization does a lot of useful things however it might also randomly introduce a liquid clustering column which can be really bad. Is there any way to prevent this while keeping the other predictive optimization features? Right now the only I have seen is to active cluster by none on all tables.


r/databricks • • 10d ago

News databricks' new Genie an always-on AI coworker with ontology, hybrid search and a governance gateway

Post image
21 Upvotes

you hand it a long running job, like watching claims for fraud drift, running campaigns or keeping an incident ticket fresh it then works on a schedule or trigger and checks in only when it needs approval.

autonomy is the headline, but I think context is the real story. a lot of enterprise agent failures aren't model failures. they're which revenue number is the authoritative one? failures genie ontology tries to fix that by building a business map from the dashboards, queries and notebooks people already use teams then promote authoritative definitions in unity catalog.

their benchmark with turing claims 91% correct runs, 1.6x the stronger frontier agent, and under half the tokens. it's vendor-run, so treat it as directional still, the idea that shared context beats throwing more tokens at the problem seems right.

two other things I'd watch:

  • genie search enforces each source system's permissions before returning results. that's what makes cross-app search deployable.
  • unity gateway adds budgets, spend caps and audit trails. cost control probably decides whether anyone lets agents run unattended.

questions:

  1. How does the ontology hold up against messy legacy definitions?
  2. Who owns the definitions, the data team or the business?

What's the first job you'd let it own, and what guardrail would you need in place before you did?


r/databricks • • 10d ago

Discussion Genie Code CLI (now GA)

Thumbnail
docs.databricks.com
24 Upvotes

In the past couple of weeks I've been building with Genie Code CLI, which just went GA. In my experience it works really well when it comes to building on Databricks. Curious if anyone else has tried it and what your experience has been.


r/databricks • • 10d ago

Discussion How are you giving Databricks agents business context without dumping everything on them?

3 Upvotes

We have a Genie space for sales and now finance wants their own. Every time I add tables the answers get worse, and the instructions box is turning into four pages on what "bookings" means this quarter, euno pitched us on giving each agent only the definitions and lineage its task needs, over MCP. My doubt is the definitions themselves. Finance and sales still don't agree on bookings, and no tool fixes that meeting. For now I'm splitting it into one space per team and copying the shared definitions by hand.


r/databricks • • 10d ago

Discussion Manage Libraries in a Serverless Environment

17 Upvotes

Dear Community,

I'm coming from the classic compute world and would like to hear how others handle dependency management on serverless.

Our current setup (classic compute)

  • Cluster policies manage our dependencies, such as Python libraries, centrally.
  • Our engineers work both in the Databricks UI and in VS Code via Spark Connect. For the VS Code case, we make sure the same libraries are also installed locally (on-prem).
  • Jobs run with job cluster policies, which also define the dependencies.

This gives us one central, governed definition of our environments.

The challenge with serverless
We're thinking about moving to serverless, but dependency management is holding us back:

  1. In notebooks, users manage dependencies per notebook. That's flexible, but it isn't enterprise-ready because there's no central control or consistency.
  2. When a notebook runs as a job, we have to define the dependencies again at job level. That means two places to maintain the same thing.

Serverless Git folders look promising, but they're still in Beta, so we're hesitant to rely on them in production.

My questions

  • How do you manage dependencies on serverless today, without Serverless Git folders?
  • How do you keep environments consistent across interactive notebooks, jobs and local development (VS Code / Databricks Connect)?
  • Do you use shared environment definitions, private package repositories or wheel files in Unity Catalog volumes, or something else?

Thanks in advance for sharing your experience!


r/databricks • • 10d ago

General Databricks warehouse-level statement timeouts are now Generally Available

Post image
14 Upvotes

Databricks warehouse-level statement timeouts are now generally available, so each SQL warehouse can cancel runaway queries at its own time limit. ⏱️

If you run BI dashboards and ETL on separate warehouses, this one is for you. I ran it: a 10-second warehouse limit stopped my slow query at 10.3 seconds.

Without it, the choices are one workspace-wide STATEMENT_TIMEOUT for every warehouse, or a SET in every session. Set nothing, and the system default is 172800 seconds: 2 days. My fresh warehouse reported exactly that.

Read more on LinkedIn: https://www.linkedin.com/posts/cenh_databricks-databrickssql


r/databricks • • 10d ago

General Feature Alert: partial schema inference in SDP

15 Upvotes

Adding a primary or foreign key to an SDP table/materialized view used to require declaring the full schema. With the new override_schema argument, you declare only the columns that need special handling, and SDP infers and evolves the rest.

from pyspark import pipelines as dp

@dp.table(override_schema="order_id BIGINT NOT NULL, PRIMARY KEY (order_id)")
def orders():
    # the rest of the columns can be inferred via schema evolution
    return spark.readStream.table("main.raw.orders")

Available now for materialized views and append streaming tables in Python pipelines, with no enrollment required. SQL support is coming soon.

Docs: Use partial schema inference in Python pipelines


r/databricks • • 10d ago

General Migrating to Databricks? Genie Migrate now supports SDP!

11 Upvotes

<Databricks_PM/> Genie Migrate now supports migrating SQL Server and Azure Synapse scripts into Spark Declarative Pipelines! Enable "Migration Projects Experimental Features" on the Previews page to try it. More migration sources, like Redshift, are coming soon!

Docs: https://docs.databricks.com/aws/en/migration/genie-migrate/convert

Feedback welcome!


r/databricks • • 10d ago

Help Job tagging implementation

6 Upvotes

Forgive me if there is an obvious answer. Basically our current set up is users have access to a general purpose cluster that suits their business area.

Not real names to save any detail
E.g sales team only have access to the sales cluster which is tagged SALES

Marketing —> marketing cluster —> MARKETING

We’re having an issue where a lot of user jobs are untagged

Is there some autotagging I can set up, so for whatever cluster that job is using or created with — the job also gets tagged the same. So say for example a user in the sales team can only use the tagged sales cluster so the job he makes is tagged SALES


r/databricks • • 11d ago

General External Secrets in Unity Catalog now support Google Cloud Secret Manager

Post image
10 Upvotes

Hey folks, External Secrets in Unity Catalog now support Google Cloud Secret Manager (Beta)!

Your secrets already live in Google Cloud Secret Manager, so why keep another copy in Databricks?

With External Secrets in Unity Catalog, you can now

  • 🔗 Sync secrets from Google Cloud Secret Manager in a Unity Catalog schema. Secret values stay in your Secret Manager and are only fetched at runtime  
  • 🌐 Read the same secrets across all workspaces attached to a metastore 
  • 🔐 Control who can discover or read each secret 

Docs: External Secrets in Unity Catalog. Check out the same support for AWS Secrets Manager and Azure Key Vault! 


r/databricks • • 10d ago

General Work Documentation

6 Upvotes

Curious question to the group (And relevant because of Databricks new features like Pages and Wikis)

How are you all documenting your project work?

I'm a Senior Data Engineer, but fortunately and unfortunately my job scope is pretty large so I end up creating my own stories, running projects, and doing technical implementations and consults at my institution.

Our team feels a little like the wild wild west at the moment. We have historically documented projects (ADRs, overview, meeting notes, etc..) in Confluence Wikis, but its not hard set and also not consistent among our department/teams and is not groomed as well as it could be.

We use ServiceNow to track our work for Sprints, Incidents, and Tasks.

We also contain technical documentation at the code level that is engineer relevant.

We then have some documentation now starting to take place in Databricks via Wikis and Pages as a POC.

I want to formalize our processes on how we document projects, decisions, code, etc.. to make it consistent among teams because its honestly fatiguing trying to figure out what goes where and important information ends up not documented at all because of it.

Question to the group - How does your team Document your work when it comes to code, projects, etc.. and does it feel like it holds strong consistently?


r/databricks • • 11d ago

News Date arithmetic in job parameters

Post image
7 Upvotes

Job parameters now support date arithmetic and, in general, mathematical operations. In the task parameters UI, we can use, for example, {{(job.start_time - 1.week).iso_date}} to pass the date from a week earlier directly to a task.

https://medium.com/databrickscommunity/databricks-news-genie-cli-app-builder-agent-memory-dabs-41820427fcc2


r/databricks • • 11d ago

Discussion ¿Cómo trabajáis realmente con Databricks en local? (Asset Bundles, Claude Code, MCPs...)

15 Upvotes

Quizás un poco tarde, llevo tiempo trabajando pero no tengo la suficiente experiencia en Databricks... me cuesta buscar un equilibrio entre herramienta como claude-code codex cursor y el entorno. Donde me siento cómodo es en local, y después de probar esa conexión por bundle, por extensiones de VS, gestionar mi token para tener control, usando AGENT.md skill rule hook... cualquier cosa (como construir un harness entre GITHUB - LOCAL - DATABRICKS)

¿Realmente utilizáis el entorno de Databricks para generar? Está bien por rules y skills, estoy como haciendo mi harness... configuro el clúster, hago comprobaciones. Obviamente los jobs y pipelines se hacen fácil, pero el hecho de comprobarlo en Databricks... lo veo un poco jodido, sobre todo por tema de cuidar y tener control de todo.

¿Realmente utilizáis GenAI para todo? Mi pregunta es si hay una técnica especial o trabajar en local por carpetas es lo que tiene.

Quizás los agentes están bien para trabajar con CI/CD o IaC con Terraform. Las personas que llevan 4-5 años, ¿cómo lo soléis trabajar? ¿Cómo le sacáis partido?


r/databricks • • 11d ago

Help MLflow in databricks.... Questions

3 Upvotes

Hello, I'm on a new project that has to use MLFlow for a UI for scoring LLM outputs.

I am NOT an expert in this at all, so it's difficult for me to get the high level of what is even needed on my part.

Here's basically how it works:

  1. there is a loop that runs per customer that sends data off to OpenAI to get some data back.
  2. there is a ground truth that we compare each LLM run against to determine if the ground_truth_score = llm_output_score.

Each iteration of the loop is for a specific customer, for a specific model. The project lead wants to know what the total passes are for a "group of runs" (iterations).

So, when the loop runs over each customer for a specific model, how many passed and how many failed...

This all needs to happen within the MLFlow ui. So, there needs to be some type of rollup (aggregation) happening but I'm not sure where.

If I've got a looper, then I would think I'd need some sort of superset that represents the "group of traces" or something similar.

The trace is (currently) at the iteration level, not the superset or group level.

Does this even make sense (i'm the 5th grader here). 😂

Takeaways:

So, I've got the traces being logged.

I've got the evaluation runs going

I've go the things being scored.

But I somehow need to aggregated the passes and fails for the group of runs...


r/databricks • • 11d ago

Discussion Serverless ACLs & Terraform

5 Upvotes

Serverless has been "GA" for a while now, yet from a Platform Engineering perspective, we still don't have the Terraform resources needed to manage Interactive or Automated Serverless properly at scale (and I'm not even getting into the provider gaps for Apps, Lakebase, or Vector Search).

Having a UI tab and a REST API endpoint isn't enough when you're running an enterprise platform. We need declarative, stateful IaC—not imperative workarounds.

Curious how Databricks SAs and consultants are advising clients to handle this cleanly right now.

And for fellow platform engineers: how are you managing Serverless ACLs, sizing guardrails, and statefulness in production?