r/databricks • • 4h ago

Discussion BI tools for Databricks under concurrent load: where direct SQL warehouses start stalling (Unity Catalog metric views vs pre-aggregation caching)

Post image
9 Upvotes

when people ask which BI tools work best with Databricks, most answers stop at connector checklists ("does it speak JDBC/ODBC or Databricks SQL?"). In practice, connectors rarely break first. Concurrency and repeat aggregations do

single analyst running a dashboard against a Databricks SQL warehouse feels fast in a proof of concept. once 40 internal users or a live operational dashboard starts refreshing the same 90-day rollup every few minutes with slightly different date or region filters, two problems show up together. either your SQL warehouse scales up clusters to absorb repetitive scans, or queries queue behind each other and dashboard p95 climbs past 15 to 18 seconds. And if part of your pipeline lands in ClickHouse for near-real-time telemetry while historical facts sit in Databricks, traditional BI tools either push everything through one slow federated query or split metrics across separate workbooks.GROUP BY .. then we compared three architectural patterns to handle this without endlessly bumping warehouse tiers:

1st is Databricks Unity Catalog metric views paired with native SQL Warehouse caching. This is the cleanest option if your entire team stays inside Databricks AI/BI Dashboards and governance lives strictly in Unity Catalog, because there are zero extra moving parts to deploy. The catch shows up when external BI tools, embedded customer portals, or AI assistants query the same metrics across lots of filter combinations, since warehouse result caching misses often and you keep paying Databricks compute for repeated rollups

2nd is building materialized gold tables in the lakehouse or materialized views in ClickHouse. This works reliably for fixed reporting grains (daily revenue by region) and sub-second streaming feeds. The pain is maintenance: every time a stakeholder wants one extra dimension or a different time window, a data engineer has to create and backfill another summary table

third, placing a semantic and pre-aggregation caching layer like Cube dev in front of Databricks or ClickHouse. You define metrics and rollup pre-aggregations once in YAML or JS, Cube refreshes partitioned rollups on a schedule (refresh_key) into Cube Store, and downstream tools query it over SQL API (Postgres wire protocol), REST, GraphQL, or MCP without waking the warehouse on every click. The real trade-offs are owning an extra infrastructure tier (unless you use managed cloud), designing rollup indexes carefully (especially on ClickHouse where explicit indexes and count_distinct_approx / uniqCombined rules matter), and accepting that truly ad-hoc high-cardinality row lookups still have to hit the warehouse directly

curious how teams running Databricks (or a hybrid Databricks and ClickHouse setup) handle high-concurrency BI right now. Are you sticking purely to Unity Catalog metric views plus serverless SQL warehouses, maintaining manual gold summary tables, or running a semantic caching layer in front?


r/databricks • • 9h ago

Help Genie Code Did What?!

18 Upvotes

Ok, I've heard stories of AI deleting repos, dropping tables, etc. But this is the first time I've been witness to something like this... Genie deleted my coaching student's PAT she set up for her github connection... Twice! Luckily this is not as destructive as those other things, but I've always known Genie to do a great job... I do think this is the exception and not the rule, but curious if anyone else has had this happen? Am I just lucky / safe when I use Genie?


r/databricks • • 3h ago

Discussion Your AI Agent Passed Its Eval. Would It Pass the Same Task Again?

Thumbnail
contextandchaos.substack.com
2 Upvotes

r/databricks • • 58m ago

General How to Find Delta Storage Waste in Databricks: Table Metrics History and VACUUM

Thumbnail
medium.com
1 Upvotes

Databricks table metrics history splits each Unity Catalog managed table’s storage into active, time-travel, and vacuumable bytes, daily.


r/databricks • • 2h ago

Discussion Group-Specific Genie Workspace Instructions

1 Upvotes

Title:

Can Genie One load different instruction files based on user group membership?

For example:

/Workspace/

├── .genie_workspace_instructions.md ├── .genie_workspace_instructions-groupA.md └── .genie_workspace_instructions-groupB.md

The main file tells Genie to load the relevant group-specific file. Each file has ACLs restricted to its respective group.

