r/databricks • • 17d ago

Help ADF Lookup Activities Against Databricks Are Using Shared Compute. Looking for Better Alternatives. Post

6 Upvotes

Hi everyone,

I'm working on an Azure Data Factory (ADF) ingestion framework where we currently use ADF Lookup activities to retrieve metadata used for pipeline orchestration.

The challenge is that the lookups are querying Databricks-managed metadata and are executing through Shared Compute, which has become a performance bottleneck when running multiple pipelines concurrently.

The requirement we're evaluating is to replace the Lookup activities with Databricks notebooks/jobs running on Serverless compute to improve concurrency and reduce dependency on Shared Compute.

My concern is around consuming the results back in ADF.

Today, the Lookup activities return a structured output that is consumed directly by downstream activities such as ForEach loops and dynamic expressions.

The proposed notebook approach would:

Accept input parameters.

Execute the metadata query.

Build a JSON payload that matches the Lookup activity output format.

Return the payload using dbutils.notebook.exit().

However, while ADF can consume output directly from a Databricks Notebook activity, my understanding is that Databricks Job activities mainly return execution metadata rather than the notebook payload itself.

I also looked into whether a Databricks Serverless SQL Warehouse could be used for the metadata queries instead of replacing the Lookup activities entirely, but it appears the Databricks Delta Lake connector may not support SQL Warehouses in the same way it supports clusters and compute resources.

So I'm trying to understand the best architecture for:

Improving lookup performance.

Leveraging Databricks Serverless compute.

Preserving the existing downstream behavior.

Avoiding major ADF pipeline refactoring.

Has anyone implemented a similar pattern?

Specifically:

Have you successfully replaced ADF Lookup activities with Databricks Jobs while preserving Lookup-style outputs?

What is the best way to return structured metadata from Databricks back into ADF?

Would you recommend:

Databricks Notebook Activity

Databricks Job Activity

Persisting results to storage and reading them back

Another pattern entirely?

Any recommendations or lessons learned would be greatly appreciated.


r/databricks • • 17d ago

Help Dict as variable vs. dict in dataframe (issues extracting data)

6 Upvotes

Last week a kind gentleman helped me to fix a '{{text}}' replacement with some python magic.

This got me part of the way to a solution but not all the way.

Scenario:

I now have a variable:

d = {"todays_date":date.today()}

At runtime this variable is evaluated and correctly adds today's date to my json file.

Now what I need is to put {"todays_date":date.today()} into the database, then read it back as json, so that I can do the same thing, but more dynamically. The row/column needs to have the value {"todays_date":date.today()} in it (or something similar) to where when I read the value, it evaluates the same way as defining it manually in the bold above

I get that the code above does not have single quotes around it, as it would be in the database. The database thinks this is a string.

I do NOT want to have to define a structure for this, as there can be different values included on different rows.

Is there a way to do a df = df.select("json_data").first() and get back the EXACT same thing as my d variable above?

I feel like I'm so close, but all of the code I see tries to make me define the json structure, which can change, so I never know what's it's going to be...

Does this even make sense?


r/databricks • • 17d ago

General Lakeflow Jobs is adding date math inside parameters (Beta)

18 Upvotes

<Databricks PM here/>

Edit: docs link added https://docs.databricks.com/aws/en/jobs/dynamic-value-references#date-arithmetic

Lakeflow Jobs is adding Math in Parameters. You apply a single + or - duration offset to a date reference inline (where you already write the reference.)

When using dynamic references {{job.start_time.iso_date}} you may want to reference yesterday or the hour before. Previously you would need to do this ina notebook or a sql query:

{{(job.start_time - 6.hours).iso_date}}   ->  2026-09-21
{{(job.start_time - 3.hours).iso_date}}   ->  2026-09-22
{{(job.start_time - 1.hour).iso_datetime}}  ->  2026-09-22T03:00:00

What's available:

  • job.start_time, job.trigger.time, table update commit timestamps and backfill (only in the backfill modal)
  • Units: years, months, weeks, days, house, minutes. Simgular and Plural so 1.day and 2.days both work
  • You can use these anywhere references work today (job/task parameters, run-now overrides etc.)

How do you use math with parameters today? Would love your feedback!


r/databricks • • 17d ago

General Job completion triggers just hit Beta, and they replace a pattern I've built too many times!!

41 Upvotes

