Skip to content

Commit

Permalink
Merge pull request #20 from databrickslabs/dev
Browse files Browse the repository at this point in the history
Added extra filter for change data feed.
  • Loading branch information
himanishk authored Oct 5, 2021
2 parents 79af73c + 93955e6 commit fa2d73d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ trait OMSOperations extends Serializable with SparkSettings with Logging with Sc
.option("readChangeFeed", "true")
.option("startingVersion", lastProcessedVersion + 1)
.load(s"$rawActionsTablePath")
.filter("""_change_type IN ("insert", "update_postimage")""")
}

def processCommitInfoFromRawActions(rawActions: DataFrame,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ trait SparkSettings extends Serializable with ConfigurationSettings {
spark.conf.set("spark.databricks.labs.deltaoms.version", value = Schemas.OMS_VERSION)
spark
}

def spark: SparkSession = SparkSession.active
def spark: SparkSession = sparkSession

}

0 comments on commit fa2d73d

Please sign in to comment.