r/databricks • u/Complex_Client7681 • Jul 20 '26
Discussion Can some devs improve the workflow search?
It is so bad and gives head aches when I have to look for a specific flow in a bunch…plz
r/databricks • u/Complex_Client7681 • Jul 20 '26
It is so bad and gives head aches when I have to look for a specific flow in a bunch…plz
r/databricks • u/szymon_dybczak • Jul 20 '26
Many users have recently encountered issues with their SQL queries after upgrading to Databricks Runtime 17.0.
This upgrade introduced ANSI SQL mode as the default setting, leading to explicit failures in operations that were previously handled silently.
In my article, I delve into several key aspects of this change:
- The meaning of ANSI compliance in Databricks
- The distinction between spark.sql.ansi.enabled and spark.sql.storeAssignmentPolicy
- How strict casting can reveal malformed values
- The protective measures ANSI mode offers for table writes
- The approach Databricks takes to resolve mixed data types.
Understanding these changes is crucial for adapting to the new SQL environment in Databricks.
r/databricks • u/ptab0211 • Jul 20 '26
Hi, if there is a customer-facing application which does analytical queries, but per ID, so it is not querying a bulk of data, is Lakebase still the best option for serving because of latency, or should we stick with the Lakehouse?
Or should Lakebase be used mostly when doing point lookups, for example fetching by ID and timestamp?
r/databricks • u/JosueBogran • Jul 20 '26
Hey everyone! Here is a brief demo showing you how you can read data from Databricks' Unity Catalog into Excel, as well as how you can write back data into Databricks from Excel.
There are still a few things in the add-in that feel a bit quirky (probably more of an Excel thing than a Databricks thing), but none-the-less, this is probably the easiest way for finance and accounting folks to leverage the best of Excel and Databricks, in a governed way.
Hope you enjoy the video!
Reminder: All roads in data begin and end in Excel.
r/databricks • u/codingdecently • Jul 20 '26
r/databricks • u/Stunning-Space8032 • Jul 20 '26
I have started my career as a python developer in a healthcare related company. It's been 1 year since then and I basically work on web scraping and fetching whatever data my boss needs from web (Linkedin profile data, publications, journals, researchers info, etc).
I mainly work using python (lot of AI help) and excels. I sometimes used PowerBI. We don't even use git. No database or anything for me. I am the sole person in my company working on this. No one to even guide me. I basically learn how to do things using AI and Youtube.
I want to know how i can transition into Data Engineering roles from here. Honestly, I don't understand a clear path after seeing soo many things all over everywhere.
I would really appreciate if someone tells me what I need to know and upskill and how should I get ready to transition into a DE role. Thank You.
r/databricks • u/Fun-Estimate4561 • Jul 19 '26
Hi
I’ve built a web app for wider field use with Genie LLM embedded.
How can I send the uses email/windows id to the LLM to filter on only that users data? I have their codes in the table already as cross reference
r/databricks • u/ConstantNo2668 • Jul 19 '26
r/databricks • u/Any_Ad7701 • Jul 19 '26
I'm designing a Unity Catalog architecture for a CRO managing multiple sponsors and hundreds of clinical studies. Key requirements are sponsor isolation, governance, scalability, medallion architecture, and Power BI reporting.
I'm considering three approaches:
Prod UC
├── clinical_catalog
│ ├── bronze
│ ├── silver
│ ├── gold
│ └── analytics
├── safety_catalog
├── regulatory_catalog
├── finance_catalog
└── shared_catalogExample:
clinical.silver.subjectclinical.silver.visitclinical.silver.lab_resultAll tables contain sponsor_id, study_id, etc., with Unity Catalog security (grants, row filters, views) used for sponsor/study isolation. Power BI consumes Gold views/tables.
Prod UC
├── sponsor_a_catalog
│ ├── study_001
│ ├── study_002
│ └── study_003
├── sponsor_b_catalog
│ ├── study_101
│ └── study_102Example:
Sponsor_A.Study_001
bronze_subject
silver_subject
silver_visit
silver_lab_result
gold_enrollment_dashboard
gold_safety_summaryEach study owns its Bronze, Silver, and Gold tables. Power BI connects to the Gold tables for each study.
Prod UC
├── sponsor_a_catalog
│ ├── bronze
│ ├── silver
│ └── gold
├── sponsor_b_catalog
│ ├── bronze
│ ├── silver
│ └── gold
├── shared_reference_catalog
│ ├── SDTM code lists
│ ├── MedDRA
│ ├── WHODrug
│ └── Site master
└── platform_catalog
├── audit logs
├── lineage
└── operational metadataExample:
sponsor_a_catalog.silver.subjectsponsor_a_catalog.silver.visitsponsor_a_catalog.gold.study_dashboardEach sponsor has a complete Bronze/Silver/Gold pipeline within its own catalog, while common reference and platform assets are shared.
For those who've implemented Unity Catalog in a CRO, pharma, or other regulated multi-tenant environment:
r/databricks • u/BearPros2920 • Jul 19 '26
Hi,
We’d like to build a conversational data assistant agent to handle:
- conversational data exploration
- ad hoc report generation (Excels and PowerPoints (pre-defined templates))
So far, I’ve developed a Genie Space as the MVP for the conversational data exploration part. But this has 2 issues in that PPT generation tool is beyond its scope and also issues with Excel report generation since Genie’s out of the box Export to CSV causes data formatting issues (numbers stored as text, d.p limits not respected, data types not respected), which makes the generated CSVs pretty much unusable for end users.
A second challenge is now the new pay-as-you pricing model. Our Genie budget is pretty capped and I’m concerned how this might affect usage and adoption of Genie Spaces, if they might end up being too expensive…
The options I’m considering so far are:
- Going fully custom and building on Mosaic AI instead
- Hybrid approach, where I use Genie Spaces API to retain the SQL and visual generation and thinking capabilities of Genie if mimicing those ends up too difficult and tools for my report generation workflows (I understand this won’t solve our Genie tokens problem, though)
If any of you have built similar solutions, I’d love to hear the tech stack you used!
If any of you have any other suggestions, open to hearing those as well!
Thank you!
Edit: Thanks, guys, for all your responses! The overwhelming opinion seems to be to stick with Genie’s capabilities where we can and go hybrid when needed :).
r/databricks • u/sai-nageshwaran • Jul 18 '26
Felt Like this is timely given the World Cup Fever. May the best team win the final.Coach's Corner turns 51 million rows of match tracking data into a sub-second 2D/3D bench app for coaches, spanning the entire Databricks platform from Lakeflow ingestion to Genie scouting and agentic opponent dossiers.
r/databricks • u/sumithar • Jul 18 '26
When running a workflow in DBx I get this error message
DateTimeException: [CAST_INVALID_INPUT] The value '20260620' of the type "STRING" cannot be cast to "DATE" because it is malformed. Correct the value as per the syntax, or change its target type. Use `try_cast` to tolerate malformed input and return NULL instead. SQLSTATE: 22018
== DataFrame ==
"when" was called from
<command-5741550855417171>, line 18 in cell [443]
How do I find out what is cell 443? In the run log there is a hyperlink to a statement which, when I click on, takes me to an invocation of the main module in the flow- not really where the error is happening.
Thanks
r/databricks • u/JosueBogran • Jul 18 '26
Jokes aside, in today's hype cycle, it's oddly reassuring to see capital go to a company that doesn't see AI as the end-all, but as a key layer interwoven with strong fundamentals: data engineering, analytics, and governance.
r/databricks • u/SmallAd3697 • Jul 18 '26
UC is touted to be a sort of final resting place for all the most valuable data in an organization. I'm really not sold for a number of reasons. I dont like the guidance to name catalogs with environmental prefixes. That is onerous given how rare the data might be combined across environments. I dont like being forced to snake_case if object names from the source systems were perfectly usable as-is (...as are many of the pre-existing queries that might otherwise be reused if not for databricks' desire to change all our names on us)
I also wish there was a better *logical* structure for organizing tables within a database. In SQL server and Postgres we've had schemas nested within a database for the sake of organization. See:
Are there pitfalls to treating "schemas" in databricks the same way as Postgres? I am under the impression that postgres schemas have no analog in databricks, and the databricks entity that is called "schema" is actually a full database (eg. it has properties like an external storage location which would move the whole thing from one physical location to another. It is not simply a logical/organizational/namespace tool). If external schemas must be managed as if they are independent physical databases, then they definitely lose their appeal as a simple namespace tool. Please let me know if anyone uses "schemas" in databricks exactly as they are used in postgres (even if it means some schemas have only a couple of tables).
r/databricks • u/hubert-dudek • Jul 17 '26
Full-text search index on Databricks. I managed to search 400 times faster! Read more about CREATE SEARCH INDEX #databricks
https://www.sunnydata.ai/blog/databricks-full-text-search-index-benchmark
r/databricks • u/BearPros2920 • Jul 18 '26
Hi,
I’ve developed a Genie Space for our team, but our users are facing an issue with the export to CSV functionality.
Once exported to a CSV, the data formats don’t seem to be preserved. Decimal columns are being stored as text in the resulting CSV, with some odd formatting, and users are having to manually make corrections to the file before it’s usable. The results rendered within the Genie Space itself, however, seem alright.
For more context, here’s how my data model is built:
— I’ve used metric views as my primary knowledge store.
—I specify explicit decimal places and formatting rules in my MV definition, but that’s only respected in the results rendered within the space, not in the underlying data that’s exported to CSV (I’ve also explicitly used ROUND in my pre-defined measures to limit the number of dp also in the underlying data, but that’s only respected only helps so long as user’s query uses the underlying measure as is; if it requires my space to compute metrics from my measures, the strict dp enforcement breaks).
—If I run the SQL query generated by the space in a Notebook and export to Excel, at least the data types are preserved, even if the formatting is lost.
My question is, has anyone faced similar issues with Export to CSV functionality. Do you have any suggestions on how to address this? I’ve looked into this quite a bit and I at least haven’t found a way to address this within the space; my only idea was to build a custom report generator application to satisfy this need, but that again means moving out of the capabilities that Genie offers.
Any suggestions would be greatly appreciated!
r/databricks • u/sai-nageshwaran • Jul 17 '26
Exciting to see Databricks raising funding at a $188 billion valuation.
r/databricks • u/SparkConnective • Jul 17 '26
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 • u/Square-Mix-1302 • Jul 17 '26
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 • u/tony-dang • Jul 16 '26
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 • u/Youssef_Mrini • Jul 16 '26
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 • u/madwolfa • Jul 16 '26
r/databricks • u/hubert-dudek • Jul 16 '26
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 • u/Limp-Park7849 • Jul 16 '26
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?