cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

issohandreas
by • New Contributor
  • 61 Views
  • 1 replies
  • 0 kudos

Databricks scala project

Hello Guys,I'm confusions, I'm come from python world, but today I work scala databricks projects.When you work with scala, you have to build your .jar file and deploy it.When it come to build the medaillon architecture with many task in your lakeflo...

  • 61 Views
  • 1 replies
  • 0 kudos
Latest Reply
Ashwin_DSA
Databricks Employee
  • 0 kudos

Hi @issohandreas, The job side works the same way. You only change how the code is packaged. You don't need a separate JAR for each layer. Build a single JAR for the whole project and provide an entry point for each medallion step. For example, you c...

  • 0 kudos
Amogh_qk
by • New Contributor II
  • 219 Views
  • 4 replies
  • 5 kudos

How to retrieve execution outputs and other details of child notebooks using dbutils.notebook.run()?

Hi everyone,I'm working on a Databricks logging solution and have a question regarding child notebook execution.Suppose we have a parent notebook that calls one or more child notebooks using dbutils.notebook.run(), and those child notebooks may call ...

  • 219 Views
  • 4 replies
  • 5 kudos
Latest Reply
saurabh18cs
Esteemed Contributor
  • 5 kudos

Hi @Amogh_qk can you try with these logging settings which you can enable for your job compute ? also posible for serverlesshttps://learn.microsoft.com/en-us/azure/databricks/compute/configure#cluster-log-deliveryhttps://learn.microsoft.com/en-us/azu...

  • 5 kudos
3 More Replies
arun07
by • Visitor
  • 133 Views
  • 1 replies
  • 0 kudos

One metadata-driven pipeline for ~50 database sources (~100 tables each), ~50 REST APIs and files

Hi all,We're designing ingestion into Databricks and want honest, critical feedback from people who've run something similar at scale.The approachEverything is read from control tables, and extraction runs dynamically for each metadata row. There is ...

  • 133 Views
  • 1 replies
  • 0 kudos
Latest Reply
arthurfr23
New Contributor III
  • 0 kudos

Short answer: the metadata-driven approach works at this scale. What usually breaks is the orchestration around it, specifically fixed batches of 10, per-run overhead and putting too much load on one source database. The pattern itself holds up.Orche...

  • 0 kudos
Raj_DB
by • Contributor II
  • 1640 Views
  • 12 replies
  • 16 kudos

Resolved! How to Connect Databricks to Snowflake & Query Live Data?

Hi everyone,I am looking for a method to connect Databricks to Snowflake so I can query and transform the data directly in a notebook. I specifically want to avoid methods that just perform a one-time copy of the tables into Databricks, as I need the...

  • 1640 Views
  • 12 replies
  • 16 kudos
Latest Reply
Louis_Frolio
Databricks Employee
  • 16 kudos

@raj , if you are happy with the answer and it addresses your issue please mark "Accept as Solution" so that others can have confidence in the response. Cheers, Lou.

  • 16 kudos
11 More Replies
rs5
by • Visitor
  • 185 Views
  • 5 replies
  • 0 kudos

Unable to access AWS S3 - Error : java.nio.file.AccessDeniedException

I am performing encryption over 40M records using serverless compute. The code is working fine on 50 records but failing on 40M while displaying and selecting as well but sometimes it is working and showing results. Error:Job aborted due to stage fai...

  • 185 Views
  • 5 replies
  • 0 kudos
Latest Reply
HongC
New Contributor
  • 0 kudos

I had something similar on serverless, turned out not to be a "real" permissions problem on the whole table, just some files.the 50 record test probably reads 1-2 files, 40M reads all of them, so you only hit the bad one on the big run. thats why it ...

  • 0 kudos
4 More Replies
david888
by • New Contributor II
  • 716 Views
  • 3 replies
  • 1 kudos

Question about MySQL Integrated‑CDC pipeline on Classic compute workspace