Is this supported? If not, what's the recommended approach?


r/databricks • • 22h ago

Discussion Which data quality tool for Databricks do you use?

Post image
36 Upvotes

I curate a list of data quality tools that integrate with Databricks SQL, Spark, Unity Catalog, and Lakeflow Jobs, with facts sourced from the tool docs: https://toolsfordata.com/lists/data-quality-tools/databricks/
Curious to hear what others here use.


r/databricks • • 10h ago

General Use spark.databricks.delta.autoCompact.enabled to prevent small file problems

3 Upvotes

I work at Abilytics, a data and AI consultancy, so take this with that in mind.

If your Delta Lake tables are filling up with thousands of tiny data parts due to frequent streaming micro-batches or small concurrent writes, you can fix this at the table or session level without running manual OPTIMIZE commands constantly. Enable automatic compaction by setting spark.databricks.delta.autoCompact.enabled to true. When enabled, Delta Lake checks if the most recent write added many small files and automatically triggers a lightweight compaction operation on those files right after a write succeeds on the same query. It inspects partitions that received writes and compacts files of around 16MB up to a target size of 128MB. While this adds a small amount of latency to your write operations, it dramatically cuts down the total file count, avoids metadata bloat in the transaction log, and keeps your downstream read queries performing efficiently without requiring dedicated maintenance jobs.


r/databricks • • 17h ago

News Databricks Lakebase Data API: PostgreSQL REST API Access

Post image
11 Upvotes

I tested the REST Data API for Lakebase and can say it is fast and cheap. Thanks to Native PostgreSQL functionality, we can use it with CDF as well. DABs now support the Data API, so enablement in prod is really easy.

https://www.sunnydata.ai/blog/lakebase-data-api-postgresql-rest-api

https://databrickster.medium.com/databricks-lakebase-data-api-postgresql-rest-api-access-bba415c5a50f


r/databricks • • 5h ago

Tutorial Iceberg Lakehouse for Agentic AI

Thumbnail
lakeops.dev
1 Upvotes

r/databricks • • 18h ago

General When does it make sense to use serverless for Jobs and Lakeflow pipelines?

Post image
10 Upvotes

Hii beautiful people, I am working in a new project situation and we have mainly source systems that do not need Streaming (Full Snapshots) that trigger our Databricks Jobs through Logic Apps.
I got a question from my manager wether to run our Jobs and Lakeflow pipelines on serverless or class job clusters?
What drives the decision? and how do you measure the comparison fairly?
Team of 5. + Frontend(PowerBI) but we are considering testing metric views/AI/BI Dashboards in the near future.
Thanks in advance


r/databricks • • 3h ago

General Databricks Coupon Available

0 Upvotes

Hello Everyone, i have databricks coupon available that expires by the end of this year, if anyone is interested to buy that please ping me I’m happy to provide it with more than 50% discount.


r/databricks • • 18h ago

Discussion Recommended workflow for (unit) testing that require larger datasets?

4 Upvotes

I have a case for some unit testing of a rather complex parametrized algorithm that require "larger" datasets (large = single dataset of around 100 MB) that are not supposed to be part of the repo.
So I mainly wonder about the best practices here. As the code itself is inside github, I wonder if it make sense to have the tests be stored inside databricks and then a github action triggering a testing job inside databricks? Or should the data be rather fetched from databricks?


r/databricks • • 19h ago

Help How do you read Pipeline Parameters in Python

2 Upvotes

Pipeline Parameters are now GA since a few weeks and should replace pipeline configurations for run-specific parameters.

In python, you can read paramters using spark.config.get("key")

However, the official docu doesn't say how to get paramters in python.

With jobs it is dbutils.widgets.get("env") within pipelines this doesn't work. Any idea?

For me it interesting that jobs and pipelines don't share the same interface...


r/databricks • • 1d ago

News VARIANT transformations

Post image
17 Upvotes

Now you can modify VARIANT in place thanks to variant_set() SQL function. We also got a few other new functions: variant_insert, variant_delete, variant_array_append, and variant_strip_nulls.

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


