lakehouse.databricks.common.create_delta_table
- lakehouse.databricks.common.create_delta_table(spark, table_def, delta_file_path, partition_by, delta_db, dest_table)
This function is used to create a delta table in the Delta Lakehouse and returns the schema to be used when creating a synapse serverless view
Parameters
- sparkspark context
Spark context object passed from the calling Spark instance.
- table_defjson object
json object that describes the schema of the table to be created this value can be None
- delta_file_pathstring
location of the delta table in the Data Lakehouse
- partition_byarray
an array of columns to Parition the table by
- delta_dbstring
name of the db/schema where the table will be created
- dest_tablestring
name of the delta table to be created
Returns
- string :
returns the with statement to be used to be used when generating a synapse serverless view