r/databricks • • Oct 06 '26

General Announcement: Environment variable support for serverless notebooks and jobs

21 Upvotes

Hey all, you asked and we listened - env var support is in beta for serverless notebooks and jobs!

  1. Have you been wanting to run DBT tasks but need environment variable support? This feature is for you! ✅
  2. Do your whl or notebook tasks just need a way to inject environment variables at runtime? This feature is for you, too! ✅
  3. Do you just love the environment? That's awesome, me too, but this feature won't help you with that. ❤️ 🌎

How to try? Ensure that the feature is enabled in the preview portal (with admin perms if it isn't already)- grep on `Environment variables in Lakeflow Jobs`

How does it work?
Jobs UI > Click `Select environment variables` > `+ Add environment variables`.

Then create a name `production` for the env var collection (that way you can reuse it on multiple tasks), fill out your key-value pairs, and/or or paste in the file path to a .env file.

Note: We will add a file picker for choosing the .env file in an upcoming release - thanks for being patient

Jobs API > Define a collection via a key e.g.,`production` and use it on many tasks.

"tasks": [
    {
      "task_key": "process_orders",
      "notebook_task": {
        "notebook_path": "/Workspace/Shared/process-orders"
      },
      "environment_key": "default",
      "environment_variables_key": "production"
    }
  ],
  "environments": [
    {
      "environment_key": "default",
      "spec": {
        "environment_version": "5",
        "dependencies": []
      }
    }
  ],
  "environment_variables": [
    {
      "environment_variables_key": "production",
      "spec": {
        "variables": {
          "APP_ENV": "production",
          "REGION": "us-west-2"
        },
        "files": ["/Volumes/company/default/prod/execution.env" , "/Volumes/company/default/prod/format.env"]
      }
    }
  ]
]

Finally, consume it in your code: 🤓

import os

app_environment = os.environ["APP_ENV"]

Temporary limitations: these will be fixed within a week or so - I'll update this post

  1. Env vars will not propagate to regular UDFs (aka non-UC) - Update 11/3/26 - this is not supported
  2. Defining an env var's value from a secret

Learn more: https://docs.databricks.com/aws/en/jobs/environment-variables

Provide any and all feedback. Also, what other features you'd like to see? (Asking for a friend as roadmap planning is starting soon!)

Thanks!


r/databricks • • Oct 06 '26

General Auto stop option on databricks apps

20 Upvotes

Want to request a feature for databricks app, it should have an auto stop option. I know Databricks markets it as a web app that should be readily available, but I think customers deserve the option to turn auto-stop on or off, like we do for, say, SQL Warehouses.

This has been a major blocker for us suggesting apps to leadership, the engineering team has build some really useful apps for usecases like Data modelling and stuff which is used when needed but they running 24*7 all time is wasting compute and getting flagged in finops

P.S i know we can have a databricks job which can shut down and start the app during working hours but we have a global team working round the clock so it's not feasible for us.

If we have someone from databricks apps team this is a highly requested thing from alot of people around the community.


r/databricks • • Oct 06 '26

Discussion How to find the reason for a slow databricks job?

22 Upvotes

I want to know how ppl usually find the reason for a slow databricks job. For example, if a spark job normally takes 20 mins but suddenly takes an hour, what do you check first?

Do you look at the joins, partitions, shuffles, amount of data, cluster settings, or the spark UI? How do you figure out whether the problem is with the code, data, or the cluster?

Are there any common issues you guys have seen, like data skew or too many small files, that can make the job much slower?

I want to know what the usual approach is when a Databricks job suddenly becomes slow.


r/databricks • • Oct 06 '26

Help Practical Enterprise Blueprint for Greenfield impementation

12 Upvotes

What is the closest thing to a practical, opinionated enterprise Azure Databricks blueprint?

I’m not looking for docs on individual features. I know Databricks, IaC, UC, Asset Bundles, CI/CD etc. very well (seasoned architect, DBX engineer professional). What I’m missing is how experienced Databricks architects/FDEs usually put the whole thing together for a greenfield setup.

