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

etum
by • New Contributor II
  • 1542 Views
  • 0 replies
  • 1 kudos

Importing JSON files when format is subject to evolution

Hi there,I'm reaching out for some assistance with importing JSON files into Databricks. Still a beginner even if I've gained experience working with various data import batches (CSV/JSON) for application monitoring:  I'm currently facing a challenge...

  • 1542 Views
  • 0 replies
  • 1 kudos
Husky
by • New Contributor III
  • 22020 Views
  • 4 replies
  • 1 kudos

Resolved! Upload file from local file system to Unity Catalog Volume (via databricks-connect)

Context:IDE: IntelliJ 2023.3.2Library: databricks-connect 13.3Python: 3.10Description:I develop notebooks and python scripts locally in the IDE and I connect to the spark cluster via databricks-connect for a better developer experience.  I download a...

  • 22020 Views
  • 4 replies
  • 1 kudos
Latest Reply
lathaniel
New Contributor III
  • 1 kudos

Late to the discussion, but I too was looking for a way to do this _programmatically_, as opposed to the UI.The solution I landed on was using the Python SDK (though you could assuredly do this using an API request instead if you're not in Python):w ...

  • 1 kudos
3 More Replies
m208205
by • New Contributor
  • 2451 Views
  • 0 replies
  • 0 kudos

Difference in support for partitions between hive and Unity

The Unity migration guide (https://docs.databricks.com/en/data-governance/unity-catalog/migrate.html#before-you-begin) states the following:Unity Catalog manages partitions differently than Hive. Hive commands that directly manipulate partitions are ...

Data Engineering
Unity Catalog
  • 2451 Views
  • 0 replies
  • 0 kudos
Hardy
by • New Contributor III
  • 13943 Views
  • 5 replies
  • 6 kudos

The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption

I am trying to connect to SQL through JDBC from databricks notebook. (Below is my notebook command)val df = spark.read.jdbc(jdbcUrl, "[MyTableName]", connectionProperties) println(df.schema)When I execute this command, with DBR 10.4 LTS it works fin...

  • 13943 Views
  • 5 replies
  • 6 kudos
Latest Reply
DBXC
Contributor
  • 6 kudos

Try to add the following parameters to your SQL connection string. It fixed my problem for 13.X and 12.X;trustServerCertificate=true;hostNameInCertificate=*.database.windows.net; 

  • 6 kudos
4 More Replies
Clampazzo
by • New Contributor II
  • 4125 Views
  • 3 replies
  • 0 kudos

Power BI RLS running extremely slowly with databricks

Hi Everyone,I am brand new to databricks and am setting up my first Semantic Model with RLS and have run into an unexpected problem.When I was testing my model with filters applied (where the RLS would handle later on) it runs extremely fast.  I look...

Data Engineering
Power BI
sql
  • 4125 Views
  • 3 replies
  • 0 kudos
Latest Reply
KTheJoker
Databricks Employee
  • 0 kudos

Are you trying to use Power BI RLS rules on top of DirectQuery? Can you give an example of the rules you're trying to apply? Are they static roles, or dynamic roles based on the user's UPN/email being in the dataset?

  • 0 kudos
2 More Replies
Mathias_Peters
by • Contributor II
  • 3743 Views
  • 2 replies
  • 1 kudos

Resolved! DLT table not picked in python notebook

Hi, I am a bit stumped atm bc I cannot figure out how to get a DLT table definition picked up in a Python notebook. 1. I created a new notebook in python2. added the following code:  %python import dlt from pyspark.sql.functions import * @dlt.table(...

Mathias_Peters_0-1715334658498.png
  • 3743 Views
  • 2 replies
  • 1 kudos
Latest Reply
Mathias_Peters
Contributor II
  • 1 kudos

Ok, it seems that the default language of the notebook and the language of a particular cell can clash. If the default is set to Python, switching a cell to SQL won't work in DLT and vice versa. This is super unintuitive tbh.

  • 1 kudos
1 More Replies
Muralijv
by • New Contributor
  • 2948 Views
  • 1 replies
  • 0 kudos

Databricks REST API

Hi , I am trying to create a Global Initscript using rest API as below successfully in the first step using Powershell. In the second step I am trying to enable it using rest api and getting the following error:  Any guidance or help is appreciated. ...

  • 2948 Views
  • 1 replies
  • 0 kudos
Latest Reply
feiyun0112
Honored Contributor
  • 0 kudos

This  API use PATH method, but you use POSTPATCH /api/2.0/workspace-confhttps://docs.databricks.com/api/workspace/workspaceconf/setstatus 

  • 0 kudos
Faisal
by • Contributor
  • 9449 Views
  • 1 replies
  • 0 kudos

DLT SQL

What is best practise to implement parameterization in SQL DLT (specifically) pipelines so that it's easy and no manual intervention would be potentially required to migrate from dev_region to prod_region

  • 9449 Views
  • 1 replies
  • 0 kudos
Latest Reply
_databreaks
Databricks Partner
  • 0 kudos

I would love to see a sample implementation of this config table.

  • 0 kudos
harraz
by • New Contributor III
  • 12208 Views
  • 3 replies
  • 0 kudos

Unable to use unity catalog in notebook

com.databricks.backend.common.rpc.SparkDriverExceptions$SQLExecutionException: org.apache.spark.sql.connector.catalog.CatalogNotFoundException: Catalog 'uc-dev' plugin class not found: spark.sql.catalog.uc-dev is not defined ....I get the above when ...

  • 12208 Views
  • 3 replies
  • 0 kudos
Latest Reply
Tomas
New Contributor II
  • 0 kudos

I had the same error plugin class not found: spark.sql.catalog... is not defined immediately after attaching the workspace into Unity catalog.The error was resolved by restarting SQL Warehouse.It seems that if SQL Warehouse (or any cluster) is runnin...

  • 0 kudos
2 More Replies
Christine
by • Contributor II
  • 14462 Views
  • 9 replies
  • 5 kudos

Resolved! pyspark dataframe empties after it has been saved to delta lake.

Hi, I am facing a problem that I hope to get some help to understand. I have created a function that is supposed to check if the input data already exist in a saved delta table and if not, it should create some calculations and append the new data to...

  • 14462 Views
  • 9 replies
  • 5 kudos
Latest Reply
SharathE
New Contributor III
  • 5 kudos

Hi,im also having similar issue ..does creating temp view and reading it again after saving to a table works?? /

  • 5 kudos
8 More Replies
SankaraiahNaray
by • New Contributor II
  • 36431 Views
  • 10 replies
  • 5 kudos

Not able to read text file from local file path - Spark CSV reader

We are using Spark CSV reader to read the csv file to convert as DataFrame and we are running the job on yarn-client, its working fine in local mode. We are submitting the spark job in edge node. But when we place the file in local file path instead...

  • 36431 Views
  • 10 replies
  • 5 kudos
Latest Reply
AshleeBall
New Contributor II
  • 5 kudos

Thanks for your help. It helped me a lot.

  • 5 kudos
9 More Replies
Karene
by • New Contributor
  • 2795 Views
  • 1 replies
  • 0 kudos

Databricks Connection to Redash

Hello,I am trying to connect my Redash account with Databricks so that my organization can run queries on the data in Unity Catalog from Redash.I followed through the steps in the documentation and managed to connect successfully. However, I am only ...

  • 2795 Views
  • 1 replies
  • 0 kudos
Latest Reply
JameDavi_51481
Contributor
  • 0 kudos

it looks like the Redash connector for Databricks is hard-coded to run `SHOW DATABASES`, which only shows `hive_metastore` by default. This probably needs to be updated to run `SHOW CATALOGS` and then `SHOW SCHEMAS in <catalog_name>` for each of thos...

  • 0 kudos
Labels