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: pages/data-migration/parquet.mdx
+10-15Lines changed: 10 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,9 +141,9 @@ of a single label or relationships of a single type.
141
141
142
142
<Steps>
143
143
144
-
{<h3className="custom-header">Download the files</h3>}
144
+
{<h3className="custom-header">Parquet files</h3>}
145
145
146
-
-[`people_nodes.parquet`](https://public-assets.memgraph.com/import-data/load-csv-cypher/multiple-types-nodes/people_nodes.parquet) is used to create nodes labeled `:Person`.<br/> The file contains the following data:
146
+
-[`people_nodes.parquet`](s3://download.memgraph.com/asset/docs/people_nodes.parquet) is used to create nodes labeled `:Person`.<br/> The file contains the following data:
147
147
```parquet
148
148
id,name,age,city
149
149
100,Daniel,30,London
@@ -152,7 +152,7 @@ of a single label or relationships of a single type.
152
152
103,Mia,25,Zagreb
153
153
104,Lucy,21,Paris
154
154
```
155
-
-[`restaurants_nodes.parquet`](https://public-assets.memgraph.com/import-data/load-csv-cypher/multiple-types-nodes/restaurants_nodes.parquet) is used to create nodes labeled `:Restaurants`.<br/> The file contains the following data:
155
+
-[`restaurants_nodes.parquet`](s3://download.memgraph.com/asset/docs/restaurants_nodes.parquet) is used to create nodes labeled `:Restaurants`.<br/> The file contains the following data:
156
156
```parquet
157
157
id,name,menu
158
158
200,Mc Donalds,Fries;BigMac;McChicken;Apple Pie
@@ -161,7 +161,7 @@ of a single label or relationships of a single type.
-[`people_relationships.parquet`](https://public-assets.memgraph.com/import-data/load-csv-cypher/multiple-types-nodes/people_relationships.parquet) is used to connect people with the `:IS_FRIENDS_WITH` relationship.<br/> The file contains the following data:
164
+
-[`people_relationships.parquet`](s3://download.memgraph.com/asset/docs/people_relationships.parquet) is used to connect people with the `:IS_FRIENDS_WITH` relationship.<br/> The file contains the following data:
165
165
```parquet
166
166
first_person,second_person,met_in
167
167
100,102,2014
@@ -172,7 +172,7 @@ of a single label or relationships of a single type.
172
172
101,102,2017
173
173
100,103,2001
174
174
```
175
-
-[`restaurants_relationships.parquet`](https://public-assets.memgraph.com/import-data/load-csv-cypher/multiple-types-nodes/restaurants_relationships.parquet) is used to connect people with restaurants using the `:ATE_AT` relationship.<br/> The file contains the following data:
175
+
-[`restaurants_relationships.parquet`](s3://download.memgraph.com/asset/docs/restaurants_relationships.parquet) is used to connect people with restaurants using the `:ATE_AT` relationship.<br/> The file contains the following data:
176
176
```parquet
177
177
PERSON_ID,REST_ID,liked
178
178
100,200,true
@@ -184,28 +184,23 @@ of a single label or relationships of a single type.
184
184
102,201,true
185
185
```
186
186
187
-
{<h3className="custom-header">Check the location of the Parquet files</h3>}
188
-
If you are working with Docker, [copy the files from your local directory into
189
-
the Docker container](/getting-started/first-steps-with-docker#copy-files-from-and-to-a-docker-container)
190
-
so that Memgraph can access them.
191
-
192
187
{<h3className="custom-header">Import nodes</h3>}
193
188
194
189
Each row will be parsed as a map, and the
195
-
fields can be accessed using the property lookup syntax (e.g. `id: row.id`).
190
+
fields can be accessed using the property lookup syntax (e.g. `id: row.id`). Files can be imported directly from s3 or can be downloaded and then accessed from the local disk.
196
191
197
192
The following query will load row by row from the file, and create a new node
198
193
for each row with properties based on the parsed row values:
199
194
200
195
```cypher
201
-
LOAD PARQUET FROM "/path-to/people_nodes_wh.parquet" AS row
196
+
LOAD PARQUET FROM "s3://download.memgraph.com/asset/docs/people_nodes.parquet" AS row
0 commit comments