Skip to content

Commit 181849f

Browse files
authored
Merge pull request #23 from PerfectThymeTech/marvinbuss/filter_data
Filter Empty Happiness Scores
2 parents 65a847f + 03b0955 commit 181849f

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

code/datafactory/dataflow/IptvRawToCurated.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
{
3636
"name": "RenameColumns",
3737
"description": "Rename Columns"
38+
},
39+
{
40+
"name": "FilterEmptyHappinessScore",
41+
"description": "Filter Empty Happiness Score Rows"
3842
}
3943
],
4044
"scriptLines": [
@@ -97,7 +101,8 @@
97101
" ),",
98102
" skipDuplicateMapInputs: true,",
99103
" skipDuplicateMapOutputs: true) ~> RenameColumns",
100-
"RenameColumns sink(allowSchemaDrift: true,",
104+
"RenameColumns filter(!isNull(HappinessScore)) ~> FilterEmptyHappinessScore",
105+
"FilterEmptyHappinessScore sink(allowSchemaDrift: true,",
101106
" validateSchema: false,",
102107
" format: 'delta',",
103108
" fileSystem: ($sinkFileSystem),",

code/datafactory/dataflow/OttRawToCurated.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
{
3636
"name": "RenameColumns",
3737
"description": "Rename Columns"
38+
},
39+
{
40+
"name": "FilterEmptyHappinessScore",
41+
"description": "Filter Empty Happiness Score Rows"
3842
}
3943
],
4044
"scriptLines": [
@@ -93,7 +97,8 @@
9397
" ),",
9498
" skipDuplicateMapInputs: true,",
9599
" skipDuplicateMapOutputs: true) ~> RenameColumns",
96-
"RenameColumns sink(allowSchemaDrift: true,",
100+
"RenameColumns filter(!isNull(HappinessScore)) ~> FilterEmptyHappinessScore",
101+
"FilterEmptyHappinessScore sink(allowSchemaDrift: true,",
97102
" validateSchema: false,",
98103
" format: 'delta',",
99104
" fileSystem: ($sinkFileSystem),",

0 commit comments

Comments
 (0)