Skip to content

Commit 68cd8c7

Browse files
authored
Update apache-spark-cdm-connector.md
1 parent 34aa019 commit 68cd8c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/synapse-analytics/spark/data-sources/apache-spark-cdm-connector.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ Once permissions are created, you can pass the app ID, app key, and tenant ID to
234234

235235
The following examples all use appId, appKey and tenantId variables initialized earlier in the code based on an Azure app registration that has been given Storage Blob Data Contributor permissions on the storage for write and Storage Blob Data Reader permissions for read.
236236

237-
## Read
237+
### Read
238238

239239
This code reads the Person entity from the CDM folder with manifest in `mystorage.dfs.core.windows.net/cdmdata/contacts/root.manifest.cdm.json`.
240240

@@ -246,7 +246,7 @@ val df = spark.read.format("com.microsoft.cdm")
246246
.load()
247247
```
248248

249-
## Implicit Write – using dataframe schema only
249+
### Implicit Write – using dataframe schema only
250250

251251
This code writes the dataframe _df_ to a CDM folder with a manifest to `mystorage.dfs.core.windows.net/cdmdata/Contacts/default.manifest.cdm.json` with an Event entity.
252252

@@ -265,7 +265,7 @@ df.write.format("com.microsoft.cdm")
265265
.save()
266266
```
267267

268-
## Explicit Write - using an entity definition stored in ADLS
268+
### Explicit Write - using an entity definition stored in ADLS
269269

270270
This code writes the dataframe _df_ to a CDM folder with manifest at
271271
`https://_mystorage_.dfs.core.windows.net/cdmdata/Contacts/root.manifest.cdm.json` with the entity Person. Person data is written as new CSV files (by default) which overwrite existing files in the folder.

0 commit comments

Comments
 (0)