Hello,
I have a DataFrame in a Databricks notebook that I've already read and transformed using PySpark-Python. I want to create a table with defined keys (primary and foreign). What is the best method to do this:
- Create a table and directly define keys
- SaveAsTable (DELTA format) and then ALTER table
Thanks, Tyas