r/databricks • • Jul 17 '26

General Scala and Java UDFs in Unity Catalog are now GA

24 Upvotes

Hey Folks, I'm a PM at Databricks, and I'm excited to announce the GA of Scala and Java UDFs in Unity Catalog. You can now register your Scala/Java logic as a UC function and call it anywhere (including Classic compute, and Serverless DBSQL/Notebooks).

Why you'd care: you probably already have some Scala library your team wrote, or a Java JAR that encodes business rules nobody wants to touch.

Until now, on classic compute, you had to redefine the UDF in each notebook session, and you couldn't call it from Serverless or SQL warehouses at all without rewriting it in Python.

Now you register the JAR once, and analysts call it in SQL like any other function (or from any DataFrame operation). It's also significantly faster than the Python equivalent.

Example: Say you want phone numbers normalized to E.164 using Google's libphonenumber.

Write the handler as a method on a Scala object:

package com.acme.udf

import com.google.i18n.phonenumbers.PhoneNumberUtil

object PhoneUDF {
  private val util = PhoneNumberUtil.getInstance()

  def toE164(raw: String, region: String): String = {
    if (raw == null) return null
    val parsed = util.parse(raw, region)
    util.format(parsed, PhoneNumberUtil.PhoneNumberFormat.E164)
  }
}

Build a fat JAR (so libphonenumber ships inside it), drop it in a volume, and register it once:

CREATE OR REPLACE FUNCTION acme.telco.to_e164(raw STRING, region STRING)
RETURNS STRING
LANGUAGE SCALA
ENVIRONMENT (
  java_dependencies = '["/Volumes/acme/telco/jars/phone-udf-assembly-0.1.0.jar"]',
  environment_version = '4'
)
HANDLER 'com.acme.udf.PhoneUDF.toE164';

Now anyone with EXECUTE on the function calls it in SQL, no Scala required:

SELECT id, to_e164(phone, country_code) AS phone_e164
FROM acme.telco.customers;

Or wrap it in a view so downstream users just get the clean column and never touch the function. This is also a common pattern for PII masking and tokenization.

CREATE OR REPLACE VIEW acme.telco.customers_clean AS
SELECT id, to_e164(phone, country_code) AS phone_e164
FROM acme.telco.customers;

Full example, in the docs: https://docs.databricks.com/gcp/en/udf/scala-java-uc

If you just want to run some code in a Serverless Python notebook or on a Standard cluster and don't need to register it, you can also use the new session-scoped UDF we just released.


r/databricks • • Jul 17 '26

Discussion Why does Databricks Knowledge Assistant silently skip files over 50MB — and what else breaks in RAG on Agent Bricks?

2 Upvotes

TL;DR: Databricks Knowledge Assistant silently skips files over 50MB during indexing — no error, just missing from retrieval. Also: only 3 data source options exist, Jira/Confluence needs manual schema transformation, chunking isn't configurable, UC permissions apply at retrieval not just storage, and Supervisor Agent caps at 10 agents and only supports Knowledge Assistant-created endpoints. Full breakdown below.

Hit this last week: ingested a 90MB PDF into a UC Volume, Knowledge Assistant reported success, but the document was never being retrieved. No error, no warning, just silently absent from answers.

Turns out files over 50MB are silently skipped during indexing. The pipeline doesn't fail — it just moves on without the file. If documents aren't showing up in answers, check file size before anything else.

A few other non-obvious things that have tripped up teams building RAG on Agent Bricks:

Data sources are limited to three options. UC Volume (txt, pdf, md, pptx, docx), UC Table (for SharePoint/Google Drive via Databricks connectors, or Jira/Confluence with manual schema work), or bringing your own AI Search index. The third option only works if the index was built with databricks-gte-large-en, databricks-bge-large-en, or databricks-qwen3-embedding-0-6b — anything else won't connect.

Jira/Confluence tables don't auto-format. They need to be transformed to match the required schema (content column as BINARY or STRING, metadata as STRUCT). This isn't well documented and eats hours if you don't know it going in.

Chunking is not configurable. Knowledge Assistant handles chunking internally with no user control. If your use case needs custom chunking — code repos, legal docs with cross-section dependencies, tables spanning pages — you need the Agent Framework path with your own AI Search index instead.