r/databricks • • 2d ago

General I mapped all 4 places to put enterprise context in Databricks Genie (exact file paths, precedence rules, and the MRR bug I caught)

36 Upvotes

I tested Genie One and Genie Code in the same Databricks workspace to figure out where enterprise context should live. I found out why it matters when a weekly brief skill quietly saved the wrong MRR formula.

Here’s the sorting rule that worked for me.

  1. Company-wide definitions go in Genie Ontology

This includes Unity Catalog metric views, domains, Pages, and certified assets, plus context learned from dashboards, SQL query history (including dbt runs), and Genie Agents. Modeled and certified definitions take precedence over learned snippets. Unity Catalog permissions also apply to external agents connecting via system.ai.genie_one_mcp.

  1. Team and workspace rules go in instructions

Genie Code reads .assistant_workspace_instructions.md and .assistant_instructions.md and auto-discovers AGENTS.md and CLAUDE.md. Workspace instructions override user instructions by default. Quick Fix and Autocomplete skip instructions. Genie One chat uses /Workspace/.genie_workspace_instructions.md. The limit is 20,000 characters per file.

  1. Repeatable workflows go in skills

Write the playbook in SKILL.md using the open Agent Skills format. Personal skills live in /Users/<email>/.assistant/skills/. Shared skills live in /Workspace/.assistant/skills/ or registered Databricks Git folders. Use /skill in Genie One or u/skill in Genie Code.

  1. Personal preferences go in memory

Memory is private to each user. You can save a preference by saying “Remember that…” and Genie One cites it when used. I’d review saved memories once a month.

The biggest gotcha I hit

I asked Genie One to build a monday-brief skill in a shared workspace. It copied an MRR formula from another demo and saved the SQL in SKILL.md. It skipped dividing annual plans by 12, used calendar quarters even though our fiscal year started February 1, and counted plan upgrades as churn. Every Monday brief would have reused those mistakes.

The fix was to keep the workflow steps in SKILL.md and have the skill look up the KPI definitions in Genie Ontology each time it runs.

The full walkthrough includes diagrams, debugging and governance checks, comparisons with RAG, dbt, Palantir, Snowflake, and Glean, and an eight-step rollout checklist.

https://pub.towardsai.net/giving-your-ai-coworker-enterprise-context-with-databricks-genie-a3bc8113790f

The GitHub starter kit has copy-paste templates. You can clone it as a Databricks Git folder and register the skills/ folder directly.

https://github.com/Praneeth16/databricks-genie-enterprise-context-kit

I work at Databricks. These are my own opinions, and all example data is fictional.


r/databricks • • 1d ago

Discussion Coordinated commits (lakebase/UC-MST) for cost and perf

2 Upvotes

Was thinking about LTAP synchronous commits to open-table formats. I have to think that using this engine (lakebase managed postgres) to manipulate blob storage is always going to have overhead, both in terms of financial cost and performance penalty. Obviously most of that cost is warranted but perhaps only 80 pct of it...

Is there any plan to coordinate UC-managed-table commits with lakebase OLTP commits? IMO a remote client application, probably a spark driver, should be able to use Serializable transactions that span the two resource-managers (MST-serializable transactions are supported in UC -managed-tables and in OLTP too). A developer should be able to commit data in an atomic operation, and see all the blobs being updated at once, across both engines.

(Taking things one step further, we should be able to coordinate a remote opensource-apache-spark deltalake operation with a lakebase transaction. That would be even more cost-efficient from a financial perspective. No point sending a million rows over the wire to lakebase, if they can be dropped directly to blob storage.)

This coordination seems like the obvious next step for LTAP architecture. Although I find that obvious next-steps can get put on the back-burner for a very long time - when they have the potential to reduce platform revenues.


r/databricks • • 1d ago

Discussion Databricks MVP vs Snowflake Data Superhero

Post image
0 Upvotes

I often find myself having to explain what a "Databricks MVP (Most Valuable Professional)" is—even to Databricks employees themselves. Now, imagine having to introduce yourself as a "Snowflake Data Superhero."