Hi everyone,I am trying to set up an Integrated‑CDC pipeline for a MySQL RDS instance on our Databricks workspace. Our workspace only uses Classic compute; Serverless compute is not available.According to the documentation, Integrated‑CDC for MySQL s...

  • 716 Views
  • 3 replies
  • 1 kudos
Latest Reply
SyedKamranAhmed
New Contributor III
  • 1 kudos

I searched for this tutorial to learn more about MySQL CDC with Lakeflow Connect and found it helpful. Sharing it here for anyone exploring the same topic.https://www.youtube.com/watch?v=lcCH0OSIrUU 

  • 1 kudos
2 More Replies
Divya_Pathak
by • New Contributor III
  • 141 Views
  • 2 replies
  • 1 kudos

DQX Studio – DQ Score Calculation Does Not Respect Row Filter Denominator

Hi everyone,I am currently exploring DQX Studio for data quality monitoring in Databricks and have encountered an issue with DQ score calculation when using row filters.My requirement is to perform data quality checks only on records loaded or update...

Divya_Pathak_0-1795598319398.png Divya_Pathak_1-1795598340177.png
  • 141 Views
  • 2 replies
  • 1 kudos
Latest Reply
tajamulkhan
Honored Contributor
  • 1 kudos

The main issue here is the difference between a row being excluded from a rule evaluation and a row being excluded from the overall score denominator.Based on your example, the rule is identifying the correct 30 failures. However, the score still ref...

  • 1 kudos
1 More Replies
Ericsson
by • New Contributor II
  • 8937 Views
  • 7 replies
  • 2 kudos

SQL week format issue its not showing result as 01(ww)

Hi Folks,I've requirement to show the week number as ww format. Please see the below codeselect weekofyear(date_add(to_date(current_date, 'yyyyMMdd'), +35)). also plz refre the screen shot for result.

result
  • 8937 Views
  • 7 replies
  • 2 kudos
Latest Reply
MarieVikueed
  • 2 kudos

It sounds like you're encountering a common SQL formatting challenge. Often, the WEEK function by default won't pad single-digit weeks with a leading zero. To achieve that '01' format, you'll likely need to combine WEEK with a padding function, like ...

  • 2 kudos
6 More Replies
pxs132
by • New Contributor
  • 159 Views
  • 2 replies
  • 3 kudos

Accessing secret scope keys from Unity Catalog SQL UDFs without granting users READ permission

We are implementing a dynamic data masking solution on Azure Databricks using Unity Catalog ABAC policies and SQL UDFs for deterministic masking.Our masking functions retrieve a secret key from a Databricks-backed secret scope using the secret() func...

  • 159 Views
  • 2 replies
  • 3 kudos
Latest Reply
Kashif_Inamdar
Databricks Employee
  • 3 kudos

Is this expected? Yes. The SQL secret() function reads from a workspace secret scope and checks the querying user's READ permission on that scope, even inside a mask or ABAC function owned by someone else. So it can't keep the key hidden from users ...

  • 3 kudos
1 More Replies
khacdat-dang
by • New Contributor II
  • 97 Views
  • 1 replies
  • 0 kudos

Which API scope covers Spark Connect (Databricks Connect) in context-based ingress allow rules?

Hi,I'm setting up CI/CD with GitHub Actions (GitHub-hosted runners) against a workspacethat has a context-based ingress policy in restricted mode.Setup- A service principal authenticates from GitHub Actions via OIDC (workload identity federation).- T...

  • 97 Views
  • 1 replies
  • 0 kudos
Latest Reply
suranga
Databricks Partner
  • 0 kudos

Hi, I looked into context-based ingress for another thread here, so I checked the docs. As far as I can tell, none of the named scopes covers Spark Connect. The API scopes reference lists REST operations, and there’s nothing for the /spark.connect.Sp...

  • 0 kudos
