Skip to content

Commit

Permalink
Fix numRecords compilation issue
Browse files Browse the repository at this point in the history
This PR renames `numRecords` to `numLogicalRecords` inside of `WriteIntoDelta.scala` to fix a compilation issue.

GitOrigin-RevId: ba64eb90ab211bc1a1c8b7f3f5bcb7e4abaaa469
  • Loading branch information
scottsand-db authored and tdas committed Aug 11, 2022
1 parent 39aff15 commit ff83a37
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -139,10 +139,10 @@ case class WriteIntoDelta(
case a: AddFile =>
numFiles += 1
numOutputBytes += a.size
if (a.numRecords.isEmpty) {
if (a.numLogicalRecords.isEmpty) {
hasRowLevelMetrics = false
} else {
numNewRows += a.numRecords.get
numNewRows += a.numLogicalRecords.get
}
case cdc: AddCDCFile =>
numAddedChangedFiles += 1
Expand All @@ -153,10 +153,10 @@ case class WriteIntoDelta(
case a: AddFile =>
numFiles += 1
numOutputBytes += a.size
if (a.numRecords.isEmpty) {
if (a.numLogicalRecords.isEmpty) {
hasRowLevelMetrics = false
} else {
numCopiedRows += a.numRecords.get
numCopiedRows += a.numLogicalRecords.get
}
case cdc: AddCDCFile =>
numAddedChangedFiles += 1
Expand Down

0 comments on commit ff83a37

Please sign in to comment.