-
Notifications
You must be signed in to change notification settings - Fork 155
/
movies_metric.yaml
37 lines (37 loc) · 1.14 KB
/
movies_metric.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
steps:
- dataFrameName: comedyFantasyRomanceSciFiMovies
sql:
SELECT title
FROM movies
WHERE genres='Comedy|Fantasy|Romance|Sci-Fi'
- dataFrameName: comedyFantasyRomanceSciFiMoviesAddColumn
sql:
SELECT *, "test" as new_column
FROM comedyFantasyRomanceSciFiMovies
- dataFrameName: tableProperties
sql: SELECT count(1) as number_of_rows FROM comedyFantasyRomanceSciFiMoviesAddColumn
output:
- dataFrameName: comedyFantasyRomanceSciFiMovies
outputType: Parquet
outputOptions:
saveMode: Overwrite
path: comedyFantasyRomanceSciFiMovies.parquet
tableName: testMetorikkuHiveExternal
protectFromEmptyOutput: true
tableProperties:
property: value1
- dataFrameName: comedyFantasyRomanceSciFiMoviesAddColumn
outputType: Parquet
outputOptions:
saveMode: Overwrite
path: comedyFantasyRomanceSciFiMovies.parquet
tableName: testMetorikkuHiveExternal
- dataFrameName: tableProperties
outputType: Catalog
outputOptions:
tableName: testMetorikkuHiveExternal
- dataFrameName: comedyFantasyRomanceSciFiMovies
outputType: Parquet
outputOptions:
saveMode: Overwrite
tableName: testMetorikkuHiveManaged