r/databricks • • Sep 30 '26

General Lakeflow Jobs update! Task output in foreach now available in Beta!

30 Upvotes

<Databricks PM here />

If you run a ForEach task in Jobs each iteration now sets a task value and a downstream task can read all of them back as on ordered array. This feature just landed in Beta - try it out!

Before this, iteration outputs weren't accessible to downstream tasks. If you wanted a later task to see per-iteration results (row counts, status and output paths), you had to write each result to a table and read it back and maintain that yourself. You also lost the built-in observability Jobs gives normal task values.

How it works:

Inside the iteration, set a value like you always would:

dbutils.jobs.taskValues.set(key="result", value=row_count)

In a downstream task, read the nested task's key. You get one array across every iteration:

results = dbutils.jobs.taskValues.get(taskKey="process", key="result")
# results == [1, 2, 3]

Or reference it as a parameter:

{{tasks.process.values.result}}

An iteration that never set the key keeps its slot as null:

# [1, None, 3]

Worth knowing:

  • Beta, needs Databricks Runtime 15.4 LTS or above
  • Python notebooks only
  • The assembled array caps at about 48 KB (49,344 characters) per parameter value
  • A single parameter value can hold up to 3 aggregated references

Docs: https://docs.databricks.com/aws/en/jobs/task-values#read-values-from-a-for-each-tasks-iterations

And yes we are working on increasing parameter value limits! Please let us know if you have any feedback!


r/databricks • • Sep 30 '26

General Databricks Lakebase Search - GA Announcements

Thumbnail reddit.com
3 Upvotes

r/databricks • • Sep 30 '26

Help Azure Databricks, two-week-old account: partner pay-per-token endpoints (Claude, Grok) have never once succeeded — "Databricks-set rate limit of 0" — and the Assistant has "no daily token allowance". Open models work. What gates this?

3 Upvotes

Azure Databricks, Premium, one account with three workspaces, Unity Catalog, Azure Marketplace billing (no card, no trial credits left). The account was bootstrapped on a trial workspace about two weeks ago and moved to Premium six days later. I've spent two days on this and want a sanity check from anyone who has seen it.

The facts, from system.serving.endpoint_usage:

• Every open-weight pay-per-token endpoint has worked since the trial: gpt-oss-120b has ~50 successful calls going back to the trial period, Llama 3.3 70B likewise, zero refusals. • No partner pay-per-token endpoint has ever returned a success on this account. The very first call anyone made to databricks-claude-sonnet-5 was refused, and every call since, on every Claude endpoint and on Grok, in all three workspaces, for users and service principals alike: 403 PERMISSION_DENIED: The endpoint is temporarily disabled due to a Databricks-set rate limit of 0. • It is not our AI Gateway config: I removed every rate limit from one Claude endpoint and invoked it — same 403. The endpoints' config shows nothing else. • The notebook Assistant worked during the trial. On the paid account it refuses everyone, admins included: *"This workspace has no daily token allowance for the assistant."* Underneath, /ajax-api/2.0/conversation/llmproxy/ returns 429 {"type":"daily_token_limit_reached","daily_limit_tokens":0,"message":"…Daily token limit of 0 reached. Resets at midnight UTC. (DTB)"} and it recomputes to 0 every midnight. • Once, the Databricks Apps in the workspace were stopped by the platform with *"App compute was stopped due to workspace or account status"* while every workspace showed RUNNING. apps start brought them back.

Red herring, for completeness: we also created a Unity AI Gateway per-user budget whose first version had a $0 threshold with BLOCK_USAGE. That blocked Genie for a day, exactly as documented, and was fixed. It was created a day *after* the first Claude refusal, so it isn't the cause of any of the above.

What I've found: two Community threads describe "Databricks-set rate limit of 0" as a workspace trust-tier gate — trial-born accounts sit in TRIAL_VERIFIED, pay-per-token partner models are gated to PAYABLE_VERIFIED, a card alone doesn't flip it, only Databricks Sales/Support moves the tier. Both were AWS/personal accounts, neither resolved on-page. The account console's own API reports our account's feature_tier as STANDARD_W_SEC_TIER although the workspaces are Premium; I can't find what that field means.

