Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Limitless Analytics with Azure Synapse

You're reading from  Limitless Analytics with Azure Synapse

Product type Book
Published in Jun 2021
Publisher Packt
ISBN-13 9781800205659
Pages 392 pages
Edition 1st Edition
Languages
Author (1):
Prashant Kumar Mishra Prashant Kumar Mishra
Profile icon Prashant Kumar Mishra

Table of Contents (20) Chapters

Preface Section 1: The Basics and Key Concepts
Chapter 1: Introduction to Azure Synapse Chapter 2: Considerations for Your Compute Environment Section 2: Data Ingestion and Orchestration
Chapter 3: Bringing Your Data to Azure Synapse Chapter 4: Using Synapse Pipelines to Orchestrate Your Data Chapter 5: Using Synapse Link with Azure Cosmos DB Section 3: Azure Synapse for Data Scientists and Business Analysts
Chapter 6: Working with T-SQL in Azure Synapse Chapter 7: Working with R, Python, Scala, .NET, and Spark SQL in Azure Synapse Chapter 8: Integrating a Power BI Workspace with Azure Synapse Chapter 9: Perform Real-Time Analytics on Streaming Data Chapter 10: Generate Powerful Insights on Azure Synapse Using Azure ML Section 4: Best Practices
Chapter 11: Performing Backup and Restore in Azure Synapse Analytics Chapter 12: Securing Data on Azure Synapse Chapter 13: Managing and Monitoring Synapse Workloads Chapter 14: Coding Best Practices Other Books You May Enjoy

Querying the Cosmos DB analytical store

With Azure Synapse, you get the option to choose between Spark or SQL as your compute environment. You can query a Cosmos DB analytical store using Spark and SQL Serverless, however, this feature is not available with SQL provisioned as of now.

Let's learn how to query data in the analytical store of a Cosmos DB container.

Querying with Azure Synapse Spark

Azure Synapse Spark allows you to analyze data in your Synapse Link enabled Azure Cosmos DB containers. You can query an analytical store from Spark in two possible ways:

  • Loading data to a Spark DataFrame
  • Creating a Spark table

A Spark DataFrame leverages the cached metadata through the lifetime of the Spark session, so any change in the source data will not be reflected here until you start a new Spark session. The metadata of the analytical store is reloaded on every query execution against the Spark table.

You can ingest data to the analytical store of...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}