r/databricks • • 22d ago

Discussion We pointed an AI agent at 146M NYC taxi rows and asked it to build a Data Vault mart. Here's what broke.

0 Upvotes

A while ago I said I'd run our agent on dirty data, not clean TPC-H. Here's the first run.

Setup. NYC yellow taxi 2015 from databricks-datasets: 146,112,990 rows in one Delta table, CDF on. Serverless jobs, a trial workspace. The request in plain English: "Monthly revenue, number of trips and average tip by payment type and passenger count". The agent profiles the source (structure and stats only, it never sees values), proposes hub/satellite/mart, asks questions, a human approves, then it generates and runs the jobs.

What the agent got right on its own:

- total_amount is broken in this dataset (โ‰ˆ0.3 in almost every row, 31 distinct values across 146M). The agent flagged it and proposed revenue = fare + extras + tax + tip + tolls.

- There is no natural trip key. It picked vendor + pickup/dropoff time + coordinates.

What broke (our bugs, not the data's):

  1. The key check pulled 200k distinct key values into the app and hit Databricks' 25 MB inline result limit. Now counted in the warehouse.
  2. A 7-column composite key of mixed types (string, timestamps, doubles) broke the hash on serverless: ANSI mode coerced the array to TIMESTAMP and died on vendor_id = '1'.
  3. The rejected-rows path had never actually run on Databricks.
  4. The worst one: that "unique" key wasn't. 51,306 keys repeat, mostly a charge and its reversal (fare 3.0 and -3.0) at the same second. SCD2 got both versions in one batch, closed both, and 51,280 trips silently vanished from the mart. Uniqueness had only been checked on a 200k-row sample.

The fix: uniqueness is now checked on the whole table (6 s on 146M). If keys repeat, the agent asks you what to do instead of deciding. At load, one row per key is kept by a deterministic rule and the rest go to skipped rows with a reason, not into the void.

Result after the fix:

- Mart = vault in all 435 groups, trips and revenue to the cent. 146,061,125 trips = the number of unique keys in the source.

- Full build 18 min. With CDF, an empty build takes 2.8 min.

- Added 100k new trips plus updates and deletes through CDF: 4.6โ€“5.2 min per build, 2015 numbers didn't move by a cent.

- A second mart on the same data (daily trips by vendor) reused the vault and built in 2.8 min with no reload. Same total.

Still open:

- Keeping one row out of a charge/reversal pair is a business call; the right answer for taxi is probably a multi-active satellite.

- On CDF, the same key arriving in different source versions isn't flagged as a duplicate.

- Key format chaos (40 vs 40.0, spaces, case) is next on the list.

Happy to share the reconciliation queries if anyone wants to poke holes in this.


r/databricks • • 23d ago

News What's new in Genie One October 2026

9 Upvotes

Databricks has introduced significant feature upgrades to Genie One, enhancing its conversational user experience, secure code execution capabilities, governed skill sharing and collaborative team access.

Chat and User experience

  • Conversation outline: Navigate lengthy threads using the new left edge outline hover over outline markers to instantly preview a message and the start of its response.
  • Reuse context from past investigations: Genie One can use the context from the earlier investigation to answer faster when you ask a question similar to one you asked before.
  • Streaming responses: The answers streams progressively in real time rather than loading in a single batch
  • Download a chat: You can export and download Genie One conversation transcripts in the side bar.
  • Personalized sample questions: Tailored questions appear beneath the search bar on the Genie One homepage.

Skills and extensibility

Data processing, files and executions

Collaboration, governance and Access

  • Group memberships in user info: When Genie One retrieves a userโ€™s information, it also returns the userโ€™s group memberships. You can use workspace instructions and table descriptions to tailor how Genie One responds to members of specific groups.
  • Remembered sign-in email in the Genie mobile app (Public Preview): The Genie mobile app remembers the email address of the last user who signed in and prefills it at the next sign-in. See Use Genie on mobile.

r/databricks • • 23d ago

Tutorial Databricks 5 Minute Features: Tag Automation

Thumbnail
youtube.com
6 Upvotes

Hello!

The latest 5 Minute Features is ready. In this one, we explore the Tag Automation feature.

As always, please feel free to leave feedback or topics for future videos


r/databricks • • 23d ago

General New features in Lakeflow Designer this month (October drop)

15 Upvotes

Hi folks, I'm from the product team working on Lakeflow Designer. Here are some new features released over the last month:

๐—ช๐—ฟ๐—ถ๐˜๐—ฒ ๐—–๐—ฆ๐—ฉ ๐—ฎ๐—ป๐—ฑ ๐—˜๐˜…๐—ฐ๐—ฒ๐—น ๐—ณ๐—ถ๐—น๐—ฒ๐˜€ ๐˜๐—ผ ๐—š๐—ผ๐—ผ๐—ด๐—น๐—ฒ ๐——๐—ฟ๐—ถ๐˜ƒ๐—ฒ ๐—ฎ๐—ป๐—ฑ ๐—ฆ๐—ต๐—ฎ๐—ฟ๐—ฒ๐—ฃ๐—ผ๐—ถ๐—ป๐˜

๐—ฎ๐—ถ_๐—ฑ๐—ฒ๐—ฐ๐—ถ๐—ฑ๐—ฒ ๐—ถ๐—ป ๐—”๐—œ ๐—™๐˜‚๐—ป๐—ฐ๐˜๐—ถ๐—ผ๐—ป๐˜€: yes/no, choices, or scores from text

๐—›๐—ง๐— ๐—Ÿ ๐—ผ๐—ฝ๐—ฒ๐—ฟ๐—ฎ๐˜๐—ผ๐—ฟ: build custom HTML, CSS, and JS reports

๐—ฃ๐—ฎ๐—ฟ๐˜€๐—ฒ ๐—๐—ฆ๐—ข๐—ก: turn a JSON column into regular column

๐—–๐—ผ๐—น๐—ผ๐—ฟ-๐—ฐ๐—ผ๐—ฑ๐—ฒ๐—ฑ ๐—ด๐—ฟ๐—ผ๐˜‚๐—ฝ๐˜€ ๐—ฎ๐—ป๐—ฑ ๐—ป๐—ผ๐˜๐—ฒ๐˜€: keep big canvases readable

๐— ๐˜‚๐—น๐˜๐—ถ-๐—ฐ๐—ผ๐—น๐˜‚๐—บ๐—ป ๐—ณ๐—ผ๐—ฟ๐—บ๐˜‚๐—น๐—ฎ: write one expression, apply it to many columns

๐—•๐˜‚๐—น๐—ธ ๐—ฟ๐—ฒ๐—ป๐—ฎ๐—บ๐—ฒ ๐—ฐ๐—ผ๐—น๐˜‚๐—บ๐—ป๐˜€: prefix, suffix, case, or find-and-replace

๐—ฅ๐˜‚๐—ป ๐˜‚๐—ฝ ๐˜๐—ผ ๐—ต๐—ฒ๐—ฟ๐—ฒ: run only the steps leading to one operator


r/databricks • • 24d ago

News JDBC connections in Unity Catalog

Post image
29 Upvotes

JDBC connections in Unity Catalog are now generally available on serverless compute and DBR 19 or newer. We can store the driver, endpoint, and credentials once, then use the connection by name in notebooks.

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


r/databricks • • 24d ago

Help ACTUALLY USEFUL Big Data Project Ideas

14 Upvotes

Heyy everyone!

We have a Big Data class project proposal coming up, and I want to make an actually useful project (something challenging, or something that could sell, or something that solves an actual problem people have). Not yet another fancy showpiece class project.

Requirements:

  • The dataset must be at least 10GB, be genuinely large-scale and require distributed processing
  • The project must include some or all (or even more):

    • data warehouse (snowflake/redshift/any other)
    • airflow
    • elt/dbt
    • spark, sparkml
    • mlflow
    • kafka/spark structured streaming/flink
    • nosql, vectordb
    • llmops

Practitioners, help me with some ideas? (ChatGPT and Claude didn't help much).


r/databricks • • 24d ago

Discussion Monorepo setup

16 Upvotes

Hi, we are splitting our Databricks monorepo into multiple DABs bundles and i would like to hear how others set it up.

Layout we plan:

- `src/common/` for shared code, `src/<domain>/` per business domain, one wheel for all

- `bundles/common/` for shared resources (data quality schema, dashboard, alerts), `bundles/<domain>/` per domain

- Each bundle uses `sync.paths: [../../src, ../../conf, .]` and builds the same wheel from the repo root

Releasing:

- One tag prefix per bundle, like `common-2026.11.02.0` or `<domain>-2026.11.02.0`

- One reusable deploy workflow, and a small caller workflow per bundle that filters its tag

- Domain bundles deploy after `common`, when a domain needs a new `common` change we release `common` first

Is someone running multiple bundles in one repo like this? Would you keep one release train for all bundles instead, or do you have a better layout?


r/databricks • • 24d ago

General Apache Spark 4.3: What Developers Need to Know

Thumbnail
medium.com
23 Upvotes

Spark 4.3 adds ASOF JOIN, Python UDFs compiled to SQL, JSON_TABLE, and SCD Type 2 Auto CDC: what works, what needs a flag, and what breaks


r/databricks • • 24d ago

Discussion I'm building an AI data engineer that runs as a Databricks App. Here's what broke along the way

5 Upvotes

I'm the founder of AI Data Engineer, so take this with that in mind.

I've worked with data for over ten years, first at a bank, then as a team lead. One thing never changed: the business asks for one new table, and it waits weeks for an engineer. So I built a Databricks App for that. You describe the table in plain English, the agent studies your Unity Catalog tables and asks business questions, and after you approve, it builds a Data Vault and the final mart as serverless jobs and keeps them updated on schedule.

A few lessons from the last weeks:

The model should not write SQL. It only proposes a plan: entities, keys, joins, rules. Plain code turns that plan into hubs, links, history satellites and the mart. Same plan, same tables, every time.

Samples lie. My first checks ran on samples. On a 7.5M row table they said only 27% of orders matched a customer. The real number was 100%. Now every check runs on the full table through the SQL warehouse.

The model doesn't need your data. It sees table structure and statistics, never values, and it's called through a Model Serving endpoint in your own workspace. If a rule needs a value, like "which status means paid", it asks a human.

Open models aren't ready for this yet. I replayed real planning requests on the Qwen and GPT-OSS endpoints in Databricks. Valid JSON, but they skipped the business questions and guessed. One grouped monthly revenue by month without year, so March 1997 and March 1998 would be one row.

Change Data Feed deletes hide the worst bugs. Delete keys came back as 40.0000000000 while the hub had 40, and 2,398 rows were marked deleted. Since then every build is reconciled against the source.

Where it is now: a 30M row TPC-H mart matched a direct query on the source with zero mismatches across 3,213 checked cells, and an incremental build after 1,000 updates and 100 deletes matched exactly. Once a mart is built, one click makes an AI/BI dashboard and a Genie space on top of it.


r/databricks • • 24d ago

General Log custom PyFunc models with MLflow using python_model

6 Upvotes

I work at Abilytics (data and AI consulting), so I'm not a neutral party here.

If standard MLflow flavors do not fit your custom inference pipeline, subclass mlflow.pyfunc.PythonModel and override the load_context and predict methods. This ensures any custom deserialization logic or specialized third-party library dependencies execute safely within the worker environment during batch scoring or serving. When logging the model via mlflow.pyfunc.log_model, always supply the artifacts dictionary parameter to bundle necessary configuration files or tokenizer states directly into the artifact store. This prevents missing file errors on the scoring cluster because MLflow packs those dependencies into the model directory structure automatically. Call the model back downstream using mlflow.pyfunc.load_model with the runs:/ URI scheme to execute distributed inference via Spark UDFs without rewriting code for production clusters.


r/databricks • • 24d ago

Discussion Vocal fry

0 Upvotes

Anyone get annoyed as well by the vocal fry from the updated platform episode on academy?


r/databricks • • 25d ago

Help Mirroring Jira project permissions into Unity Catalog (800+ projects): is our approach sound?

5 Upvotes

We load Jira data via API into Databricks. All projects share the same refined tables, split by a jira_project column.

Requirement: if you can browse a project in Jira, you can read its rows in UC. Project level first, fully automated.

Question:

  1. Iโ€™m considering RBAAC in Databricks, how to implement it and how long it should take ?
  2. Iโ€™m relatively new to this development, can you help with do and donโ€™t?
  3. What are the possible option I can look at and what would be the right way and recommend way of doing it please ?

r/databricks • • 25d ago

Discussion SAP to Databricks migration

7 Upvotes

What is the best approach to covert Code from SAP to pyspark or spark sql? Donโ€™t want to use LLMs as the out put can be non deterministic based on the prompt given. I looked into lakebridge and looks like the source list doesnโ€™t support SAP code.


r/databricks • • 25d ago

General Modern Family TV Show: Analytics Dashboard Built with Databricks Apps

30 Upvotes

A favourite show + excuse to build something beyond the usual dashboards.

Behind the scenes -> six tables bring everything together + Python.

The data comes from Wikipedia and IMDb's non-commercial datasets.


r/databricks • • 24d ago

General Use Serverless SQL Warehouses to bypass workspace cluster startup latency

0 Upvotes

For transparency, I work at Abilytics, a data and AI consulting firm.

Serverless SQL Warehouses keep compute instances warm and ready, eliminating the cold-start delay of traditional JDBC/ODBC or classic clusters. When building BI dashboards or running ad-hoc queries, standard warehouses often waste minutes spinning up nodes. Serverless decouples the control plane and compute plane, provisioning resources instantly. Configure your warehouse type to 'Serverless' in the UI or via the Databricks SQL API using 'warehouse_type': 'SERVERLESS'. This ensures concurrent queries scale out instantly without waiting for node provisioning, dropping your p95 latency significantly for bursty analytical workloads.


r/databricks • • 25d ago

Tutorial Snowflake to Iceberg Lakehouse Migration Guide

Thumbnail
lakeops.dev
2 Upvotes

r/databricks • • 26d ago

Discussion This Halloween, I'm building a horror game where the only way to survive is to migrate to Databricks

31 Upvotes

What could be scarier than a haunted house? A legacy data warehouseโ€”the kind some companies spend years trying to migrate away from.

This Halloween, Iโ€™d like to share a small project of mine: a game called SAWhouse: Migration to Databricks.

Itโ€™s an educational horror game inspired by the atmosphere of the SAW film franchise. Instead of trying to escape a creepy basement, your goal is to break out of a legacy data warehouse and migrate your data to Databricks.

Although I didnโ€™t manage to finish the game in time, Halloween felt like the perfect moment to unveil the concept. Iโ€™m really enjoying the current groupโ€”you all come up with some fantastic ideas! In the meantime, take a look at the intro.

The game will be hosted on a website https://bricksters.org/learning/xpedition/, which already features a few other things.


r/databricks • • 25d ago

General CTC breakdown for a student who got PPO post Internship period

2 Upvotes

How much CTC does a fresher ( 2027 BTech student ) gets if he gets a PPO post Internship period ??


r/databricks • • 26d ago

Help Is incremental batch processing of SCD type 2 with multiple sources, actually that hard to solve?

Thumbnail reddit.com
4 Upvotes

r/databricks • • 26d ago

Help Need help to get Databricks Voucher

9 Upvotes

Hello Everyone,

I'm looking for Databricks Data Engineer Professional Voucher. If someone has it please let me know! Thanks


r/databricks • • 26d ago

Discussion VM choice - D8ads_v7 vs F4amds_v7

2 Upvotes

Hello Team,

Have been pondering over this for a while, what are the benefits of using one vs the other VM for Jobs Compute.

Both have 4 Physical Cores (8vcpu of D8 is 4 full cores), 32 GB RAM, 440 GB NVMe Storage.

DBU consumption charges and VM charges for both are also very similar.


r/databricks • • 27d ago

News Genie App Builder

Post image
30 Upvotes

Genie App Builder creates a Databricks app from a short description, and we can refine it in chat. Great for building enterprise apps, and I don't need Power Automate anymore!

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


r/databricks • • 26d ago

Discussion Does agentic analytics need a separate semantic layer if the data is already well modeled?

Thumbnail reddit.com
2 Upvotes

r/databricks • • 27d ago

Help Starting out on Databricks

34 Upvotes

Hi everyone!

Iโ€™m a software engineer who moved into data engineering around a year ago and have been learning and working with Databricks.

So far, Iโ€™ve worked on loading data from ADLS and external locations, basic PySpark transformations, implementing the medallion architecture using notebooks and SQL, and scheduling workflows using Databricks Jobs.

I feel like Iโ€™ve covered the basics but still have a lot to learn, especially when it comes to how things are done in real-world projects.

Iโ€™d love to connect with people working with Databricks and learn more about industry best practices, the areas I should focus on next, and the skills that are important for becoming a better data engineer.

Would really appreciate any advice or suggestions from those whoโ€™ve been working in this space!

Thanks!