aws / sagemaker-feature-store-spark

Apache License 2.0
6 stars 3 forks source link

Added log statement for number of successful ingestions #15

Open choukit opened 1 year ago

choukit commented 1 year ago

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.