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

WYO
by • New Contributor II
  • 4994 Views
  • 3 replies
  • 1 kudos

Export data from databricks to prem

Hello everyoneI need to export some data to sql server management studio on premise.I need to verify that the new data on databricks is aligned with the older data that we have on premise.Is it possible to export data as an Excel sheet or .csv file?R...

  • 4994 Views
  • 3 replies
  • 1 kudos
Latest Reply
Avinash_Narala
Databricks Partner
  • 1 kudos

You can compare your databricks data with on-prem sql server data in two ways:Firstly, you have to make connection between sql-server and databricks using volumes.  Using volumes we can mount sql server data into databricks unity catalog1.we can comp...

  • 1 kudos
2 More Replies
sahil_s_jain
by • New Contributor III
  • 7696 Views
  • 2 replies
  • 1 kudos

Resolved! Databricks 13.3LTS to 15.4 LTS Migration - Spark job with source DB2 database not working

I'm trying to migrate a spark job from Databricks 13.3 LTS to 15.4 LTS. The spark job uses db2jcc4.jar for DB2 database connection. Below is the spark code:%scala // Import Spark SQL import org.apache.spark.sql.SparkSession // Create a Spark session...

  • 7696 Views
  • 2 replies
  • 1 kudos
Latest Reply
sahil_s_jain
New Contributor III
  • 1 kudos

Thanks for the solution.

  • 1 kudos
1 More Replies
mikeagicman
by • New Contributor
  • 3647 Views
  • 1 replies
  • 0 kudos

Handling Unknown Fields in DLT Pipeline

HiI'm working on a DLT pipeline where I read JSON files stored in S3.I'm using the auto loader to identify the file schema and adding schema hints for some fields to specify their type.When running it against a single data file that contains addition...

  • 3647 Views
  • 1 replies
  • 0 kudos
Latest Reply
jb1z
Contributor
  • 0 kudos

Hi community and @mikeagicman i saw this error when trying to load a json file. I discovered the problem was that the schemaLocation i was using was pointing to a different table schema, so it was trying to match columns that did not exist. When i se...

  • 0 kudos
tessaickx
by • New Contributor III
  • 6309 Views
  • 4 replies
  • 4 kudos

Using ipywidgets latest versions

Hello everyone,I upgraded my cluster to DBR 13.0, which comes with ipywidgets version 7.7.2 installed.However, I want to use the TagsInput widget, which is new since version 8.0.4.If i upgrade the ipywidgets package to version 8.0.4, none of the widg...

  • 6309 Views
  • 4 replies
  • 4 kudos
Latest Reply
pmd84
Databricks Partner
  • 4 kudos

I can confirm that installing a newer ipywidgets library version at a cluster level does not resolve these issues. The arcgis library relies on ipywidgets v8 to render maps. Even when I install ipywidgets > 8 at the cluster level, the widgets still d...

  • 4 kudos
3 More Replies
Erik
by • Valued Contributor III
  • 42289 Views
  • 19 replies
  • 15 kudos

How to enable/verify cloud fetch from PowerBI

I tried to benchmark the Powerbi Databricks connector vs the powerbi Delta Lake reader on a dataset of 2.15million rows. I found that the delta lake reader used 20 seconds, while importing through the SQL compute endpoint took ~75 seconds. When I loo...

query_statistics query_profile_tree_view
  • 42289 Views
  • 19 replies
  • 15 kudos
Latest Reply
datadrivenangel
New Contributor III
  • 15 kudos

I'm troubleshooting slow speeds (~6Mbps) from Azure Databricks to the PowerBI Service (Fabric) via dataflows.Drivers are up to date. PowerBI is using Microsoft's Spark ODBC driver Version 2.7.6.1014, confirmed via log4j.HybridCloudStoreResultHandler...

  • 15 kudos
18 More Replies
p_hcarvalho
by • New Contributor II
  • 1434 Views
  • 2 replies
  • 0 kudos

API error when creating serverless job "MALFORMED_REQUEST"