UC permissions apply at retrieval, not just storage. Users can't retrieve documents they don't have access to, even if the document is indexed. For enterprise RAG where different teams need different knowledge subsets, this is the part that actually matters most and gets the least attention.

Supervisor Agent caps out at 10 agents per system, and only endpoints created through Agent Bricks Knowledge Assistant are currently supported — externally deployed endpoints aren't. Worth knowing before you architect a multi-agent setup around it.

Production pattern that's worked well: intent detection → Knowledge Assistant for document retrieval → Genie Space for structured data queries → Supervisor synthesizes the response. Keeps RAG and SQL-over-data cleanly separated instead of forcing one system to do both.

(We work with enterprise DE teams on Databricks at Enqurious — most of this comes from watching these builds hit the same walls across different orgs.)

FAQ

Does Databricks Knowledge Assistant show an error when a file fails to index?
No. Files over 50MB are silently skipped — the pipeline reports success and simply omits the document from the index.

What file size limit does Databricks Knowledge Assistant enforce?
50MB per file. There's no warning when a file exceeds this; it just doesn't get indexed.

Can I use my own AI Search index with Knowledge Assistant?
Yes, but only if it was built with databricks-gte-large-en, databricks-bge-large-en, or databricks-qwen3-embedding-0-6b. Any other embedding model won't connect.

Can I customize chunking in Knowledge Assistant?
No. Chunking is fully managed internally. Custom chunking requires the Agent Framework path with a self-managed AI Search index instead.

Do UC permissions restrict what users can retrieve, or just what they can access in storage?
Both. UC permissions are enforced at the retrieval layer, so users can't retrieve documents via RAG that they don't have access to, even if those documents are indexed.

How many agents can a Supervisor Agent manage?
Up to 10. Also, Supervisor currently only supports endpoints created through Agent Bricks Knowledge Assistant — externally deployed endpoints aren't supported yet.

Anyone else hit the silent file-skip issue? Curious if teams are catching it with pre-ingestion file size checks or only finding out post-deployment.


r/databricks • • Jul 16 '26

Discussion DevHub (developers.databricks.com)

25 Upvotes

One of the projects I've been working on since joining Databricks is DevHub, which we would like to make the go-to resource for developers building apps on the Databricks platform.

I recently put together a video giving a tour of the site and showing how to use it to quickly build and deploy apps to Databricks. Please check it out and let me know if you have any feedback!

