- Lab
- A Cloud Guru
Using PolyBase to Load Data to a Dedicated SQL Pool Table
PolyBase allows you to read/write data in external storage using T-SQL. Using it, you can load the data into a dedicated SQL pool table in parallel. In this lab, we'll create various PolyBase components to load the data from a data lake file to a table in the dedicated SQL pool.
Path Info
Table of Contents
-
Challenge
Set Up the Environment
- Create an Azure Synapse Analytics instance by defining a new Azure Data Lake Gen2 account.
- Create a container named taxidata in the data lake account.
-
Challenge
Set Up Dedicated SQL Pool Instance
Within Synapse workspace, create a dedicated SQL pool instance named TaxiRidesWarehouse, with the performance level of DW100c.
-
Challenge
Define PolyBase Components to Read Data Lake File
-
Use Synapse's integrated UI to generate a script creating an external table on file
TaxiRides.parquet
. -
Run the script to create the external table and read data from it.
Note: For this objective, make sure you have downloaded the
TaxiRides.parquet
file that is located in this GitHub repository
-
-
Challenge
Create Table in Dedicated SQL Pool Using CTAS
- Use the CTAS (CREATE TABLE AS SELECT) command to create a new table named TaxiRides and load data to it using the external table. The command is available in the Additional Information and Resources section.
- Run a query on the TaxiRides table and verify the data load.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.