I tried executing the job run summit API (/api/2.1/jobs/runs/submit)I have two executions of this API, the first one is working, but the second one don't,I'm getting the following error:{"error_code":"MALFORMED_REQUEST","message":"Invalid JSON given ...

  • 1434 Views
  • 2 replies
  • 0 kudos
Latest Reply
Alberto_Umana
Databricks Employee
  • 0 kudos

Hi @p_hcarvalho, Thanks for your question, here's a corrected version of your JSON payload, can you try it? {"run_name": "my-other-run-name","tasks": [{"task_key": "my-other-task-name","notebook_task": {"notebook_path": "my/notebook/path","source": "...

  • 0 kudos
1 More Replies
erigaud
by • Honored Contributor
  • 1542 Views
  • 2 replies
  • 0 kudos

Speeding up Command Execution API

Hello,I'm using the Databricks Command Execution api to run some spark computations on a dedicated cluster and return the results. I would ideally want the results quickly, especially since the spark computations needed take less that 0.1s.However wh...

erigaud_0-1737640182808.png
  • 1542 Views
  • 2 replies
  • 0 kudos
Latest Reply
Rjdudley
Honored Contributor
  • 0 kudos

My first thought concurs with @Alberto_Umana, the only time I've seen queuing like that is when the cluster is not running.  Make sure you have the correct warehouse_id configured in your API calls.

  • 0 kudos
1 More Replies
KalyaniJaya
by • Databricks Partner
  • 1732 Views
  • 1 replies
  • 0 kudos

'dbutils.jobs.taskValues.get' taking debug value in workflow, instead of actual value being set

Hi,I am trying to pass and set values from one wheel into another wheel in databricks workflow.I have used 'dbutils.jobs.taskValues.get' and 'dbutils.jobs.taskValues.set'I have used 'dbutils.jobs.taskValues.get' in second task and made sure to keep d...

  • 1732 Views
  • 1 replies
  • 0 kudos
Latest Reply
Alberto_Umana
Databricks Employee
  • 0 kudos

It seems like the issue you're encountering is related to the debugValue parameter being used instead of the actual value when calling dbutils.jobs.taskValues.get. This behavior is expected when the notebook is run outside of a job context, as the de...

  • 0 kudos
Sadam97
by • New Contributor III
  • 1663 Views
  • 1 replies
  • 0 kudos

How to get the databricks support contract

We are trying to get the databricks support contract but have no luck. After moving here and there we found this email address gtmops@databricks.com to get support contract but its been 3 weeks and multiple emails from our side but no reply. What's t...

  • 1663 Views
  • 1 replies
  • 0 kudos
Latest Reply
Alberto_Umana
Databricks Employee
  • 0 kudos

Hello @Sadam97, Please use help@databricks.com: https://docs.databricks.com/en/resources/support.html

  • 0 kudos
Nate-Haines
by • New Contributor III
  • 10981 Views
  • 3 replies
  • 8 kudos

Drive memory utilization cleanup

Issue Summary:When running multiple jobs on the same compute cluster, over time, I see an increase in memory utilization that is seemingly never fully released, even when jobs finish. This eventually leads to some jobs stalling out as memory hits the...

  • 10981 Views
  • 3 replies
  • 8 kudos
Latest Reply
KyleGrymonpre
New Contributor III
  • 8 kudos

I'm encountering something similar. Immediately upon starting a cluster and triggering a job run, my memory usage jumps from 0 to about 20GB used and 15GB cached (see the attached screenshot). The data I am working with should be very small (less tha...

  • 8 kudos
2 More Replies
pradeepvatsvk
by • New Contributor III
  • 2516 Views
  • 2 replies
  • 3 kudos

Working with Pandas through Abfss

Hi, I am unable to read and write pandas datframe through abfss protocol , Is there a work around for this , I do not want to store my files in dbfs

  • 2516 Views
  • 2 replies
  • 3 kudos
Latest Reply
Avinash_Narala
Databricks Partner
  • 3 kudos

you can use volumes and mount the abfss location to unity catalog and can access the files present in azure in databricks. Regards,Avinash N

  • 3 kudos
1 More Replies
pwtnew32
by • New Contributor III
  • 3166 Views
  • 3 replies
  • 3 kudos

Resolved! Lakehouse Federation

I use Lakehouse Federation to connect hive metastore (local VM) with metastore database type mysqlIt's can see database and table in hive but when I query data session continue running without failed or success.Do I have to migrate data to ADLs which...

  • 3166 Views
  • 3 replies
  • 3 kudos
Latest Reply
Avinash_Narala
Databricks Partner
  • 3 kudos

As for Lakehouse Federation, only some sources are supported as of now. In that, connecting to HiveMetastore data which is in local VM is not supported, so you can migrate that data to ADLS and mount that as external location in unity catalog and que...

  • 3 kudos
2 More Replies
weilin0323
by • New Contributor III
  • 3338 Views
  • 2 replies
  • 3 kudos

Resolved! How to Apply Encryption Function to a Specific Column

Hello!I would like to apply a function to encrypt a specific column. The UDF is as follows: DROP FUNCTION IF EXISTS EncryptColumn; CREATE FUNCTION EncryptColumn (key_name STRING, encryptcolumn STRING) RETURN base64(aes_encrypt(encryptcolumn, key_nam...

weilin0323_0-1737526512566.png
  • 3338 Views
  • 2 replies
  • 3 kudos
Latest Reply
weilin0323
New Contributor III
  • 3 kudos

Hi @MadhuB,The method you provided is feasible, and I later finded other ways to apply UDF:UPDATE table_name SET column_name = EncryptColumn(key_name, column_name) Thank you!

  • 3 kudos
1 More Replies
johngabbradley
by • New Contributor II
  • 1821 Views
  • 2 replies
  • 0 kudos

Using spark.read.json with a {} literal in my path

I am pulling data from an S3 bucket using spark.read.json like thiss3_uri = "s3://snowflake-genesys/v2.outbound.campaigns.{id}/2025-01-22/00/"       df = spark.read.json(s3_uri)My s3 url has the {id} in the file path.  I have used r"s3://snowflake-ge...

  • 1821 Views
  • 2 replies
  • 0 kudos
Latest Reply
Alberto_Umana
Databricks Employee
  • 0 kudos

Hi @johngabbradley, Would below approach work for you? s3_uri = "s3://snowflake-genesys/v2.outbound.campaigns.{id}/2025-01-22/00/"files = dbutils.fs.ls(s3_uri)file_paths = [file.path for file in files]df = spark.read.json(file_paths)

  • 0 kudos
1 More Replies
Labels