Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
NiteshS
Helper I
Helper I

Delta parquet format to JSON format

Dear Community,

 

I have my delta parquet table saved in Fabric Notebook. Is there a way to convert this to JSON file? Also, how can I access this JSON file locally on my system.

 

Thanks

Nitesh

1 ACCEPTED SOLUTION

Hi @NiteshS 

 

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. In case if you have any resolution please do share that same with the community as it can be helpful to others.
Otherwise, will respond back with the more details and we will try to help.

 

Thanks

View solution in original post

5 REPLIES 5
v-cboorla-msft
Community Support
Community Support

Hi @NiteshS 

 

Thanks for using Microsoft Fabric Community.

As I understand that you want to convert a delta parquet table that is saved in Fabric Notebook to JSON file and also you want to access this JSON file locally on your system.

I have tried the repro from our end and followed the below steps to achieve your ask.

Step1: Reading the data from delta table.

vcboorlamsft_0-1702565443049.png

Step2: Converting the delta table to JSON by using the below mentioned code.

delta_df = spark.read.format("delta").load("File Path")
json_df = delta_df.write.format("json").save("File Path")

vcboorlamsft_1-1702565509575.png

Step3: Reading the data from JSON file.

vcboorlamsft_2-1702565551217.png

Please find the screenshot for the converted JSON file

vcboorlamsft_3-1702565568366.png

In order to access the JSON file on your local system, you can achieve this by installing One Lake explorer and sync with your workspace, you can download the JSON file into your local system from One Lake explorer. Screenshot attached for reference.

vcboorlamsft_4-1702565696457.png

 

I hope this information helps. Please do let us know if you have any further questions.

Thank you v-cboorla-msft. WIll try this out.

Hi @NiteshS 

 

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. In case if you have any resolution please do share that same with the community as it can be helpful to others.
Otherwise, will respond back with the more details and we will try to help.

 

Thanks

Hi @NiteshS 

 

Glad that your query got resolved.

Please continue using Fabric Community for any help regarding your queries.

Thank you for your prompt response.

Helpful resources

Announcements
Expanding the Synapse Forums

New forum boards available in Synapse

Ask questions in Data Engineering, Data Science, Data Warehouse and General Discussion.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Update Carousel

Fabric Monthly Update - April 2024

Check out the April 2024 Fabric update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors