You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/synapse-analytics/synapse-link/how-to-query-analytical-store-spark.md
-12Lines changed: 0 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,21 +13,13 @@ ms.reviewer: jrasnick
13
13
14
14
# Query Azure Cosmos DB Analytical Store with Synapse Spark
15
15
16
-
<<<<<<< HEAD
17
16
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.
18
17
19
18
## Load to DataFrame
20
19
21
20
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.
22
21
23
22
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
31
23
32
24
```python
33
25
# To select a preferred list of regions in a multi-region Cosmos DB account, add .option("spark.cosmos.preferredRegions", "<Region1>,<Region2>")
@@ -52,13 +44,9 @@ val df_olap = spark.read.format("cosmos.olap").
52
44
53
45
## Create Spark table
54
46
55
-
<<<<<<< HEAD
56
47
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.
57
48
58
49
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.
0 commit comments