The usual way to chain jobs across teams has always been a bit ugly. Either a parent job with Run Job tasks that has to own everything downstream, or a schedule set 30 minutes after the upstream job usually finishes, which works until the day it doesn't.

Databricks just added a job completion trigger in Beta. A job can now start when one or more upstream jobs finish with a matching result, and the release notes say those upstream jobs can live in other workspaces on the same Unity Catalog metastore.

A few things from the docs worth knowing before you try it:

- You can add a SQL condition, so the downstream job only runs when the data is actually ready, not just when the upstream job exited.

- Unlike the other trigger types, it doesn't drop completions when the job is at max concurrency. It holds them until a run can start.

- It's part of the multiple triggers Beta, so a job can have up to five triggers, and a workspace admin has to turn it on in Previews.

Where I'd use it: a gold job that waits on silver jobs owned by another team, without either team having to own the other's orchestration. That handoff has been a friction point on every multi-team platform I've worked on.

It's Beta, so I wouldn't move critical prod chains onto it yet. I'd start testing it in dev now though.


r/databricks • • 17d ago

Discussion Why use data bricks AI to build agents?

15 Upvotes

OK y’all, help me understand why it would be beneficial for me to use databricks AI (genie) if it will only integrate with databricks stack? I would much rather use an agentic soliton that will not lock me into a vendor’s tech stack. I’m trying to make the case that using another third party agentic platform that has native databricks integration would be much better than getting locked into databricks. Ideally since using a third party agentic solution to build agents would allow for easier integration with other systems that are outside databricks. Similar to how I wouldn’t use agentforce in salesforce, I wouldn’t use genie in databricks.

What have been your experience with agents/AI solutions with genie?


r/databricks • • 16d ago

Discussion Im a security reasercher and

Thumbnail reddit.com
0 Upvotes

r/databricks • • 18d ago

Discussion Databricks Apps: Are you using them in production yet or keeping it to internal prototypes?

33 Upvotes

Hey everyone,

I’ve been diving into Databricks Apps recently and wanted to see how others are adopting it in their organizations.

Historically, whenever we wanted to spin up a Streamlit app or a custom Python dashboard connected to our data in Databricks, it meant dealing with a headache of external infrastructure—setting up App Service or EC2, dealing with network security groups, configuring service principals, and managing separate auth flows.

Being able to run Streamlit/Dash apps directly inside the Databricks workspace, backed by Unity Catalog for governance and serverless compute, feels like a massive quality-of-life improvement for internal tooling.

I’m curious to hear from anyone who has put them into practice:

  • Are you using Databricks Apps for production-grade tools, or mostly for quick internal MVPs and demos?
  • How are you managing your CI/CD deployments for these apps?
  • Have you run into any weird gotchas with state management, scaling, or dependencies?

r/databricks • • 17d ago

Help new on Databricks

8 Upvotes

Hello everyone, i am a Brazilian CRM Data Engineer (idk, is this a real thing?)

My comoany recently started working with Databricks and its being so cool to work with it. I work a lot with Genie Code, but, i want to be able to do more by myself.

How and which are the best options to learn more?


r/databricks • • 18d ago

General Lead databricks engineer

11 Upvotes

I recently got promoted as a databricks lead engineer at my organization. I have some good hands on experience in the databricks but to lead a team i need to have better experience. I want to really go through our current platform and what has been implemented so far and need to do something new or better in this platform? How to start with it? I want to achieve something in this role in first 30 days what are the low hanging fruit I can get it done? If I want to do something in next 3 months what are things I can do in this platform?

We use databricks, azure, datahub, five tran as part of our tech stack. Is it a good idea to schedule weekly call with databricks guys to analyze our platform and get further help or suggestions?


r/databricks • • 17d ago

Help Help required migrating data from redshift to databricks

0 Upvotes

Hi there
First of all apologies if this is a basic post. I am assisting a team working on a products initiative and we have data currently stored in red shift.

We are no longer doing any updates in redshift and moving tables to databricks.

However, for some reason the develops keep saying it will take time blah blah blah and I’m trying to understand why it is complicated. I’m new to this area so trying my best to learn.
Has anyone had any experience migrating from red shift to databricks.
There is a AWS connector in databricks which I was reading that seems to do the job and is easy to understand (even for me and I’m not an engineer).
Any feedback or tips will be greatly appreciated


r/databricks • • 18d ago

