Lakehouse-data bewerken

Introductie tot Microsoft Fabric

Alex Kuntz

Technical Instructional Designer

Alleen-lezen lakehouses

  • SQL Analytics Engine is alleen-lezen

Alleen-lezen SQL-analyse-eindpunten voor elke Lakehouse. Warehouses kunnen SQL gebruiken voor lees- en schrijfrechten.

1 https://learn.microsoft.com/en-us/fabric/data-warehouse/data-warehousing
Introductie tot Microsoft Fabric

Data Manipulation Language (DML)-instructies

  • SQL-trefwoorden voor het wijzigen van tabeldata
    • UPDATE
    • INSERT
    • DELETE
  • De SQL Analytics Endpoint is voor analyse, niet voor bewerking!
Introductie tot Microsoft Fabric

DML in notebooks: Spark SQL

  • Notebooks kun je gebruiken om lakehouse-data te bewerken!
  • Spark SQL-cellen in notebooks kunnen DML-instructies uitvoeren.

Een voorbeeld van een DML-instructie in een Spark SQL-cel

Introductie tot Microsoft Fabric

DML in notebooks: PySpark

  • PySpark-cellen in een notebook kunnen DML uitvoeren
  • overwrite-modus
    df.write.mode("overwrite").format("delta").saveAsTable(table)
    
  • append-modus
    new_rows_df.write.mode("append").format("delta").saveAsTable(table)
    
  • Maak je geen zorgen over Python- of SQL-syntax in deze cursus!
Introductie tot Microsoft Fabric

Laten we oefenen!

Introductie tot Microsoft Fabric

Preparing Video For Download...