Skip to content

Commit

Permalink
Updated to ignore missing and corrupt files
Browse files Browse the repository at this point in the history
  • Loading branch information
himanishk committed May 24, 2023
1 parent e0da30d commit 27bd16c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ trait OMSOperations extends Serializable with SparkSettings with Logging with Sc
.option("cloudFiles.format", "json")
.option("cloudFiles.maxFilesPerTrigger", maxFilesPerTrigger)
.option("cloudFiles.useIncrementalListing", "true")
.option("ignoreCorruptFiles", "true")
.option("ignoreMissingFiles", "true")
.schema(actionSchema)
.load(path).select("*", "_metadata"))
} else {
Expand Down

0 comments on commit 27bd16c

Please sign in to comment.