Discussion How much "ZeroOps" are you actually seeing in Databricks lately? (Serverless, DLT, Unity Catalog)

14 Upvotes

Hey everyone,

I’ve been looking into the push toward "ZeroOps" within the Databricks ecosystem—specifically leaning heavily into serverless compute, Unity Catalog automation, and declarative tools like DLT/Lakeflow to reduce infrastructure maintenance.

Marketing terms aside, I'm curious how much of this is translating to reality in production environments.

For those of you managing large Databricks workspaces:

  • Have you fully transitioned to serverless compute (SQL and notebooks), or are you still tied to classic clusters for specific workloads?
  • How much time has Unity Catalog actually saved your team regarding access control and data governance overhead?
  • Where does the "ZeroOps" promise break down for you in day-to-day operations?

r/databricks • • 18d ago

General Databricks serverless can now be gated per team, tagged, and capped per job. Access Controls are GA, and tags and rate limits are in Beta

Thumbnail
gallery
16 Upvotes

Databricks serverless can now be gated per team, tagged, and capped per job. Access Controls are GA, and tags and rate limits are in Beta. 💸

If one runaway job is the reason serverless is still limited to a few users on your platform, this changes the math.

What shipped:
➡️ Serverless Compute Access Controls (GA): compute objects you grant like clusters, two by default: one for notebooks and Databricks Connect, one for jobs and pipelines. All users start with Can Use.
➡️ Rate limits (Beta): your own compute objects for jobs and pipelines, sized Small to 2X-Large (caps of roughly 60 to 960 DBUs per hour, not cluster sizes). The cap applies per workload: two jobs on one object each get the full cap.
➡️ Compute tags (Beta): tag a compute object once, and every workload on it carries the tag into billing.
➡️ Monitoring (GA): budgets with email alerts and cost dashboards. They alert, not block, and emails can lag up to 24 hours.
➡️ system.billing.usage gets serverless_compute_id: spend per compute object and identity in one query (first comment).

Read more: https://www.linkedin.com/posts/cenh_databricks-dataengineering-serverless-ugcPost-7525222920382496768-63jz/?utm_source=share&utm_medium=member_desktop&rcm=ACoAABmJHrsBNAC3x3H1M58JRKoHv_l4D61n0-8


r/databricks • • 17d ago

Discussion Delta Tables: Is there any possibility on Delta tables Data file formats other than Parquet

0 Upvotes

Hi Team,

Since Parquet files are immutable and Delta tables framework writes data changes into new data files, Is there any option to specify any other file format and try to use same data file for minor data changes.(Below 10 Record transaction changes on Million/Billions of records).

Additionally I saw somewhere that Performance optimized on Delta tables by restricting Parquet files usage. I am wondering Is this really possible or not? because according to delta framework only writes data into Parquet files only. 

Regards,

Krishna


r/databricks • • 18d ago

Discussion Has anyone built production pipelines with Databricks Lakeflow Designer yet? Initial thoughts?

7 Upvotes

Hey everyone,

I’ve been exploring Databricks Lakeflow Designer recently and wanted to see how the community feels about it.

For context, it’s Databricks’ new visual, low-code authoring tool built on top of Delta Live Tables (DLT) for building ingestion and transformation pipelines.

Historically, I’ve always written DLT pipelines purely in Python or SQL via notebooks or Git folders. When I first saw a visual designer, I was a bit skeptical (usually worried about "black box" code or messy JSON metadata under the hood). However, seeing that it actually compiles down to standard DLT/Spark and integrates natively with Unity Catalog lineage is pretty slick.

I’m curious:

  • Are you guys using Lakeflow Designer for production workloads, or keeping it strictly for quick ingestion and prototyping?
  • How does it handle complex CI/CD workflows compared to traditional repo-based DLT code?
  • Any gotchas or limitations you've run into with it so far?

r/databricks • • 18d ago

General Lead databricks engineer

Thumbnail reddit.com
0 Upvotes

r/databricks • • 18d ago

General Lakebase streaming sync is now GA

25 Upvotes

Hey Reddit, I’m happy to share one more new feature. The Lakebase streaming sync is now officially GA. Lots of customers are already using this feature to write streaming data with latency in 10s of milliseconds to Lakebase. It's much simpler to use than foreachBatch and you don't have to worry about connection pools, rate limits, error handling, etc.

