Skip to content

Commit 7d91781

Browse files
anirudhagar13Anirudh Agarwal
andauthored
fix for handling missing feature data (#1163)
Co-authored-by: Anirudh Agarwal <aniagarwal@linkedin.biz>
1 parent 44e4c7f commit 7d91781

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

feathr-impl/src/main/scala/com/linkedin/feathr/offline/util/AclCheckUtils.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ private[offline] object AclCheckUtils {
6868
} yield featureAnchorWithSource.source.path
6969

7070
val shouldSkipFeature = FeathrUtils.getFeathrJobParam(ss.sparkContext.getConf, FeathrUtils.SKIP_MISSING_FEATURE).toBoolean
71-
val shouldAddDefaultCol = FeathrUtils.getFeathrJobParam(ss.sparkContext.getConf, FeathrUtils.SKIP_MISSING_FEATURE).toBoolean
71+
val shouldAddDefaultCol = FeathrUtils.getFeathrJobParam(ss.sparkContext.getConf, FeathrUtils.ADD_DEFAULT_COL_FOR_MISSING_DATA).toBoolean
7272
val invalidPaths = AclCheckUtils.checkReadAuthorization(conf, allRequiredPaths.distinct)
7373
if (invalidPaths.isEmpty) {
7474
(Success(()), invalidPaths.map(_._2))
7575
} else {
76-
if (!shouldSkipFeature || !shouldAddDefaultCol) {
76+
if (!shouldSkipFeature && !shouldAddDefaultCol) {
7777
(Failure(
7878
new RuntimeException(
7979
"Can not verify read authorization on the following paths. This can be due to" +

feathr-impl/src/test/scala/com/linkedin/feathr/offline/SlidingWindowAggIntegTest.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,7 @@ class SlidingWindowAggIntegTest extends FeathrIntegTest {
820820
setFeathrJobParam(SKIP_MISSING_FEATURE, "false")
821821
}
822822

823+
@Test
823824
def testSWAWithMissingFeatureDataFlag(): Unit = {
824825
setFeathrJobParam(FeathrUtils.ADD_DEFAULT_COL_FOR_MISSING_DATA, "true")
825826
val joinConfigAsString =

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version=1.0.3-rc3
1+
version=1.0.4-rc1
22
SONATYPE_AUTOMATIC_RELEASE=true
33
POM_ARTIFACT_ID=feathr_2.12

0 commit comments

Comments
 (0)