Activity
Mon
Wed
Fri
Sun
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
What is this?
Less
More

Memberships

Learn Microsoft Fabric

14.3k members • Free

2 contributions to Learn Microsoft Fabric
Unable to read or write into lakehouse
I was able to run the following code without issues. df = spark.read.format("csv").option("header","true").load("Files/data/orders_data/2019.csv") But when I try to create a file using python it doesn't let me and throws FileNotFoundError: [Errno 2] No such file or directory: '/Files/xyz/2024-11-03_xyz.json' import json data = "{'k1':'xyz'}" file_path = f'/Files/xyz/{start_date}_xyz.json' # Open the file in write mode ('w') and save the JSON data with open(file_path, 'w') as file: # The `json.dump` method serializes `data` as a JSON formatted stream to `file` `indent=4` makes the file human-readable by adding whitespace json.dump(data, file, indent=4) print(f"Data successfully saved to {file_path}") Isn't it possible to access and interact with lakehouse via simple Python code?
1 like • Nov '24
looks like I had to append /lakehouse/default/ to it. I works now.
Best practices for loading data into Star Schema with Semantic model?
Morning, I'm currently in the middle of a Fabric trial where we're trying out a bunch of use cases. We've just hit a bit of a hurdle and I am wondering if there is already a guide available somewhere. We've created a basic star schema in a warehouse (that we've called our Gold Warehouse) and loaded some data in. Initially in our pipeline we were just dropping and recreating the tables (for ease) using CTAS statements.. Then when we went on to playing around with the semantic model, that broke our pipeline because of the FKs it created. This is where we hit a bit of a dead end. We're trying to resist using DELETE statements for speed reasons. But techniques such as programmatically dropping the constraints and re-adding them or partition switching seem to be off the table. Curious to know if there is a guide or what everyone else is doing?
1 like • Oct '24
isn't it adviced not to drop and recreate your tables in star schema
1-2 of 2
John Eipe
1
3points to level up
@john-eipe-1584
Husband, Father, Developer, Software Consultant with experience in Snowflake, Data Eng. (Python/SQL), Java/Spring/Quarkus, Nodejs/Express and NLP.

Active 390d ago
Joined Sep 6, 2024
Powered by