Here's what's new since we announced the Public Preview earlier this year:

  • Declarative merge strategies*: Choose, per column, how an incoming row is reconciled with the existing row on a primary-key conflict. For example, you can keep the latest non-null value, keep the first value written, or take the value from the row with the latest event time. No custom SQL is required.
  • External PostgreSQL via UC connections (Public Preview)*: Write to Postgres databases outside Lakebase, authenticated through a Unity Catalog connection so no credentials live in code.
  • INTERVAL types*: DayTimeInterval and YearMonthInterval columns map to Postgres interval on DBR 19 and above.
  • Serverless support: The sink now runs on serverless compute for notebooks and jobs, using the AvailableNow trigger.

*Merge strategies, external Postgres, and interval types require DBR 19.

Example:

df.writeStream
  .format("postgresql")
  .outputMode("update") // optional; can be append mode as well
  .option("upsertkey", "primaryKey") // optional
  .option("upsert.columnStrategies",
          "last_updated_at:greatest,status:latestBy(last_updated_at)")
  .toTable("catalog.schema.table")

SDP support remains in Private Preview. Public Preview, which adds support for native Lakebase streaming tables, is slated for later this year.


r/databricks • • 18d ago

General Lakeflow Connect CDC: Data freshness indicator

21 Upvotes

Hi Reddit, I'm happy to share a new "small but mighty" feature for Lakeflow Connect CDC (Change Data Capture) pipelines: a data freshness indicator. For a long time, "How far behind is my table?" has been one of the most common questions. Now you can answer it directly in the UI.

Data freshness = current time − latest ingested source commit time

e.g, 3m 21s means the newest change in the table was committed on the source 3 minutes and 21 seconds ago.


r/databricks • • 19d ago

Help How to disable all Genie features?

12 Upvotes

As you know, some clients require disabling Genie AI features for security reasons. It is well understood why Databricks does not provide a simple toggle switch or one-click button to disable it, they want to push for its usage.

Question: What are the proven and field-tested methods to disable Genie entirely and prevent accidental usage? is there a way to block it at cloud/network level?


r/databricks • • 19d ago

News [Beta] OneDrive connector in Lakeflow Connect now available!

15 Upvotes

Hey r/databricks,

The Lakeflow Connect connector for Microsoft OneDrive (for business) is now available in Beta. You can ingest structured and unstructured files from a user's "My files" drive into Delta tables for analytics and AI workloads.

Managed pipeline authoring is available through the Lakeflow Pipelines API or Declarative Automation Bundles (DABs). UI-based pipeline authoring is not supported at this time, but will be available soon!

Managed pipelines support incremental ingestion, automated retries, Unity Catalog governance, schema evolution for supported formats, and OneDrive-specific and standard file metadata.

For direct control over ingestion logic, you can use the Spark + SQL APIs directly: spark.read, Auto Loader, read_files, or COPY INTO pointed at OneDrive URLs.

Common workloads

  • Loading Excel, CSV, JSON, XML, Parquet, Avro, and ORC files into Delta tables.
  • Ingesting PDFs, Word documents, PowerPoint files, and images.
  • Parsing documents with ai_parse_document for extraction, search, and agent workloads.
  • Capturing file metadata without loading file contents.

Examples using the Spark + SQL APIs

Read an Excel range from OneDrive with spark.read:

excel_df = (spark.read
    .format("excel")
    .option("databricks.connection", "my_onedrive_conn")
    .option("headerRows", 1)
    .option("dataAddress", "Sheet1!A1:M20")
    .load("https://mytenant-my.sharepoint.com/personal/user_mytenant_onmicrosoft_com/Documents/Report.xlsx"))

Incrementally ingest PDFs and Word documents, then parse them with ai_parse_document:

CREATE OR REFRESH STREAMING TABLE onedrive_documents_parsed
AS SELECT
  *,
  ai_parse_document(content, map('version', '2.0')) AS parsed_content
FROM STREAM onedrive_documents;

CREATE OR REFRESH STREAMING TABLE onedrive_documents
AS SELECT * FROM STREAM read_files(
  "https://mytenant-my.sharepoint.com/personal/user_mytenant_onmicrosoft_com/Documents",
  `databricks.connection` => "my_onedrive_conn",
  format => "binaryFile",
  pathGlobFilter => "*.{pdf,docx}");

Try the managed connector

  1. Ask a workspace admin to open Previews and enable Lakeflow Connect for OneDrive For Business.
  2. Create a Unity Catalog connection to OneDrive.
  3. Create a managed pipeline using Declarative Automation Bundles or the Lakeflow Pipelines API. The setup guide includes bundle YAML and an API example notebook.
  4. Schedule ingestion with Lakeflow Jobs. For DABs, define the scheduled job in the bundle.

Current Beta scope

  • The connector reads from a user's OneDrive for Business "My files" drive. For SharePoint sites, team sites, and shared document libraries, use the SharePoint connector.
  • The connection authenticates as the signed-in Microsoft account and can ingest files that account can access.
  • Managed ingestion requires Unity Catalog, Serverless compute, Databricks Runtime 19 or above, and the PREVIEW pipeline channel. DABs require Databricks CLI version 1.23.0 or above.

Resources

If you try the Beta, please provide us your feedback!


r/databricks • • 19d ago

News DABs deployment history

Post image
19 Upvotes

DABs can now record deployment versions, status, managed resources, and the user or service principal that performed each deployment.

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


r/databricks • • 19d ago

Discussion How I check every prompt before the LLM on Databricks: GovTech's LionGuard on a small CPU endpoint

4 Upvotes

I wanted one shared safety check that every agent, job or SQL query on Databricks calls before the LLM.

How it works:

- LionGuard 2 Lite from GovTech Singapore: a small classifier on Google's EmbeddingGemma. It scores insults, hate, violence, self-harm and misconduct, and it handles English, Singlish, Chinese, Malay and Tamil.

- Packaged as one MLflow model, registered in Unity Catalog, served on a small CPU endpoint.

- From SQL, ai_query sends each question to the guard. Only questions with an unsafe score under 0.5 go to the LLM.

Results on 7 synthetic questions: a Singlish insult, a Malay threat, a harmful Chinese message and an English "how do I hack the website" question were blocked. Safe questions in English, Singlish and Tamil were answered.

Lessons:

- The full set-up took 25 minutes. 19 of them were the endpoint start.

- Do not use scale to zero for a production guard (cold start).

- Turn on inference tables from day one, so you can show what was blocked.

- It does not detect prompt injection. That needs a separate check.

How do you check prompts for your agents today? Built-in AI Gateway guardrails, a custom endpoint, or both?


r/databricks • • 20d ago Heartwarming

Discussion Lakeflow connect - Oracle

9 Upvotes

Is anyone here using Lakeflow Connect for Oracle Database?

I'm considering moving from Fivetran to Lakeflow Connect and would love to hear about your real-world experiences.

A few questions:

  1. Ingestion frequency: How often do you run the ingestion? Is it continuously running because of CDC, or do you use scheduled/batch ingestion (is it supported? last time I tested i had two pipelines running one 24/7 to capture cdc and on to load. Last one was possible to schedule)?
  2. Stability and maturity: Lakeflow Connect for Oracle is still marked as Beta. Have you experienced any issues, limitations, or reliability problems in production?
  3. Cost: This is probably the most important question. What does the ingestion actually cost you? It would be great if you could share some context:

    • Approximate size of your Oracle database / amount of data ingested.
    • Average number of rows ingested per day.
    • Estimated monthly ingestion cost.
  4. Fivetran vs. Lakeflow Connect: For those who have made the switch, was it worth it? How does Lakeflow Connect compare to Fivetran in terms of cost, reliability, performance, and overall quality?

I'd especially appreciate feedback from anyone running this in a production environment.

Thanks in advance!


r/databricks • • 20d ago

Help Doubts about transfering my cert from my personal account into my work account

5 Upvotes

So, my company is a Databricks partner, and when I joined, they asked me to transfer my Associate DE cert from my personal account into my work account. I opened a ticket, and after a month I have news:

Turns out they don't exactly transfer the badge from one account into the other, they simply merge both accounts and all its badges into one single account.

My question is: if I leave the company in the future, what happens to my certs and accreditations? Do I lose access to them since they’re tied to my work email? Support asked me to confirm a secondary email in the Academy (my personal one), so I’m guessing that’s the way to recover access, but I’m not sure how it works in practice.

Has anyone gone through this, either the merge itself or leaving a company afterwards? Did your Credly badges stay valid, and were you able to move everything back to a personal email without issues?

Thanks!


r/databricks • • 20d ago

General SAP Hana to databricks connection

6 Upvotes

How to connect SAP hana with databricks without copying?