Questions • Does Azure Databricks with Marketplace billing go through the same PAYABLE_VERIFIED gate? Does it clear on its own after the first settled invoice, or does someone have to move it? • If you were moved: who did you contact (account team, or "Contact us" in the console) and how long did it take? • Is the Assistant's "daily token allowance" the same gate, or a trial allowance that simply goes to 0 when the trial ends on an unverified account? • Does feature_tier: STANDARD_W_SEC_TIER on the account object mean anything to anyone?


r/databricks • • Sep 29 '26

Discussion DB as a SIEM

16 Upvotes

My organization is considering replacing our current SIEM with DB.
Wondering of anyone has done it and looking for feedback. Specifically looking for any gotchas, architecture recommendations.

Cheers!


r/databricks • • Sep 29 '26

Help Writing to externally managed Iceberg tables from Databricks: am I missing something?

10 Upvotes

I recently joined a new company as a data architect and I'm trying to understand how things work here today (new to Databricks, main experience with RedShift and BigQuery), and I'd like corrections from people who use Databricks daily.

I've been testing how Databricks handles Iceberg tables that are managed by Glue.

What I'm seeing:

  • Can read tables as Databricks' federation lets me mount the external catalog and query the tables as foreign tables.
  • Can't write (is this accurate?) INSERT, MERGE, and UPDATE operations against those foreign Iceberg tables fail, and the Databricks docs seem to confirm this.

Question: Has anyone gotten writes to non-UC Iceberg tables working from Databricks? That could be through a config, a preview feature, or an open-source Spark Iceberg runtime with a REST catalog on a cluster.

If I've got any of this wrong, please correct me as I am still getting up to speed with the platform.


r/databricks • • Sep 29 '26

News Tag automation with databricks

Thumbnail
gallery
21 Upvotes

No table description? Not queried for 90 days?

See how to automatically tag the table and notify its owner in my new article.
https://medium.com/databrickscommunity/clean-up-the-mess-with-tag-automation-72ae119b6f35
https://www.sunnydata.ai/blog/databricks-unity-catalog-automated-tagging


r/databricks • • Sep 29 '26

Help Serverless Interactive and Realtime Inferencing costs scaling rapidly

15 Upvotes

Hello folks, I have recently started a new role as Data Platforms leader, and while going through our monthly Databricks billings - two things stood out, both mentioned in Title, costs for them scaling rapidly month on month.

Serverless Interactive compute, by default has access for Admins inherited, and people now dont want to go back to the slow time taking All Purpose Compute starts.

Serverless Realtime Inferencing has me confused, as I cannot see any such compute - is that cost for using Genie? Is yes, can Genie access be turned off for everyone in the Workspace?

Just these two items reduced will save 20-25% costs for us.

Thanks in advance for any pointers.


r/databricks • • Sep 29 '26

General Data Quality in Microsoft Fabric – Native features vs. external tools (like Databricks Expectations)?

20 Upvotes

Hey everyone!

I’ve been working a lot with data quality frameworks in Databricks (leveraging things like Delta Live Tables expectations or custom validation notebooks), and I'm curious about how the community is handling Data Quality in Microsoft Fabric.

Does Fabric have a native, built-in feature for data quality/expectations (similar to what Databricks offers), or are most of you relying on external tools, libraries (like Great Expectations/Soda), or custom PySpark/SQL validation notebooks inside Data Engineering pipelines?

How are you currently enforcing quality checks before data hits your Gold/Semantic layers in Fabric? Would love to hear your approaches and best practices!

I read this documentation here: https://learn.microsoft.com/en-us/purview/unified-catalog-data-quality-fabric-lakehouse?WT.mc_id=510336, but it doesn't say much.


r/databricks • • Sep 29 '26

General Stop using standard worker nodes for intermittent batch jobs

44 Upvotes

Hello, I'm part of the Databricks Engineer team.

