This change adds a counter and log statement for the number of records successfully ingested through online streaming ingestion
Description of changes:
Introduced a long accumulator for counting the total number of rows in the spark dataframe and subtracted the number of failed rows to log the successfully ingested rows
Testing done:
Verified through unit tests that the number of successful records are correctly logged
Merge Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.
General
[x] I have read the CONTRIBUTING doc
[x] I certify that the changes I am introducing will be backword compatible
[x] I used the commit message format described in CONTRIBUTING doc
Tests
[ ] I have added tests that prove my fix is effective or that my feature works (if appropriate)
[ ] I have added unit and/or integration tests as appropriate to ensure backward compatibility of the changes
[x] I have verified all code in this commit are well formatted
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
This change adds a counter and log statement for the number of records successfully ingested through online streaming ingestion
Description of changes: Introduced a long accumulator for counting the total number of rows in the spark dataframe and subtracted the number of failed rows to log the successfully ingested rows
Testing done: Verified through unit tests that the number of successful records are correctly logged
Merge Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.General
Tests
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.