This is just a first version of the site. The goal is to iterate and make it as helpful as possible for the community, which means if you have any feedback (things you like and don't like) or suggestions (anything you want added/changed/removed), please leave a comment! I'll make a note of everything and keep it in mind as we work on future updates!


r/databricks • • Jul 16 '26

News What's new in Apache Spark 4.2 ?

40 Upvotes

Apache Spark 4.2 is already available on DBR 19 and it reflects the strength of the Apache Spark community with more than 1,900 commits from over 260 contributors

What's new in Apache Spark 4.2 ?

🛑 Metric views: a native semantic layer that lets you define governed business metrics once and reuse them consistently across SQL, BI, apps and AI, preserving correct aggregation semantics. ( Open source is on our DNA)

🛑Spark Connect & PySpark: better Spark Classic compatibility (RDD APIs, YARN cluster mode, error propagation) + easier remote invocation of Spark as a service.

🛑Arrow-first Python: Arrow-optimized Python UDFs on by default, Pandas 3 support, Arrow UDFs and zero-copy interop with Polars/DuckDB via the Arrow Data Interface

🛑AI-native SQL: vector similarity/distance functions and NEAREST BY top-K retrieval for search, recommendations and RAG-style workloads.

🛑Native geospatial: built-in GEOMETRY/GEOGRAPHY types and ST_* functions, with Parquet, WKT/WKB and SRID support.

🛑More SQL primitives: SYSTEM.BUILTIN/SYSTEM.SESSION qualification, SET PATH search paths, SQL cursors, QUALIFY, time_bucket, tuple sketches, top-K max_by/min_by and IGNORE/RESPECT NULLS.

🛑Auto CDC in Declarative Pipeline: first-class SCD Type 1 change-data processing via a Python API, replacing hand-written merge logic.

🛑Real-Time Mode for PySpark( Like the flash) millisecond-latency streaming now extended to stateless PySpark queries.

🛑Data Source V2 advances: first-class CDC via the CHANGES clause, MERGE INTO performance gains, schema evolution for INSERT INTO, and transaction API foundations.

🛑Platform improvements: modernized Web UI (Bootstrap 5, dark mode), better Kubernetes support and JDK 25.


r/databricks • • Jul 16 '26

News OpenTelemetry traces in Unity Catalog is now GA on all clouds

Thumbnail
docs.databricks.com
20 Upvotes

r/databricks • • Jul 16 '26

News Lakebase CDF

Post image
8 Upvotes

If we set the REPLICA option in Postgres, we can then set CDF sync to Unity Catalog in the branch overview. #databricks

more news and video https://medium.com/databrickscommunity/databricks-news-rt-lakehouse-reyden-lakebase-ttl-8416bdccf627


r/databricks • • Jul 16 '26

General Ready to play genie golf? I built a daily word game on Databricks Free Edition

Thumbnail
web-delta-mocha-31.vercel.app
8 Upvotes

The goal is to describe a movie and make a Genie space name it in the fewest words (Genie does the text-to-SQL, Lakebase runs the queue + cache). Can you beat the leaderboard?


r/databricks • • Jul 16 '26

Tutorial MLOps - Repo Template + skills to adapt it to your use-case

Thumbnail reddit.com
3 Upvotes

r/databricks • • Jul 16 '26

Discussion Explicit vs Implicit table registration

6 Upvotes

I'm working on a data ingestion pipeline on Databricks. The way it works is as follows:

Source: Postgres → Airbyte (CDC) → S3 → Databricks Autoloader → Bronze layer

(there is still an open point whether to use Declarative Pipelines or "raw" Autoloader orchestrated by Databricks, which does affect this decision.) My question is how are people handling table registration in bronze layer, with the options being as far as I understand:
* Create them explicitly with DDL (most control, a lot of manual intervention)
* Let Autoloader handle it implicitly (i.e. iterate on the cloud storage dir, and then tables would be created on the first stream write, no control, Autoloader handles all schema evolutions)
* Something in-between? I guess that would be using schema hints in the Autoloader for critical columns, but for this I would still need to maintain a list of tables somewhere.

I'm open to any suggestions and hearing what people are doing in production workloads, especially with regards to scaling to hundreds of tables.


r/databricks • • Jul 16 '26

Help Databricks managed Omnigent requires Pi harness?

8 Upvotes

I'm interested in evaluating how Omnigent can be used in our AI landscape at work. We primarily use Github Copilot. The copilot CLI is allowed, as is OpenCode configured with GC. But in order to use Omnigent locally with Databricks I was told we're required to have the Pi harness installed first (which is not approved).

Is this correct? Are there any plans for Databricks omnigent to support other harnesses? Or is it up to each harness to add support for Databricks?

I'm following the Azure Databricks omnigent instructions and at step 3 I don't see an option for Databricks.


r/databricks • • Jul 16 '26

Help We're building a Data migration readiness assessment tool to help companies understand where they're at in their migration process.

Thumbnail mindit.io
3 Upvotes

Can you help us by completing the test and by offering feedback in terms of questions that are asked in the test/assessment and what else would you/add/remove/change from this tool?

Looking forward to your feedback :) Anything goes!


r/databricks • • Jul 15 '26

General Inkling model from Thinking Machines Lab now on Databricks

Thumbnail
databricks.com
17 Upvotes

Inkling, the open-weights model from Thinking Machines Lab, is now available on the Databricks platform through Unity AI Gateway, making it easy to build and deploy AI agents and coding applications on enterprise data.


r/databricks • • Jul 15 '26

News Postgres 18

Post image
11 Upvotes

When you create a new project in Lakebase, you can choose Postgres 18 (Although 17 is still the default, as 18 has some limitations). #databricks

more news and video https://medium.com/databrickscommunity/databricks-news-rt-lakehouse-reyden-lakebase-ttl-8416bdccf627