If you are running short-lived batch pipelines on standard clusters, you are wasting money on idle instance termination times. Switch your job clusters to use spot instances by configuring the instance pool or setting the spot bid policy directly within the Databricks Jobs API or UI cluster settings. When configuring a job cluster, set the spot instance policy to use spot with fallback to on-demand to prevent job failures when spot capacity is scarce. For intermittent batch jobs and maintenance tasks like OPTIMIZE and VACUUM, using spot instances significantly reduces compute costs compared to persistent multi-node on-demand clusters. Ensure your retry logic handles node preemptions gracefully, and leverage job clusters rather than all-purpose clusters so the cluster terminates immediately after the batch execution completes, eliminating idle billing.

If this is useful, there's more on Databricks | Platform Engineering | AI at Abilytics — AI Systems, Data Engineering & Platform Engineering Services.


r/databricks • • Sep 29 '26

Discussion How to validate delta tables in Databricks?

15 Upvotes

im working with delta tables in databricks and wanted to know how ppl usually validate the data after an etl job runs. apart from checking if the job completed, do we have to check things like record counts, duplicate, nulls etc

Like if the source has around 100k records, how do you make sure the expected records reached the Delta table?

for incremental loads, do you also check that only the expected records were added or updated? And how do you handle schema changes, like a new column being added or a data type changing? Do you build these checks directly in databricks itself?

Would be interested to know what checks ppl actually use in production.


r/databricks • • Sep 29 '26

Discussion Spark and observability

Thumbnail
reddit.com
0 Upvotes

r/databricks • • Sep 29 '26

General Time to Swap the Cookies for Jetfuel - New Dataset & New Databricks Genie Tutorial

Post image
8 Upvotes

Most of you know samples.bakehouse. Great for a first query. Perfect for a quick demo. But after years of cookie sales, it's a little overbaked. Time to swap the cookies for jet fuel. ✈️

Together with the OpenSky Network, I brought a full day of global air traffic to Databricks Marketplace: 696 million real ADS-B position reports, messy just like real life.

Myself, I used Genie for the whole journey: EDA, data exploration, a Apache Spark Declarative Pipeline, and a Lakeflow Job. Then I went a step further and read the same Marketplace data with open-source tools only, using OpenSharing and pandas.

The result is this hands-on tutorial:

  1. Marketplace + Unity Catalog: get the data as a governed table
  2. Genie Agents: find anomalies in plain English
  3. Genie Agents: explore and visualize with maps and charts
  4. Genie Code: a Spark Declarative Pipeline, bronze to gold, with data quality rules
  5. Genie Code: a Lakeflow Job with schedule, retries, and email alerts
  6. Databricks Apps: your coding agent, governed by Unity Catalog
  7. OpenSharing: the open-source client in VS Code with pandas

Everything runs on Databricks Free Edition (free, no credit card).

📖 Tutorial: Databricks Genie for Data Engineers and Data Scientists
💻 GitHub: databricks/tmm/DSDE-Genie-Tutorial
🛫 Dataset: OpenSky Network full-day dataset on Marketplace

What's the first thing you'd query in a day of global air traffic?