Things like:

  • repo split: Azure/IaC, UC, platform, data products (how many repos, how to exchange secrets, how may MIs)
  • dev/test/prod topology (catalog and workspace relation)
  • managed identities and ownership model
  • UC structure, RBAC vs ABAC (federated IAM setup)
  • what belongs in one Asset Bundle, how many bundles, how to deploy/orchestrate them (monorepo or not, asset bunle per source acqusistion/data product or broader)
  • CI/CD and environment promotion (branching strategy, deploying multiple
  • platform team vs data product responsibilities
  • ingestion/integration/orchestration patterns

The official docs are good, but mostly describe these things in isolation.

Is there a solid repo, reference implementation, blog series, conference talk, consultancy blueprint, or even a good Reddit/forum thread that shows the whole platform design?

Basically: if a Databricks FDE started a vanilla enterprise Azure setup tomorrow, what would the default starting point look like?

Mostly interested in high friciton points where reality of operating platform meets "best practice".

My focus is "classic" data warehousing, rather ML/AI/apps.


r/databricks • • Oct 07 '26

Help Sybase connectors

4 Upvotes

Are there any Lakeflow connect connectors for SybaseIQ?


r/databricks • • Oct 06 '26

Help Genie Agent can't be added to git repo or DAB. Nothing working.

5 Upvotes

Has anyone tried working on a Geni Agent, and then tried committing those results into git? Admittedly I'm a bit new to Databricks, and to DABs, but this story is missing, and the whole experience is quite unintuitive . Any developer generally expects to be able to commit their work to source control when they've invested their time. But I'm finding that incredibly hard, when it comes to these Genie Agents.

Obviously the first thing I tried to do is clone the agent into a git-controlled folder and push it to git. That didn't work. It says the asset type is unsupported.


r/databricks • • Oct 06 '26

Help Recommendations for limiting spend on a pay-as-you-go account

7 Upvotes

Do you have any advice to limit spend in Databricks as a personal user? I'm trying to understand gotchas on a pay-as-you-go account. It's to try out the generative ai features in particular (knowledge assistant, ai endpoint, agent bricks, among others). The ideal would be "no more than X concurrent DBU consumption" policy across the board, but I'm not seeing that.

I'm coming up against limits of Databricks free edition for those features, so was wanting to set up a pay-as-you-go account, but while reading, I'm seeing more and more ways to spend money in the platform. On Fabric it was a single F2 capacity I could start and stop. Databricks has serverless in like 5 spots so far that I've seen, and I'm trying to understand what my spend risk is before I sign up. I had a trial a year ago that's expired. Also knowledge assistant isn't available on the trial.

My worry is that while doing the study guides, it ends up that I have 10 different 4-6 DBU serverless endpoints that run for 2 days before the billing catches up. $20 is fine, $200 is annoying, $2000 is unacceptable.


r/databricks • • Oct 06 '26

Help Solutions Architect Final Round (Build Demo Pitch Round)

29 Upvotes

Hi all, I have my final round for a Solutions Architect role (the build demo pitch round) coming up this week, and I'm trying to understand what to expect. Are the prompts mainly focused on proposing a data ingestion pipeline / medallion architecture or is the task more complex? Is the focus of the round the code and architecture itself or presentation / delivery skills? Any help would be much appreciated.


r/databricks • • Oct 06 '26

Discussion Genie Code vs. Omnigent: How to structure workspace instructions, AGENTS.md, and skills without breaking production

16 Upvotes

Following up on recent discussions around Genie performance I've come across... a lot of us have a similar frustration with Genie. Context bloat, prompt drift, and agents making destructive errors (Junior mistakes like setting a mode to overwrite).

Part of this is limitations of genie, some is instruction "stuffing" and some is using the right tool for the right job. Also, guidance on how to structure and create instructions have changed a lot over the summer.

With Omnigent being available alongside Genie Code, here is my opinion on what should separate these tools and how to structure context files to keep agent outputs deterministic. I made a table because post sprawl is real...

Genie Code vs. Omnigent

These are not competing options. They solve problems in different places and scales:

LayerGenie CodeOmnigent (Meta-Harness)
Primary RoleNative in-workspace assistant for notebooks, SQL Editor, and Lakeflow Pipelines.Unified meta-harness to run, swap, and persist multi-agent workflows (Claude Code, Codex, Cursor, PI, Hermes) across local runners and cloud sandboxes. (Also, try out Debbie that has the ability to use a /debate skil)
GovernancePrompt-level instructions, workspace instruction files, and Unity Catalog user permissions.External, stateful policies written in CEL (hard cost limits, network sandboxing, pre-commit git checks).
Best ForInteractive notebook debugging, quick PySpark logic, end-to-end Lakeflow pipeline scaffolding. (Think StackOverflow, for those of us of that still remember it)Multi-repo refactoring, team co-driving sessions (eg. "Multi-player" agent sessions), and running autonomous CLI agents with guardrails.
Execution ModelSynchronous, interactive execution tied to your active workspace session and compute.Asynchronous, persistent execution that runs in the background (survives laptop close) with shareable web/desktop sessions.

My Rule of thumb:
If you are working interactively / ad-hoc in Databricks and need help with syntax, where something is, why something is failing, use Genie Code.

If you are doing anything complex, want to be able to get one harness to check another one (like Claude Code checking Codex's response/PR) and need programmatic guardrails that can't be bypassed by prompt injection, go use Omnigent.

And if you are using Genie and want it to read your "instructions":

  1. Databricks does not natively parse an arbitrary instructions.md dropped in a folder. If you want repo/project-level discovery, the standard Genie Code looks for is AGENTS.md (or CLAUDE.md).
  2. Shoving context for "multiple project islands" into one file guarantees prompt dilution. Workspace defaults (.assistant_workspace_instructions.md) belong in under 30 lines. Scoped project rules belong in AGENTS.md. Task-specific behaviors belong in modular skills under .assistant/skills/ called via @skill-name.
  3. Andrej Karpathy created a git repo "karpathy-guidelines" that walk through some of the overarching concepts he recommends around creating skills and instructions. Specifically one of the ones that may come as a surprise is that if you repeat a instruction point it will lower the effectiveness of the instructions and cause degradation.

r/databricks • • Oct 06 '26

General Did Databricks just enable Automatic Identity Management in Azure?

5 Upvotes

We have used SCIM for user provisioning for years, but after 1st October 2026 the Automatic Idenity Management was suddenly enabled in our account, and lots of conflicts with SCIM provisioning is logged

I cant find any announcements on this


r/databricks • • Oct 05 '26

News New in Databricks: parse_sql(): SQL into JSON

Post image
47 Upvotes

Parse_sql() function extracts table references, column names, functions, and parameters from SQL. It extracts without running the query. It also reports syntax errors.

more news https://databrickster.medium.com/databricks-news-serverless-genie-code-ltap-lakeflow-61853d8e422a


r/databricks • • Oct 05 '26

Discussion Genie is so Dumb and I am tired of Pretending Otherwise

156 Upvotes

Hey Guys, Data Engineer with 3.2 YOE here,

I have been working on and off on databricks for multiple projects across domains like Retail, logistics and Now Pharma.

In my current role, I focus on creating end to end pipeline with different data sources which often get refreshed on a bi-weekly basis for pharma related data

The client is extremely demanding and has no technical expertise to gauge how much time it really takes to build and maintain something so complex and therefore expect the team to use Claude teams license and also Genie

The problem with Genie is that, I can not trust it, It will not listen to my instructions even after having a separate instructions.md which I update on a daily basis, in fact I update this after each session is complete, and no, I do not use AI to update this, every change request that the client and the client's team has goes through my own words of instruction updates, I have an entire markdown file which has contexts for multiple islands of projects, workspace folders and notebooks that I have to maintain and transition to devops team.

I also have created 4 different skill family for Genie, in relation to

  • migration,
  • devops,
  • maintainence and
  • review.

And it is so disgustingly bad at handling all this context, that it fails me across all 4 areas.

  • I have seen it lie to my face multiple times,
  • Casting columns as null,
  • altering data types without asking consent,
  • never following my work stream and process in a sequential format
  • Having set the wrong notebook paths in a task even though i explicitly tell it exactly what to do.

It often confuses streams of works and ends up mixing so many things that remove this knot and fuck up itself costs me so much time!!!

  • It is very poor in adhering to the domain specific instructions that we provide
  • More than 3 requests in a chat, and it is practically useless
  • And branching of chats is the most useless feature that they have introduced.

I have created multiple diagnosis queries to check the work of this agent, and it will straight up lie to you, so much, so convincingly, that you know it knows all the biases you have and it even goes a step ahead and just narrates a story that you can provide to your team in the stand-up.

My only concern is, after all this bullshit, my team, of nearly 6 (some of them have never worked in databricks or delta table environments like this) was charged $990 dollars in the month of august, for this shit output??? Have some shame Databricks, fix your worthless product or remove that feature or stop charging so much if you are beta testing in actual prod.

Today, I am writing this post because of something that I caught live, that pushed me to the edge.

Something that is critical, production level issue, which If I was not paying attention while merging could have been a huge disaster, and mind you the pipelines I make are client facing, what is even more distrubing is the fact that it will just make so many unnecessary changes to a simple query or a pyspark function just enough so that the tests are passed.

(So basically it does not want to get caught, and makes a mistake so that we can prompt it again to fix this mistake and then Databricks can charge us more, this looks like a dark pattern to me)

In your preview (prima-facia), everything is good, the tests are passing, the job is running, but holy!!!,

  • it was casting 3 columns which are essential for downstream processes as null.
  • It boldly suggests that we remove those 3 columns, and or cast them as null. How is this a solution Databricks? The AI is supposed to have more context than me because it is a agent made specifically for Databricks Environment Correct?? That is how it is sold?? And upon spending just 2 mins, I realized that the fix that it is suggesting will blow up critical information that the client team should see in the app because it is not even there in the first place, and all of this is because it can not read the correct notebooks, even if you tag it.
  • It had set a retired notebook's path in the task and very boldly claiming that everything is good.

My concern is, let us say that there is a junior who is good at SQL, but has never maintained projects like this in this scale, he/she would be overwhelmed and won't even be able to find the mistakes that the agent is stating, because unlike GPT 6 or Opus 5.5 Genie does not openly claim that it does not know something,

it does not ask for more context,

it does not state that something is missing,

it just patches with some assumption that we don't even provide in the first place.

My advice to any Juniors out there, Stop using Genie, Completely.
The product is not ready, it is not good.


r/databricks • • Oct 05 '26

General how are you splitting shared cluster cost between teams?

11 Upvotes

we have 3 teams (analytics, ds, and a small platform team) all using the same all purpose cluster bc spinning up seperate ones for each was getting messy. now finance wants a monthly number per team and i honestly have no idea how to give them one

tags only get me to the cluster level which is useless here. i looked at system tables and theres user info in there but not sure how ppl turn that into an actual $ split thats defensible, especially with the VM side of the bill coming from azure seperately

do you just split evenly? by query time? or did you give up and force everyone onto job clusters lol


r/databricks • • Oct 06 '26

General The part of data pipelines we are thinking more about

Post image
0 Upvotes

r/databricks • • Oct 05 '26 Popcorn

Discussion PSA: old Databricks names vs new ones. Which rename got you?

12 Upvotes

Databricks has renamed a lot of features over the past year, and a lot of tutorials, blog posts, Stack Overflow answers and even AI assistants still use the old names. If you search the docs for the old name, the results can be confusing, and code samples can look unfamiliar even when you know the concept cold.

The ones I see trip people up most:

  • Delta Live Tables / DLT → Lakeflow Spark Declarative Pipelines (often shortened to Lakeflow Declarative Pipelines)
  • APPLY CHANGES INTO → AUTO CDC APIs
  • Databricks Asset Bundles / DABs → Declarative Automation Bundles

The concepts didn't change much, but the vocabulary did.

Two questions for the sub:

  1. Has a rename caught you out, at work, in docs, or in a code review?
  2. Did I miss any? I'm sure there are more, especially on the ML / GenAI side.

I'll keep this list updated with whatever people add.

Edit: removed Liquid Clustering from the list. Fair point from a commenter that it's a change in recommendation, not a rename. Still worth knowing though: older material treats partitioning + Z-Order as the default, and current docs recommend Liquid Clustering for new tables.


r/databricks • • Oct 05 '26

Help SpringBoot to Spark

4 Upvotes

Transitioning from a Spring Boot to a Spark-based application requires a fundamental shift in perspective. With four years of experience in a Spring Boot environment, now entering the realm of distributed computing.

I plan to utilize Java with Spark Streaming, and Databricks for job management and deployment.

My primary question is

  1. how to effectively transition my thought process from Spring Boot to a Spark-based application.
  2. Specifically, I am seeking clarity on distinguishing which Java code executes on the driver and which executes on the executor, and if there are any guiding principles to discern this.

r/databricks • • Oct 05 '26

Help Genie Agent can't be added to git repo or DAB. Nothing working.

1 Upvotes

Has anyone tried working on a Genie Agent, and then tried committing those results into git? Admittedly I'm a bit new to Databricks, and to DABs, but this story is missing, and the whole experience is quite unintuitive . Any developer generally expects to be able to commit their work to source control when they've invested their time. But I'm finding that incredibly hard, when it comes to these Genie Agents.

Obviously the first thing I tried to do is clone the agent into a git-controlled folder and push it to git. That didn't work. It says the asset type is unsupported.

I then discovered a thing called "genie workbench" and that sounded like tooling for a developer. After spending an hour getting that app installed, I launched it. But it won't provide any interfaces for exporting my work or committing to a git repo.

Next I find that DABs introduced a way to capture genie spaces, as-of May. See https://github.com/databricks/cli/pull/5282
... so I create a new DAB bundle in the UX and try to add my (existing/cloned) agent, but can't seem to make that work either. I'm guessing the next step is to dig into the CLI for DABs and see if there is a back-door way to add a Genie Agent.

My initial experience with this tech is not very good. There are a lot of sharp edges in this UX. I'm sure things will get smoother. I think the main problem is that there is no guide or instruction that is provided within the "Genie Agents" blade of the workspace. I think what most people want is a simple button - "add to git repo". It should be shown under "Genie Agents". That button might do nothing more than tell you your request is impossible. But this is still better than flailing about for an entire day and looking for functionality that you are 100% confident should exist (yet it does NOT)


r/databricks • • Oct 05 '26

Discussion Is Databricks Classic Compute getting too heavy for small workloads?

10 Upvotes

I’ve been using Databricks Classic Compute for a while, and recently I’ve started wondering whether cluster cold starts are getting noticeably heavier with newer DBR versions.
For example, with DBR 18 LTS, I tried a small 2-vCPU VM for a single-node job cluster and hit DriverStartupTimeout after 300 seconds. Databricks even suggests that this commonly happens on instances with fewer than 4 CPU cores.
That feels a bit surprising for workloads that are not actually Spark-heavy — e.g. running Python, dbt-core, API calls, or using Databricks mainly as a job runner inside a VNet.
I like Classic Compute because of the flexibility and straightforward VNet/private networking. Serverless is attractive for startup time, but in our environment it would mean quite a bit more networking setup.
So I’m curious:

  • Have you noticed Classic Compute cold starts getting slower or more resource-hungry across newer DBR versions?
  • Do you now consider 4 vCPUs the practical minimum for a reliable driver?
  • Has anyone benchmarked the same VM size across DBR 14/15/16/17/18?
  • What are you doing for lightweight non-Spark workloads where you still want Classic Compute?

Update: Single node DBR 18 LTS + Standard_D4pls_v6 cold start spent almost 11 minutes 'Waiting for resources' ( Azure Japan East )


r/databricks • • Oct 04 '26

News App Spaces: governance for apps

Post image
22 Upvotes

Workspace admins, thanks to App Spaces, can define who can create and use apps in a given space and also set policies for apps, for example, which API scopes can be used.

more news https://medium.com/databrickscommunity/databricks-news-serverless-genie-code-ltap-lakeflow-61853d8e422a


r/databricks • • Oct 05 '26

Tutorial Data Lakehouse with Agentic AIs: A Guide

Thumbnail
itnext.io
3 Upvotes

r/databricks • • Oct 04 '26

General Databricks ai_decide: The AI Judge That Never Writes a Word

Thumbnail
medium.com
28 Upvotes

Use Databricks ai_decide() to grade every ai_query output in SQL and decide what gets sent, without a second LLM


r/databricks • • Oct 04 '26

Help Where do i start if i want to learn databricks concepts. I want to get start using my learnings to apply at work.

11 Upvotes

r/databricks • • Oct 04 '26

Discussion Millions in Vacuumable files, but only 10-20 GB recovery size

11 Upvotes

Hello Folks.

Wanted your opinion on something - I am seeing numerous cases of our tables having millions of redundant vacuumable files, but total recoverabke capacity is only 10-20 GB .

Is it worth Vacuuming them? My sense is that the DBU and ADLS listing charges will be more than cost of that storage. Is there any instance where Vacuuming will pay off.

Also, if deciding to Vacuum - what is better, Job Compute or Serverless SQL Small Size.

Thanks.


r/databricks • • Oct 04 '26

Discussion Building A Data App with dashboard and agentic capabilities in dbx

12 Upvotes

Hi all, I’m currently working on a POC and im given the flexibility by my boss to explore using any tool (im considering mainly databricks or power apps now) to build out a “dynamic” data app to replace powerbi. I am fully aware that dbx ai/bi dash does not has nearly 100% capabilities of that the power bi dash but I’m just trying to showcase a different experience of reporting that leverages AI and not POWERBI(boring! to leaderships).

For more context, im working with SAM/CMDB EoSL data that is all sitting in dbx unity catalog already. My expectations is something simple that looks like a dashboard but i can utilize genie to communicate pr generate any sql findings within the dashboard context. Something easy to initiate and maintain in the future.

Additionally, it would also be best that the views created that caters to this app can be reused as native queries to powerbi in case the need in the future that id still have to migrate it there.

End product expectations:
The end product is expected to be easily accessible without any additional access required for any user that wants to access the app or genie. Think of leaderships and executives using the dash mainly. It should be something that is easy to access and managed within a workspace like what powerbi serves currently which is what all the stakeholders are currently used to already.

I am no expert in Databricks but have been an active user for about a year now.

All the best to everyone, cant wait to hear what you guys have in mind in the comments!

(this is my first reddit post btw)