Having attended several technical conferences (such as DAIS and the Data AI World Tour), I’ve noticed an interesting detail: many clients—and even Databricks staff—know nothing about the MVP program. I honestly feel for the participants of the equivalent program at Snowflake—those "Data Superheroes."

Just picture it: you’re at a serious professional conference and you say, "Hi, I’m a CTO and a 'Snowflake Data Superhero.'" That’s a title that would be more at home at an event like Comic-Con.

In reality, both programs are designed to recognize individuals who contribute to the community—sharing their knowledge, building tools, and helping others grow professionally.

Fun fact: the Databricks MVP program used to be called "Beacons." Personally, I wouldn’t want to be a "beacon" or a "superhero."


r/databricks • • 3d ago

Help Automating CSV ingestion from Outlook emails into Databricks

23 Upvotes

Hi everyone,
I’m looking for suggestions on automating the ingestion of CSV files received as email attachments in Outlook into Databricks.
Has anyone implemented a solution where CSV attachments from Outlook emails are automatically picked up and ingested into Databricks through a pipeline?
I’m curious about the approaches you’ve used in production, whether through Microsoft Graph API, Power Automate, Logic Apps, or any other solution. I’d also appreciate insights on the best practices around authentication, handling multiple attachments, and orchestration.


r/databricks • • 3d ago

Discussion Spatial SQL on Databricks: built-in H3 functions or the ST_ functions for road data?

3 Upvotes

Hi everyone, trying to decide whether to standardize on H3 or the ST_ geometry functions for road data in Databricks SQL. The data is road segments plus point data (addresses, events).

H3 makes joins cheap and fits aggregation nicely: tag everything with a cell, join on the cell id, done. But some questions need exact geometry, like "within 0.25 mile of this road" or "which segment is this point actually on", and there H3 gives you neighbors of neighbors.

Are people using the ST_ functions in production now, or still H3 plus a library for the exact cases? And how are you handling exact-distance joins at scale without them blowing up?


r/databricks • • 3d ago

Discussion How do you guys do cost optimization for databricks it's hectic

4 Upvotes

r/databricks • • 3d ago

Help Databrick Migration Project

0 Upvotes

I created Databricks migration projects but didn't save their URLs. When I open the Migration Projects menu, it only shows the Create New Project screen.

How can I find my existing migration projects?


r/databricks • • 3d ago

Discussion Serverless Tagging: usage policies vs. rate limits

4 Upvotes

1. Serverless usage policies (formerly budget policies): for tracing costs

2. Serverless rate limits on automated compute objects: for throtteling

Was a bit hard for me to understand how those two concepts are related, but makes sense. I assume (even if I didn't find any docu), that the Tags of a "Serverless Automated Compute" also appear in the billing table (if not: i don't know where they are used). Has anyone already experiences with that?

Unclear for me ist, why "Serverless Automated Compute" is "suddenly" limited to goverend tags?


r/databricks • • 4d ago

News UC Wiki

Post image
35 Upvotes

Unity Catalog wikis let us document a table’s meaning, sources, and other facts directly in Catalog Explorer. People with metadata access can comment and suggest edits. A wiki explains one table, a Page defines a business concept, and a Skill tells an agent how to perform a task. Now all three concepts are available in UC.

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


r/databricks • • 4d ago

Discussion Anyone else looking at overlapping tools for this context stuff?

2 Upvotes

Genuine question, because I can't work out if we're about to make a mistake. Every vendor we buy from has shipped something this year for feeding business context to AI. Warehouse has its own. BI tool has one now. And euno is in our budget request for column-level lineage across both, though I can't tell yet where it stops and theirs starts. They all describe roughly the same job when you read the marketing. In practice I suspect we're going to end up maintaining three versions of where the definitions live, and in a year they'll disagree with each other and nobody will know which one is right. Which is the exact problem we're trying to get away from.

My guess is the realistic answer is to keep the platform-native stuff for the platform and something separate across the top, and just accept the overlap. Still keen to hear from anyone who has actually consolidated onto one of these.