Skip to content

Commit 46346ab

Browse files
Update query-parquet-files.md
1 parent 8a5d771 commit 46346ab

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/synapse-analytics/sql/query-parquet-files.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: azaricstefan
66
ms.service: synapse-analytics
77
ms.topic: how-to
88
ms.subservice:
9-
ms.date: 04/15/2020
9+
ms.date: 05/20/2020
1010
ms.author: v-stazar
1111
ms.reviewer: jrasnick, carlrab
1212
---
@@ -17,10 +17,7 @@ In this article, you'll learn how to write a query using SQL on-demand (preview)
1717

1818
## Prerequisites
1919

20-
Before reading rest of this article, review the following articles:
21-
22-
- [First-time setup](query-data-storage.md#first-time-setup)
23-
- [Prerequisites](query-data-storage.md#prerequisites)
20+
Your first step is to **create a database** where the tables will be created. Then initialize the objects by executing [setup script](https://github.com/Azure-Samples/Synapse/blob/master/SQL/Samples/LdwSample/SampleDB.sql) on that database. This setup script will create the data sources, database scoped credentials, and external file formats that are used in these samples.
2421

2522
## Dataset
2623

@@ -57,7 +54,8 @@ SELECT
5754
COUNT(*) AS cnt
5855
FROM
5956
OPENROWSET(
60-
BULK 'https://sqlondemandstorage.blob.core.windows.net/parquet/taxi/*/*/*',
57+
BULK 'parquet/taxi/*/*/*',
58+
DATA_SOURCE = 'SqlOnDemandDemo',
6159
FORMAT='PARQUET'
6260
) WITH (
6361
pickup_datetime DATETIME2,
@@ -85,7 +83,8 @@ SELECT
8583
COUNT_BIG(*)
8684
FROM
8785
OPENROWSET(
88-
BULK 'https://sqlondemandstorage.blob.core.windows.net/parquet/taxi/year=2017/month=9/*.parquet',
86+
BULK 'parquet/taxi/year=2017/month=9/*.parquet',
87+
DATA_SOURCE = 'SqlOnDemandDemo',
8988
FORMAT='PARQUET'
9089
) AS nyc;
9190
```
@@ -105,7 +104,8 @@ SELECT
105104
SUM(fare_amount) AS fare_total
106105
FROM
107106
OPENROWSET(
108-
BULK 'https://sqlondemandstorage.blob.core.windows.net/parquet/taxi/year=*/month=*/*.parquet',
107+
BULK 'parquet/taxi/year=*/month=*/*.parquet',
108+
DATA_SOURCE = 'SqlOnDemandDemo',
109109
FORMAT='PARQUET'
110110
) AS nyc
111111
WHERE

0 commit comments

Comments
 (0)