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

maikel
by • Contributor III
  • 2529 Views
  • 5 replies
  • 1 kudos

Resolved! SQL schemas migration

Hello Community!I would like to ask for your recommendation in terms of SQL schemas migration best practice. In our project, currently we have different SQL schemas definition and data seeding saved in SQL files. Since we are going to higher environm...

  • 2529 Views
  • 5 replies
  • 1 kudos
Latest Reply
maikel
Contributor III
  • 1 kudos

@anuj_lathi and @Louis_Frolio thank you very much! This is really great approach and example! 

  • 1 kudos
4 More Replies
js5
by • New Contributor II
  • 1249 Views
  • 1 replies
  • 0 kudos

Resolved! UNSUPPORTED_TIME_TYPE despite 18.1 runtime?

Hello,I have tried using TimeType data type which is supported since Spark 4.1:https://spark.apache.org/docs/latest/sql-ref-datatypes.htmlI am unfortunately still getting UNSUPPORTED_TIME_TYPE error when trying to run display() on a pandas dataframe ...

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

Hi @js5, This is expected today on Databricks. You can check this out for reference. Spark 4.1 introduces a standard TIME type (TimeType) in the SQL type system, and Databricks runtimes based on Spark 4.x already expose it at the engine level (for ex...

  • 0 kudos
Neelimak
by • Databricks Partner
  • 1924 Views
  • 5 replies
  • 3 kudos

Resolved! ingestion pipeline configuration

When trying to create a ingestion pipelines, auto generated cluster is hitting quota limit errors. The type of vm its trying to use is not available in our region and there seems no way to add fallback to different types of vms. Can you please help h...

  • 1924 Views
  • 5 replies
  • 3 kudos
Latest Reply
Ashwin_DSA
Databricks Employee
  • 3 kudos

Hi @Neelimak, Thanks for the feedback. I've now passed the feedback to our product team.   

  • 3 kudos
4 More Replies
IM_01
by • Valued Contributor
  • 961 Views
  • 1 replies
  • 0 kudos

How to disable full refresh on materialized view if the src is not updated since last run

Hi,Is there any option to control refresh rate of materialized view such as , even the dlt is triggered in full refresh mode and src Streaming tables are not updated then the full refresh should not happen on mvs . Is there any way to achieve this.

  • 961 Views
  • 1 replies
  • 0 kudos
Latest Reply
emma_s
Databricks Employee
  • 0 kudos

Hi, The only way that I think you can do this is to seperate out the Materialized views from the pipelines into standalone SQL jobs with a TRIGGER ON UPDATE clause. This means they only run if the streaming tables are updated. However, this approach ...

  • 0 kudos
AndriusVitkausk
by • New Contributor III
  • 772 Views
  • 1 replies
  • 0 kudos

Logging inside foreachbatch

Im having difficulty carrying out logging inside a foreachbatch.Seems that all logging outside the foreachbatch works as expected, but inside they are only visable from the spark UI in driver logs. Is there a way to get this to work (inc serverless)?

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

Hi @AndriusVitkausk, This is expected behaviour on Databricks. Code inside foreachBatch runs in the background as part of the long‑lived streaming query, so print() and standard logging go to the driver logs / Spark UI, not back to the notebook outpu...

  • 0 kudos
ShankarM
by • Databricks Partner
  • 2087 Views
  • 2 replies
  • 0 kudos

Masking of PII data

We have a below requirement There is a history table where data need to be loaded incrementally.  This table contains a PII field which has been masked using a custom masking function (allow visibility for a specific user group, XXXX for rest). When ...

  • 2087 Views
  • 2 replies
  • 0 kudos
Latest Reply
emma_s
Databricks Employee
  • 0 kudos

Hi, I believe this is a permissions issue related to the Service Principal who runs the job. If the pipeline is doing a merge into statement then it needs access to be able to see the rows, so it can tell how to match them. First thing to do is to ma...

  • 0 kudos
1 More Replies
sreya_sahithi
by • Databricks Partner
  • 1090 Views
  • 1 replies
  • 0 kudos

Resolved! Column Tags Not Accessible in Genie (Azure Databricks)

Hi Team,We’ve applied column-level tags to a table in Azure Databricks and attached the table in our Genie workspace. However, when querying via Genie, the column tag information is not being returned correctly (missing/incomplete results), despite t...

sreya_sahithi_2-1774591739004.png
  • 1090 Views
  • 1 replies
  • 0 kudos
Latest Reply
Ale_Armillotta
Valued Contributor II
  • 0 kudos

Hi @sreya_sahithi,This is an important distinction about how Genie works: Genie queries the actual data rows in the tables attached to its space — it does not natively query Unity Catalog metadata such as column-level tags. Column tags live in INFORM...

  • 0 kudos
seefoods
by • Valued Contributor
  • 1360 Views
  • 2 replies
  • 0 kudos

Resolved! setup justfile command in order to launch your spark application

Hello Guys, Actually, I build a just file for my project which will be execute my wheel job task using command line, but when i run my wheel task i have encountered this error. from pyspark.sql.connect.expressions import PythonUDFEnvironmentImportErr...

  • 1360 Views
  • 2 replies
  • 0 kudos
Latest Reply
anuj_lathi
Databricks Employee
  • 0 kudos

This ImportError happens because you have both standalone pyspark and databricks-connect installed, and they conflict with each other. databricks-connect bundles its own version of PySpark internally — when the standalone pyspark package is also pres...

  • 0 kudos
1 More Replies
amrim
by • New Contributor III
  • 780 Views
  • 1 replies
  • 0 kudos

Resolved! Notebook dashboards: ugly export

Hello,Recently (within the last 2 weeks) the appearance of the notebook dashboard export got quite ugly.Consider this notebook dashboard as seen from Databricks:Databricks-dashboard-viewWhen exporting it as a file, it shows as this:file-dashboard-vie...

Screenshot 2026-03-26 102956.png Screenshot 2026-03-26 102851.png previous-dashboard-file-view.png
  • 780 Views
  • 1 replies
  • 0 kudos
Latest Reply
emma_s
Databricks Employee
  • 0 kudos

Hi, This sounds like a regression in the Databricks platform from a recent release. My recommendation would be to file a support ticket or raise with your account team. They'll be able to look into whether a fix for it is available and when it will b...

  • 0 kudos
Danish11052000
by • Contributor
  • 2875 Views
  • 2 replies
  • 1 kudos

Resolved! Discrepancy between Azure Billing and Databricks System Tables

Hi everyone,I am currently building a cost-tracking dashboard, but I’ve run into a major reconciliation issue between the Azure Portal and Databricks.The Numbers (Current Month):Azure Cost Management Portal: $2,041.79 (Total cost as per specific adb ...

  • 2875 Views
  • 2 replies
  • 1 kudos
Latest Reply
emma_s
Databricks Employee
  • 1 kudos

Hi, Yes you're correct in your conclusion the Databricks tables just use list price and therefore don't apply any negotiated discounts. They also won't include the underying VM cost when using classic compute. Most of our customers just handle the di...

  • 1 kudos
1 More Replies
bricks_2026
by • New Contributor III
  • 2564 Views
  • 4 replies
  • 1 kudos

Resolved! Issue while handling Deletes and Inserts in Structured Streaming

HelloWe have a framework which reads the CDF logs from the source table and then merges to the target table. The logic is implemented in such a way that( if there are multiple commit_versions in the source table), a window function is applied to iden...

  • 2564 Views
  • 4 replies
  • 1 kudos
Latest Reply
aleksandra_ch
Databricks Employee
  • 1 kudos

Hi @bricks_2026 , I recommend you to consider moving to AUTO CDC which handles the merge and window logic of CDF flow automatically. You need SCD Type 1 to get the last operation only. Check out these docs: Stop hand-coding change data capture pipeli...

  • 1 kudos
3 More Replies
hskimskydd
by • Databricks Partner
  • 1084 Views
  • 2 replies
  • 0 kudos

INTERNAL_ERROR occurred while converting Iceberg format table to Delta format using Spark

I used Apache Spark to write an iceberg table to Amazon S3.I then ran the code below to convert the iceberg table to delta, and the following exception occurred:```pythonspark.sql('convert to delta iceberg.`s3a://BUCKET/path/to/table_name/`')``````te...

  • 1084 Views
  • 2 replies
  • 0 kudos
Latest Reply
Louis_Frolio
Databricks Employee
  • 0 kudos

Hi @hskimskydd  Thanks for sharing the full stack trace — that helps a lot. What you're seeing looks like a bug at first glance, but there are a few things working together under the surface. The NullPointerException coming out of DelegatingCatalogEx...

  • 0 kudos
1 More Replies
leopold_cudzik
by • New Contributor II
  • 1469 Views
  • 4 replies
  • 0 kudos

Expensive join in spark declarative pipeline against a Lakeflow conect table

I'm trying to resolve one issue and I would like to get some expert opinion on what the right solution actually is.I have an SQL server with CDC with tables big_source (containing hundreds of millions of rows) and small_source containing small amount...

  • 1469 Views
  • 4 replies
  • 0 kudos
Latest Reply
emma_s
Databricks Employee
  • 0 kudos

Hi Leopold, Broadcast join is 100% the first thing to try. This effectively copies the the smaller table to each node that the larger table is being processes on and avoids multiple shuffles. Here is an example of how this is done in SQL. CREATE OR R...

  • 0 kudos
3 More Replies
Luisbct
by • New Contributor II
  • 1365 Views
  • 2 replies
  • 1 kudos

Resolved! Declarative Automation Bundles Volume creation fails with CATALOG_DOES_NOT_EXIST on first deploy

Hi everyone,I'm working with DAB, and I'm running into a deployment ordering issue.On my first deploy, I get this error:Error: cannot create resources.volumes.raw_data: Catalog 'mycatalog_prod' does not exist. (404 CATALOG_DOES_NOT_EXIST) Endpoint: ...

  • 1365 Views
  • 2 replies
  • 1 kudos
Latest Reply
Luisbct
New Contributor II
  • 1 kudos

It works now, thanks a lot for your help

  • 1 kudos
1 More Replies
RolandoCM2020
by • New Contributor II
  • 1181 Views
  • 2 replies
  • 1 kudos

Job with a cluster defined in DAB YML has error [UC_NOT_ENABLED] on cluster

Hello,The error is: [UC_NOT_ENABLED] Unity Catalog is not enabled on this cluster.We have a job that uses a cluster defined in yml as: small_cluster_id: description: "Small cluster, singleNode, for longer jobs" type: complex default: ...

Data Engineering
DAB
UC
YML
  • 1181 Views
  • 2 replies
  • 1 kudos
Latest Reply
RahulPathakDBX
Databricks Employee
  • 1 kudos

UC_NOT_ENABLED is a cluster configuration issue, not a permissions issue on the user. Databricks throws UC_NOT_ENABLED when the compute is not Unity Catalog enabled, i.e., its access mode is not Standard or Dedicated / (data_security_mode not USER_IS...

  • 1 kudos
1 More Replies
Labels