refactor: update column field names in ExtractionQuery struct; enhance logging in consume and process methods

This commit is contained in:
2026-04-27 00:25:48 -05:00
parent 52fe083ab7
commit 00459e42e6
7 changed files with 16 additions and 7 deletions

View File

@@ -7,6 +7,7 @@ import (
"git.ksdemosapps.com/kylesoda/go-migrate/internal/app/etl"
"git.ksdemosapps.com/kylesoda/go-migrate/internal/app/models"
"github.com/google/uuid"
"github.com/sirupsen/logrus"
)
func PartitionRangeGenerator(
@@ -32,6 +33,7 @@ func PartitionRangeGenerator(
}
rowsCount, err := tableAnalyzer.EstimateTotalRows(ctx, tableInfo)
logrus.Infof("Estimated rows in source: %v (%s.%s)", rowsCount, tableInfo.Schema, tableInfo.Table)
if err != nil {
return nil, err
}
@@ -51,5 +53,7 @@ func PartitionRangeGenerator(
return nil, err
}
// logrus.Debugf("Partitions: %+v (%s.%s)", partitions, tableInfo.Schema, tableInfo.Table)
return partitions, nil
}