Writing encrypted data to tables or Parquet files
We actually just saw how to write encrypted data into tables and Parquet files in the previous example. Here it is again, writing to tables:
df.write.format("delta").mode("overwrite").option("overwriteSchema", "true").saveAsTable("PIIEncryptedTable")
Here it is writing to Parquet files:
encrypted.write.mode("overwrite").parquet("abfss://path/to/store")
Let's look next at some guidelines for managing sensitive information.