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:ย 

Fixed length file from Databricks notebook ( Spark SQL)

Sadiq
New Contributor III

Hi ,

I need help writing data from azure databricks notebook into Fixed Length .txt.

notebook has 10 lakh rows and 86 columns. can anyone suggest me

5 REPLIES 5

Debayan
Esteemed Contributor III

Hi Sadiq, Could you please refer below and check if this helps.

https://k21academy.com/microsoft-azure/data-engineer/reading-and-writing-data-in-databricks/

Sadiq
New Contributor III

this is not the resolution

Debayan
Esteemed Contributor III

Hi @sadiq valiโ€‹ Could you please elaborate a little more what are you expecting about writing data into fixed length.txt?

Sadiq
New Contributor III

I have data in databrick notebook which is in the form of columns and rows.

now I want to export data from notebook to .txt file with fixed length.

like each column has defined with legth.

support column1 it should occupy only first 10 lenth

Vidula
Honored Contributor

Hi @sadiq valiโ€‹ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group