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

ismaelhenzel
by • Valued Contributor
  • 1501 Views
  • 1 replies
  • 0 kudos

Schema Evolution/Type Widening in Materialized Views

My team is migrating pipelines from Spark to Delta Live Tables (DLT), but we've found that some important features, like schema evolution for tables with enforced schemas, seem to be missing. In DLT, we can define schemas, set primary and foreign key...

  • 1501 Views
  • 1 replies
  • 0 kudos
Latest Reply
nayan_wylde
Esteemed Contributor II
  • 0 kudos

DLT supports schema evolution, but changing column data types (like from DECIMAL(10,5) to DECIMAL(11,5)) is not automatically handled. Here's how you can manage it:Option 1: Full Refresh with Schema UpdateIf you're okay with refreshing the materializ...

  • 0 kudos
zc
by • New Contributor III
  • 13272 Views
  • 9 replies
  • 7 kudos

Resolved! Use Array in WHERE IN clause

This is what I'm trying to do using SQL: create table check1 asselect * from dataAwhere IDs in ('12483258','12483871','12483883'); The list of IDs is much longer and may be changed so I want to use a variable for that. This is what I have tried decla...

  • 13272 Views
  • 9 replies
  • 7 kudos
Latest Reply
BS_THE_ANALYST
Databricks Partner
  • 7 kudos

Nice solutions! @ManojkMohan @WiliamRosa I love the use of the temp view for the intermediate result. The array_contains is also a really nice touch. @ManojkMohan when you write "SET VARIABLE ids = ARRAY('12483258','12483871','12483883');" ... can th...

  • 7 kudos
8 More Replies
Rainier_dw
by • Databricks Partner
  • 4601 Views
  • 6 replies
  • 6 kudos

Resolved! Rollbacks/deletes on streaming table

Hi all — I’m running a Medallion streaming pipeline on Databricks using DLT (bronze → staging silver view → silver table). I ran into an issue and would appreciate any advice or best practices.What I’m doingIngesting streaming data into a streaming b...

  • 4601 Views
  • 6 replies
  • 6 kudos
Latest Reply
dalcuovidiu
New Contributor III
  • 6 kudos

I'm not entirely sure if I’m missing something here, but as far as I know there’s a golden rule in DWH applications: you never hard delete records, you use soft deletes instead. So I’m a bit puzzled why a hard delete is being used in this case.

  • 6 kudos
5 More Replies
ChingizK
by • New Contributor III
  • 4747 Views
  • 5 replies
  • 2 kudos

Exclude a job from bundle deployment in PROD