Avinash_Narala
by • Databricks Partner
  • 190 Views
  • 2 replies
  • 1 kudos

Metric View Materialization Failure

While trying to develop metric view in databricks, I encountered with below error.I am using a pii view toget a column to build my final metric view, this is blocking on having the materialization to metric view because of masking functions used whil...

Avinash_Narala_0-1795538949326.png
  • 190 Views
  • 2 replies
  • 1 kudos
Latest Reply
Louis_Frolio
Databricks Employee
  • 1 kudos

Hello @Avinash_Narala, I took a look at both internal and external documentation and here is what I found. What you're seeing is by design. A materialization is computed once, under the owner's identity, and then served to everyone. If the source ret...

  • 1 kudos
1 More Replies
datachamp
by • New Contributor
  • 122 Views
  • 1 replies
  • 2 kudos

Resolved! Why does = NULL return no rows in Databricks SQL?

Hi everyone,I have orders with a missing shipped_at value, but this query returns no rows:SELECT *FROM ordersWHERE shipped_at = NULL;What is the correct way to find orders that have no shipping timestamp?

  • 122 Views
  • 1 replies
  • 2 kudos
Latest Reply
tajamulkhan
Honored Contributor
  • 2 kudos

Use IS NULL. Comparing a value to NULL with = produces an unknown result, and WHERE only keeps rows where the condition is true.SELECT *FROM ordersWHERE shipped_at IS NULL;

  • 2 kudos
datachamp
by • New Contributor
  • 98 Views
  • 1 replies
  • 1 kudos

Resolved! Why does customer_id become ambiguous after a PySpark join?

Hi everyone,Both my orders and customers DataFrames have a customer_id column. After joining them with orders.customer_id == customers.customer_id, selecting customer_id gives me an AMBIGUOUS_REFERENCE error.How can I get one customer_id column in th...

  • 98 Views
  • 1 replies
  • 1 kudos
Latest Reply
tajamulkhan
Honored Contributor
  • 1 kudos

Since the join key has the same name in both DataFrames, pass the column name directly to join. PySpark then returns a single customer_id column.result = orders.join(customers, on="customer_id", how="inner")result.select("customer_id").show() 

  • 1 kudos
datachamp
by • New Contributor
  • 104 Views
  • 1 replies
  • 1 kudos

Resolved! Delta MERGE fails when the source has multiple updates for the same customer

 Hi everyone,I am using MERGE INTO to apply daily customer updates to a Delta table. The target has one row per customer_id, but the latest batch contains two updates for customer 101, one at 09:00 and another at 11:30.The merge fails with DELTA_MULT...

  • 104 Views
  • 1 replies
  • 1 kudos
Latest Reply
tajamulkhan
Honored Contributor
  • 1 kudos

MERGE INTO customers AS tUSING (SELECT customer_id, customer_name, updated_atFROM customer_updatesQUALIFY ROW_NUMBER() OVER (PARTITION BY customer_idORDER BY updated_at DESC) = 1) AS sON t.customer_id = s.customer_idWHEN MATCHED AND s.updated_at > t....

  • 1 kudos
kendel64jen
by • New Contributor
  • 107 Views
  • 1 replies
  • 1 kudos

Lakebase Synced Tables Failing Initial Load Due to Missing CONNECT Privilege on Writer Role

I'm investigating an issue with Azure Databricks Lakebase Autoscaling where synced tables are successfully created in Unity Catalog through Terraform, but their initial pipeline loads consistently fail.The issue was eventually traced to a missing CON...

  • 107 Views
  • 1 replies
  • 1 kudos
Latest Reply
arthurfr23
New Contributor III
  • 1 kudos

Before you open a ticket, check one thing. In Postgres, CONNECT is granted to PUBLIC by default. If someone ran REVOKE CONNECT ON DATABASE ... FROM PUBLIC as a hardening step, the writer may have been relying on that PUBLIC grant, while the readers h...

  • 1 kudos
Labels