Skip to content

Commit 8a3406f

Browse files
committed
fix merge issues
2 parents d91ff9a + a72a67c commit 8a3406f

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

articles/synapse-analytics/synapse-link/how-to-query-analytical-store-spark.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Query Azure Cosmos DB analytical store with Synapse Spark
2+
title: Query Azure Cosmos DB Analytical Store with Synapse Spark
33
description: How to query Cosmos DB analytical with Synapse Spark
44
services: synapse-analytics
55
author: ArnoMicrosoft
@@ -11,15 +11,23 @@ ms.author: acomet
1111
ms.reviewer: jrasnick
1212
---
1313

14-
# Query Azure Cosmos DB analytical store with Synapse Spark
14+
# Query Azure Cosmos DB Analytical Store with Synapse Spark
1515

16+
<<<<<<< HEAD
1617
This article gives some examples on how you can interact with the analytical store from Synapse gestures. Gestures are visible when you right-click on a container. With gestures, you can quickly generate code and tailor it to your needs. Gestures are also perfect for discovering data with a single click.
1718

1819
## Load to DataFrame
1920

2021
In this step, you'll read data from Azure Cosmos DB analytical store in a Spark DataFrame. It will display 10 rows from the DataFrame called ***df***. Once your data is into dataframe, you can perform additional analysis.
2122

2223
This operation doesn't impact the transactional store.
24+
=======
25+
This article gives some examples on how you can interact with the Analytical Store from Synapse gestures. Those gestures are visible when you right-click on a container. With gestures, you can quickly generate code and tweak it to your needs. They are also perfect for discovering data with a single click.
26+
27+
## Load to DataFrame
28+
29+
In this step, you will read data from Azure Cosmos DB Analytical Store in a Spark DataFrame. It will display 10 rows from the DataFrame called ***df***. Once your data is in a dataframe, you can perform additional analysis. This operation does not impact the transactional store.
30+
>>>>>>> a72a67c843c85b268d781aa2bf780e4f89f646aa
2331
2432
```python
2533
# To select a preferred list of regions in a multi-region Cosmos DB account, add .option("spark.cosmos.preferredRegions", "<Region1>,<Region2>")
@@ -44,9 +52,13 @@ val df_olap = spark.read.format("cosmos.olap").
4452

4553
## Create Spark table
4654

55+
<<<<<<< HEAD
4756
In this gesture, you'll create a Spark table pointing to the container you selected. That operation doesn't incur any data movement. If you decide to delete that table, the underlying container (and corresponding analytical store) won't be impacted.
4857

4958
This scenario is convenient to reuse tables through third-party tools and provide accessibility to the data for the run-time.
59+
=======
60+
In this gesture, you will create a Spark table pointing to the container you selected. This operation does not incur any data movement. If you decide to delete the table, the underlying container (and corresponding Analytical Store) won't be impacted. This scenario is convenient to reuse tables through third-party tools and provide accessibility to the data at run-time.
61+
>>>>>>> a72a67c843c85b268d781aa2bf780e4f89f646aa
5062
5163
```sql
5264
%%sql
@@ -59,9 +71,8 @@ create table call_center using cosmos.olap options (
5971
```
6072

6173
## Write DataFrame to container
62-
In this gesture, you'll write a dataframe into a container. This operation will impact the transactional performance and consume Request Units. Using Azure Cosmos DB transactional performance is ideal for write transactions.
6374

64-
Make sure that you replace **YOURDATAFRAME** by the dataframe that you want to write back.
75+
In this gesture, you will write a dataframe into a container. This operation will impact the transactional performance and consume Request Units. Using Azure Cosmos DB transactional performance is ideal for write transactions. Make sure that you replace **YOURDATAFRAME** by the dataframe that you want to write back to.
6576

6677
```python
6778
# Write a Spark DataFrame into a Cosmos DB container
@@ -162,4 +173,4 @@ query.awaitTermination()
162173
## Next steps
163174

164175
* [Learn what is supported between Synapse and Azure Cosmos DB](./concept-synapse-link-cosmos-db-support.md)
165-
* [Connect to Synapse Link for Cosmos DB](../quickstart-connect-synapse-link-cosmos-db.md)
176+
* [Connect to Synapse Link for Cosmos DB](../quickstart-connect-synapse-link-cosmos-db.md)

0 commit comments

Comments
 (0)