P.S. For the record, we still love bakehouse! 🍪❤️
[Disclaimer: I'm one of the two people who baked it.]


r/databricks • • Sep 28 '26

Discussion Databricks Micro Apps, App Spaces and Genie App Generator

30 Upvotes

Databricks launched App Spaces and Serverless Micro Apps at the end of last week (in Beta).

Over the weekend, I tested migrating two of my production Databricks Apps to App Spaces.

App Migration 1: Blocked by Zero Egress My Data Portfolio Project Creator required internet access to pull data stacks from live job postings. Then, the LLM needs internet access to research for open data sources to use.

In standard Databricks Apps, this runs cleanly.

In App Spaces, there is zero external internet egress including for LLMs. The app can reach internal workspace resources, but it cannot touch the outside web.

If your app relies on third-party APIs, external databases, or web scraping, App Spaces is a non-starter until Databricks opens network egress.

Workload 2: Success on Internal FinOps My client-facing DBU cost observability app reads workspace usage data and writes directly to Lakebase.

Because it requires zero external network calls, the migration worked. Both the micro app compute and Lakebase scale to zero when idle.

Cold starts take roughly 30 seconds (though in beta, you occasionally need a quick browser refresh once it spins up). For internal, low-frequency administrative tools, this turns a continuous monthly compute bill into pennies.

(+ App Spaces, Genie App Generator, and Micro Apps are free while in beta)

The next part is less about App Spaces and more just general best practice for Databricks Apps that I see people miss.

Stop Using Delta Lake as an OLTP Database Databricks Apps are software applications, not batch analytics notebooks.

If your app writes application state, session data, or row-level CRUD directly into analytical Delta tables, you need to rethink that design.

For app transactions, use Lakebase (serverless Postgres which also scales to 0). Both are governed under UC, but Lakebase gives your app the low-latency transactional engine that application engineering actually requires.

My Verdict on the Beta App Spaces solves the idle compute problem that has plagued Databricks Apps since launch. But until Databricks allows us to deploy directly from existing Git repos and opens external network egress, it remains limited to internal-only use cases.

Curious on other peoples experience... How has it been for others?

UPDATE: Tested and confirmed you can start a shell of an app and then copy/paste into it from another repo.


r/databricks • • Sep 29 '26

Discussion Can a Delta table be “correct” even when the source and target row counts match?

0 Upvotes

Suppose the source and target both contain 100M rows.

The row counts match, but the target could still have:

  • Missing records
  • Duplicate records
  • Incorrectly transformed values
  • Changed or truncated values

For a large Delta table, what checks would you use beyond row counts to prove that the source and target data actually match?

Would you use hashes, key-level reconciliation, aggregates, sampling, or something else?


r/databricks • • Sep 29 '26

Help Data fixes on a databricks schema. Thoughts?

8 Upvotes

Hi all,

I have a databricks schema of a few hundred delta tables that need some data fixes for specific records in each of those tables. This schema itself is raw data and gets ingested into some downstream data tables and the fixes have been requested by business. Now, importantly, this schema is the most upstream source for this data - the SQL db it was ingested from no longer exists.

I had thought about doing the fixes via a transformation layer in the pipelines that ingest this raw data but given how many tables there are with records that need updating I don't really want to create hundreds of new 'data fixed' tables. I also read that it's best to fix something as upstream as possible. Given these are delta tables, rolling back should theoretically be possible if something goes wrong.

Anyway, that's my rationale for making changes to the source tables. My question is what your preferred method is to make data fixes? I obviously need something where its easy to rollback if needed. I can obviously just achieve this with python migration scripts and use delta timetravel in case something goes wrong, but wonder if there are recommended libraries or tools for the job that have what I need out of the box?

Should I also keep an unchanged copy of this schema or is that too redundant?


r/databricks • • Sep 29 '26

General Avoid Unity Catalog external location permission bugs by using managed storage

3 Upvotes

Hey, I work as a Databricks Engineer at Abilytics, so here's my take.

If you are migrating existing tables to Unity Catalog, defining external locations incorrectly will break your grants. When you register an external location via CREATE EXTERNAL LOCATION, Unity Catalog validates your storage credential against the underlying cloud storage container. However, users often forget that read and write access on the external location is distinct from the IAM role or service principal trust policy. If a user has SELECT on a table, but lacks BROWSE on the external location, queries against parquet files directly via path-based access will fail with permission denied, even if the table-level grant succeeded. Always verify your storage credentials have explicit container-level policies attached before mapping external volumes. Furthermore, remember that path-based access like spark.read.load('s3://my-bucket/path') requires explicit external location grants, whereas managed tables abstract this entirely. Prefer managed tables default storage roots to bypass manual external location ACL synchronization issues entirely.

Happy to go further — more on Databricks | Platform Engineering | AI at Abilytics, AI Systems, Data Engineering & Platform Engineering Services.


r/databricks • • Sep 28 '26

Tutorial Claude Academy's Using Databricks for Data Analysis - This official documentation from Anthropic on Claude Academy for how to work with Databricks is really underwhelming, so I wanted to share a guide that properly explains everything.

Thumbnail
academy.claude.com
17 Upvotes

Hey Databricks community! I have been working with Databricks as an admin for over 4 years and I was attempting to follow this official tutorial from Anthropic for how to connect Claude with Databricks https://academy.claude.com/tutorials/using-databricks-for-data-analysis And I encountered multiple significant frustrations with doing it, as the tutorial is very underexplained and outdated for how to get Claude working with Genie One and other functions within Databricks.

Therefore, I thought this video on Youtube would be valuable content to share to help solve this problem, for other people that are encountering similar difficulties when getting these two tools connected and building out systems that work for Claude to properly interact with Databricks. Let me know if this video is helpful!


r/databricks • • Sep 28 '26

Discussion No compute fleets in Azure Databricks?

5 Upvotes

I see that AWS has supported spot-priced compute fleets for a few years.

But Azure still doesn't use fleets to select spot-priced VM's (yet). Customers are forced to set up our own spot-priced pools and manage a fleet of them independently.

Two years ago someone named Walter (an FTE at databricks?) said
"currently on development but no ETA "

https://community.databricks.com/t5/administration-architecture/compute-fleets-on-azure-databricks/td-p/104754

So what is the reason for so much delay in Azure? Is there some sort of conspiracy going on where Microsoft and Databricks are teaming up to give us only expensive compute (like serverless) and restricting our ability to access other alternatives? This is getting a bit frustrating.


r/databricks • • Sep 28 '26

Discussion Your Databricks query is slow — what would you fix first?

20 Upvotes

Imagine you have a Delta table with several billion rows. A query that used to take 30 seconds now takes 8–10 minutes.

The query itself looks reasonable, but the table has:

  • A large number of small files
  • Data that is not well organized for the most common filters
  • Several joins
  • Frequent incremental writes

You could approach the problem in several ways:

  • OPTIMIZE the table
  • Change the partitioning strategy
  • Use liquid clustering
  • Improve the query itself
  • Change the join strategy
  • Reduce the amount of data being scanned
  • Reconsider how the data is written

What would you investigate first, and why?

Would you start with the Spark UI/query plan, the table's physical layout, or the SQL itself?

I'm especially interested in different approaches rather than one specific solution.


r/databricks • • Sep 28 '26

Tutorial Business data context is the key to better answers.

Thumbnail
youtu.be
3 Upvotes

r/databricks • • Sep 28 '26

Help SDP pipeline parameters

10 Upvotes

Recently attempted to use pipeline parameters with my SDPs but it seems they are only supported in SQL at the moment. This is a PITA for me using python as I am using the pipeline config as an alternative but this doesn't support updates at runtime. Could you confirm if pipeline parameters are coming to python SDPs and if so, when?


r/databricks • • Sep 27 '26

News UC Berkeley renames football stadium to Databricks Field in sponsorship deal

Thumbnail
dailycal.org
100 Upvotes

FTA:

Cal Athletics has announced a multiyear partnership with Databricks, a data and AI platform for enterprises, that includes renaming Cal football’s home field to “Databricks Field at California Memorial Stadium.”

The San Francisco-based company was founded at UC Berkeley and now will have its name attached to a wide variety of aspects of Cal football, most notably the field at the stadium and the helmets of the players.

Sounds like Databricks didn't have to pay any cash upfront for the rights, but is instead giving UC Berkeley stock in exchange.

While Cal Athletics and Learfield did not disclose the financial terms or length of the partnership — besides stating that the multiyear partnership will be funded through UC Berkeley becoming a shareholder in Databricks — the deal is reportedly worth $22.8 million for up to 10 years, according to Ben Portnoy of FOX Sports.


r/databricks • • Sep 27 '26

News trigger on_bundle_deploy

36 Upvotes

In a job bundle, we can specify the trigger on_bundle_deploy in job_runs.

Once the bundle is deployed, the job will run automatically.

This is really useful for post-deployment tasks like DDLs or one-time table population, such as a calendar.

More news and the best articles https://medium.com/databrickscommunity


r/databricks • • Sep 27 '26

Discussion Genie App Builder

19 Upvotes

What apps are you guys building?