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

Przemk00
by • New Contributor II
  • 1555 Views
  • 1 replies
  • 0 kudos

Facilitate if/else condition in conjuction with parameters

The current state: I have a working workflow with 3 tasks with several parameters.The change: I want to modify the workflow to add 4 tasks - if/else so that based on one of the parameters (call it xyz) the workflow will not proceed after 1st task.The...

  • 1555 Views
  • 1 replies
  • 0 kudos
Latest Reply
Przemk00
New Contributor II
  • 0 kudos

The logic should be simple if the xyz parameter equals 1000 then run the other 2 tasks otherwise, do not run the rest.

  • 0 kudos
WWoman
by • Databricks Partner
  • 1798 Views
  • 2 replies
  • 1 kudos

Is there a way to create a local CSV file by creating a local external table?

Hello,I have a user that would like to create a CSV file on their local file system by creating an external table (USING CSV) and specifying a local file for the path parameter using SQL. They will be running this command from a local client (DbVisua...

  • 1798 Views
  • 2 replies
  • 1 kudos
Latest Reply
-werners-
Esteemed Contributor III
  • 1 kudos

not sure if this would work, but you could run Unity Catalog locally (possible since last week) and define the csv file as a table in that local UC. then query it.

  • 1 kudos
1 More Replies
aap_scott
by • New Contributor
  • 1550 Views
  • 1 replies
  • 0 kudos

Cannot navigate to workspace directory in multi-node cluster

When I open a terminal on a multi-node cluster, I cannot navigate to the workspace directoryHowever, on a single node cluster, it works fineThanks in advance 

aap_scott_0-1718313043369.png aap_scott_1-1718313219551.png
  • 1550 Views
  • 1 replies
  • 0 kudos
Latest Reply
NateAnth
Databricks Employee
  • 0 kudos

If this cluster is backed by an AWS Graviton instance, there is currently a limitation with the web terminal not being able to interact with the Workspace Filesystem.  Please give it a try in the notebook cell with the %sh magic command or switch to ...

  • 0 kudos
vamsivarun007
by • New Contributor II
  • 51667 Views
  • 5 replies
  • 3 kudos

Driver is up but is not responsive, likely due to GC.

Hi all, "Driver is up but is not responsive, likely due to GC." This is the message in cluster event logs. Can anyone help me with this. What does GC means? Garbage collection? Can we control it externally?

  • 51667 Views
  • 5 replies
  • 3 kudos
Latest Reply
jacovangelder
Databricks MVP
  • 3 kudos

9/10 times GC is due to out of memory exceptions.@Jaron spark.catalog.clearCache() is not a configurable option, but rather a command to submit.

  • 3 kudos
4 More Replies
mysteryuser000
by • Databricks Partner
  • 1165 Views
  • 0 replies
  • 0 kudos

dlt pipeline will not create live tables

I have created a dlt pipeline based four sql notebooks, each containing between 1 and 3 queries.  Each query begins with "create or refresh live table ..." yet each one outputs a materialized view.  I have tried deleting the materialized views and ru...

  • 1165 Views
  • 0 replies
  • 0 kudos
arthurandraderj
by • New Contributor II
  • 832 Views
  • 0 replies
  • 0 kudos

Error truncating #REF with spark.read

Hello guysI am trying to read an excel file and even using PERMISSIVE mode, its truncating the records that contains #REF in any column Can anyone please help me on that? schema = StructType([\        StructField('Col1', DateType(), True), \ <-------...

  • 832 Views
  • 0 replies
  • 0 kudos
dpc
by • Contributor III
  • 2395 Views
  • 2 replies
  • 3 kudos

Resolved! Data prefixed by ' > '

HiI have a databricks table that has a column with a string datatypeWhen loading data, certain rows are prefixed by ' > 'Does anybody know what would cause this?It seems to be when the string is above a certain number of characters (around 200)Thanks

  • 2395 Views
  • 2 replies
  • 3 kudos
Latest Reply
Jag
New Contributor III
  • 3 kudos

It looks like default string data length exceeded and due to that its showing this kind of symbol and extra new line in the column.

  • 3 kudos
1 More Replies
WTW-DBrat
by • New Contributor II
  • 2631 Views
  • 2 replies
  • 0 kudos

Service principal’s Microsoft Entra ID access token returns 400 when calling Databricks REST API

I'm using the following to call a Databricks REST API. When I use a PAT for access_token, everything works fine. When I use a Microsoft Entra ID access token, the response returns 400. The service principal has access to the workspace and is part of ...

  • 2631 Views
  • 2 replies
  • 0 kudos
Latest Reply
Jag
New Contributor III
  • 0 kudos

hello, Try to print the repose and see are you table to see the access_token in the payload else looks like access issue.Try to go to the workspace setting and grant token access permission to the service principle.Workspace > Setting 

  • 0 kudos
1 More Replies
isaac_gritz
by • Databricks Employee
  • 8748 Views
  • 5 replies
  • 5 kudos

SQL IDE Support

How to use a SQL IDE with Databricks SQLDatabricks provides SQL IDE support using DataGrip and DBeaver with Databricks SQL.Let us know in the comments if you've used DataDrip or DBeaver with Databricks! Let us know if there are any other SQL IDEs you...

  • 8748 Views
  • 5 replies
  • 5 kudos
Latest Reply
Jag
New Contributor III
  • 5 kudos

dbeaver is perfectly working fine but I fount one issue it wont show the correct error for query. 

  • 5 kudos
4 More Replies
tramtran
by • Contributor
  • 17712 Views
  • 7 replies
  • 0 kudos

Resolved! How to import a function to another notebook?

Could you please provide guidance on the correct way to dynamically import a Python module from a user-specific path in Databricks Repos? Any advice on resolving the ModuleNotFoundError would be greatly appreciated.udf_check_table_exists notebook:fro...

  • 17712 Views
  • 7 replies
  • 0 kudos
Latest Reply
tramtran
Contributor
  • 0 kudos

Thank you all again

  • 0 kudos
6 More Replies
Volker
by • Databricks Partner
  • 3180 Views
  • 1 replies
  • 0 kudos

Terraform Error: Cannot create sql table context deadline

I am currently trying to deploy external parquet tables to the Databricks UC using terraform. However, for some tables I get the following error:Error: cannot create sql table: Post "https://[MASKED]/api/2.0/sql/statements/": context deadline exceede...

  • 3180 Views
  • 1 replies
  • 0 kudos
Latest Reply
Volker
Databricks Partner
  • 0 kudos

Hey @Retired_mod,thanks for your reply and sorry for the late reply from my side. I couldn't fix the problem with the databricks terraform provider unfortunately. I now switched to using liquibase to deploy tables to databricks.

  • 0 kudos
JeremyH
by • New Contributor II
  • 6036 Views
  • 4 replies
  • 0 kudos

CREATE WIDGETS in SQL Notebook attached to SQL Warehouse Doesn't Work.

I'm able to create and use widgets using the UI in my SQL notebooks, but they get lost quite frequently when the notebook is reset.There is documentation suggesting we can create widgets in code in SQL: https://learn.microsoft.com/en-us/azure/databri...

  • 6036 Views
  • 4 replies
  • 0 kudos
Latest Reply
shan_chandra
Databricks Employee
  • 0 kudos

Hi @JeremyH - can you please try adding like the below in your query and see if widgets are getting populated? {{parameter_name }}

  • 0 kudos
3 More Replies
Akash_Wadhankar
by • Databricks Partner
  • 1442 Views
  • 0 replies
  • 0 kudos

DatabricksUniForm

Hi Community members, I tried creating a Delta UniForm table using databricks notebook. I created a database without providing location. It took the dbfs default storage location. On top of that I was able to create a Delta UniForm table. Then I trie...

  • 1442 Views
  • 0 replies
  • 0 kudos
Labels