My question is regarding Databricks Asset Bundles. I have defined a databricks.yml file the following way: bundle: name: my_bundle_name include: - resources/jobs/*.yml targets: dev: mode: development default: true workspace: ...

  • 4747 Views
  • 5 replies
  • 2 kudos
Latest Reply
Coffee77
Honored Contributor III
  • 2 kudos

Me too. No clean solution yet. As workaround I implemented first an "extra" control in specific jobs that never should be run in PROD to block execution based on environment variable in all clusters (I don't really like much but it was effective). As...

  • 2 kudos
4 More Replies
Datalight
by • Contributor
  • 4158 Views
  • 10 replies
  • 4 kudos

Resolved! High Level Design for Transfer Data from One Databricks account to Another databricks account

Hi,May someone please help me with only Points which should be part of High Level Design and Low Level Design when transfering Data from One Databricks account to Another databricks account using Unity Catalog. First time full data transfer and than ...

  • 4158 Views
  • 10 replies
  • 4 kudos
Latest Reply
Coffee77
Honored Contributor III
  • 4 kudos

Based on my previous reply, you can use DEEP CLONE to clone data incrementally between workspaces by including it in a scheduled job but this will not work in real time indeed.

  • 4 kudos
9 More Replies
dalcuovidiu
by • New Contributor III
  • 6394 Views
  • 11 replies
  • 10 kudos

DLT - SCD 2 - detect deletes

Hello,I have a question related to APPLY AS DELETE WHEN...If the source table does not have a column that specifies whether a record was deleted, I am currently using a workaround by ingesting synthetic data with a soft_deletion flag. In the future, ...

  • 6394 Views
  • 11 replies
  • 10 kudos
Latest Reply
dalcuovidiu
New Contributor III
  • 10 kudos

ok. In my case I am qualified for: Incremental without a delete flag (classic case)Generate synthetic tombstones via an anti-join between the current set of keys and the target’s active keys.I don't want to use Merge, that's why my question was for C...

  • 10 kudos
10 More Replies
BS_THE_ANALYST
by • Databricks Partner
  • 6550 Views
  • 2 replies
  • 3 kudos

Resolved! Opinions/Thoughts: SQL Best Practices in Production .. DBT vs DLT ?

Hey everyone, I'd like to hear the experiences of the community on DLT (Lakeflow declarative pipelines) vs DBT. 1. Why would one choose one instead of the other? 2. How does picking one of these level up your SQL strategy?I am somebody who's well-ver...

  • 6550 Views
  • 2 replies
  • 3 kudos
Latest Reply
BS_THE_ANALYST
Databricks Partner
  • 3 kudos

That's a cracking write up @szymon_dybczak. Thanks for that .That's certainly given me some food for thought. I think the safest option here, at least for me, is digging into both of them. I feel better informed moving forward with this. I'd love to ...

  • 3 kudos
1 More Replies
SanneJansen564
by • Contributor
  • 4090 Views
  • 11 replies
  • 5 kudos

Ensuring Row Order When Importing CSV with COPY INTO

Hi everyone,I have a CSV file stored in S3, and it's critical for my process that the rows are loaded in the exact order they appear in the file.Does the COPY INTO command preserve the original row order during the load? I need to make sure the bronz...

  • 4090 Views
  • 11 replies
  • 5 kudos
Latest Reply
WiliamRosa
Databricks Partner
  • 5 kudos

tks @SanneJansen564 

  • 5 kudos
10 More Replies
kenmyers-8451
by • Contributor II
  • 1470 Views
  • 1 replies
  • 0 kudos

Suggestion: allow existing_cluster_id override from run_job_task and for_each_task

I'm not sure if this feature exists in newer versions of databricks CLI (doubtful because this doesn't seem possible in the UI either but if it helps my team has been on 0.222.0 for a while because it has been stable enough for us) and maybe this is ...

  • 1470 Views
  • 1 replies
  • 0 kudos
Latest Reply
WiliamRosa
Databricks Partner
  • 0 kudos

Hi @kenmyers-8451, I’m also not sure if this feature exists in newer versions. Since no one else has replied, I’d suggest raising a ticket with the Databricks Support Team — they’ll be able to provide clarity on this topic:http://help.databricks.com/...

  • 0 kudos
Jothia
by • New Contributor III
  • 1691 Views
  • 4 replies
  • 1 kudos

spark excel reading custom cell

Hi all,some one help me to read excel with custom format cells _(* #,##0_);_(* (#,##0);_(* "-"??_);_(@_) from databricks using spark.excel read 

  • 1691 Views
  • 4 replies
  • 1 kudos
Latest Reply
BS_THE_ANALYST
Databricks Partner
  • 1 kudos

I don't think this should be too hard to handle with a python library @SebastianRowan. I'm happy to take a look if you could provide an example of where it doesn't work .All the best,BS

  • 1 kudos
3 More Replies
cnjrules
by • New Contributor III
  • 6779 Views
  • 4 replies
  • 0 kudos

Resolved! Reference file name when using COPY INTO?

When using the COPY INTO statement is it possible to reference the current file name in the select staement? A generic example is shown below, hoping I can log the file name in the target table.COPY INTO my_table FROM (SELECT key, index, textData, ...

  • 6779 Views
  • 4 replies
  • 0 kudos
Latest Reply
dalcuovidiu
New Contributor III
  • 0 kudos

In sql, with a subselect works just fine %sql COPY INTO tabele_copy_into_test from (  SELECT    user_id,    email,    _metadata.file_name AS source_filefrom "/Volumes/dbacademy_ecommerce/v01/raw/users-historical/")FILEFORMAT = PARQUETCOPY_OPTIONS ('m...

  • 0 kudos
3 More Replies
WiliamRosa
by • Databricks Partner
  • 2786 Views
  • 5 replies
  • 10 kudos

Databricks Hungary Meetup

Details:Free event, registration is required: https://datapao.com/databricks-hungary-meetup/SUMMARYJoin DATAPAO for the autumn edition of our Databricks Hungary Meetup. Join us and our exciting guests from Databricks for talks, product updates and ne...

WiliamRosa_0-1755269485946.png
  • 2786 Views
  • 5 replies
  • 10 kudos
Latest Reply
BS_THE_ANALYST
Databricks Partner
  • 10 kudos

@WiliamRosa if you make any material available after the meeting, I'd be interested to take a look ! I hope you guys have a great time. All the best,BS

  • 10 kudos
4 More Replies
PriyankaM1
by • New Contributor II
  • 2466 Views
  • 4 replies
  • 4 kudos

Cobrix Library

I need cobrix package free in my account. How do I install it, as there is only 1 compute. Do I need to email admin? Also, I am not able open any support ticket for this

  • 2466 Views
  • 4 replies
  • 4 kudos
Latest Reply
szymon_dybczak
Esteemed Contributor III
  • 4 kudos

HI @PriyankaM1 ,Assuming you're using Unity Catalog compute cluster with Dedicated access mode (formerly called single user), to install that library you need to:- grab maven coordinates -> za.co.absa.cobrix:spark-cobol_2.13:2.8.4- go to Compute sect...

  • 4 kudos
3 More Replies
noorbasha534
by • Valued Contributor II
  • 2315 Views
  • 5 replies
  • 1 kudos

EXPLAIN PLAN parser

hello all,have you come across a freely available parser that does good job for parsing explain plans for SQL queries in databricks...

  • 2315 Views
  • 5 replies
  • 1 kudos
Latest Reply
WiliamRosa
Databricks Partner
  • 1 kudos

got it. If execution is not an option, you can still extract columns without running the queries by parsing their AST.Use Spark’s internal SQL parser (no execution)You can parse to an unresolved logical plan and walk the tree for Filter, Join, and Ag...

  • 1 kudos
4 More Replies
ayush_273
by • New Contributor
  • 8169 Views
  • 6 replies
  • 1 kudos

Migrate transformations from snowflake to databricks

I want to migrate my data as well as the transformations i have to convert my raw data into BI data. Is there a way i can move those transformation to databricks? Some of the transformations use native snowflake functions.Thanks in advance.

  • 8169 Views
  • 6 replies
  • 1 kudos
Latest Reply
WiliamRosa
Databricks Partner
  • 1 kudos

Hi @thelogicplus, I’ve also used Travinto Technologies’ tool for this kind of migration.

  • 1 kudos
5 More Replies
Labels