How to query synapse analytical store using backend python code?

Sandeep S 0 Reputation points
2024-04-10T12:53:35.03+00:00

I have implemented a system where my application writes data to a Cosmos DB (Mongo API) database. Additionally, I have set up a Synapse Analytics link, which creates an analytics store and synchronizes data in real-time from the transactional store (Cosmos DB with Mongo API) to the analytical store.

I now need to query the analytical store to perform various analysis-related tasks. Is there a way I can achieve this using backend code such as Python, Node.js, Java, etc.? While I am aware that this can be done using Synapse Studio in the Azure portal, where I can utilize Spark or SQL notebooks, I am specifically looking for a backend implementation.

https://github.com/Azure-Samples/Synapse/blob/main/Notebooks/PySpark/Synapse%20Link%20for%20Cosmos%20DB%20samples/E-Commerce/spark-notebooks/pyspark/01-CosmosDBSynapseMongoDB.ipynb

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.