Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragita16 committed May 6, 2024
1 parent 36d983e commit 045e50a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions docs/databricks/admin-guide/azure_integration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@ For detailed information, refer to `ADLS Passthrough Documentation. <https://doc
Creating Tables
---------------

Both managed or unmanaged tables can be created.
Both managed or unmanaged tables can be created ::

CREATE TABLE <example-table>(id STRING, value STRING) USING org.apache.spark.sql.parquet OPTIONS (PATH "<your-storage-path>")
CREATE TABLE <example-table>(id STRING, value STRING) USING org.apache.spark.sql.parquet OPTIONS (PATH "<your-storage-path>")

dataframe.write.option('path', "<your-storage-path>").saveAsTable("<example-table>")
dataframe.write.option('path', "<your-storage-path>").saveAsTable("<example-table>")

// Create managed table as select
dataframe.write.mode(SaveMode.Overwrite).partitionBy("id").saveAsTable("<example-table>")
// Create managed table as select
dataframe.write.mode(SaveMode.Overwrite).partitionBy("id").saveAsTable("<example-table>")

// Create unmanaged/external table as select
dataframe.write.mode(SaveMode.Overwrite).option("path", "<file-path>").saveAsTable("<example-table>")
// Create unmanaged/external table as select
dataframe.write.mode(SaveMode.Overwrite).option("path", "<file-path>").saveAsTable("<example-table>")

For detailed information, refer to `Azure Databricks Data Tables Documentation. <https://docs.microsoft.com/en-us/azure/databricks/data/tables>`_

0 comments on commit 045e50a

Please sign in to comment.