mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Merge branch 'support/version-0.3.0' into feature/sprint-9-support-updates
This commit is contained in:
@ -82,6 +82,8 @@ public class BasicETLLoadAsUpdateFunction implements BackendStep
|
|||||||
for(List<QRecord> page : CollectionUtils.getPages(inputRecords, pageSize))
|
for(List<QRecord> page : CollectionUtils.getPages(inputRecords, pageSize))
|
||||||
{
|
{
|
||||||
LOG.info("Updating a page of [" + page.size() + "] records. Progress: " + recordsUpdated + " loaded out of " + inputRecords.size() + " total");
|
LOG.info("Updating a page of [" + page.size() + "] records. Progress: " + recordsUpdated + " loaded out of " + inputRecords.size() + " total");
|
||||||
|
runBackendStepInput.getAsyncJobCallback().updateStatus("Updating records", recordsUpdated, inputRecords.size());
|
||||||
|
|
||||||
UpdateInput updateInput = new UpdateInput(runBackendStepInput.getInstance());
|
UpdateInput updateInput = new UpdateInput(runBackendStepInput.getInstance());
|
||||||
updateInput.setSession(runBackendStepInput.getSession());
|
updateInput.setSession(runBackendStepInput.getSession());
|
||||||
updateInput.setTableName(table);
|
updateInput.setTableName(table);
|
||||||
|
@ -86,6 +86,8 @@ public class BasicETLLoadFunction implements BackendStep
|
|||||||
for(List<QRecord> page : CollectionUtils.getPages(inputRecords, pageSize))
|
for(List<QRecord> page : CollectionUtils.getPages(inputRecords, pageSize))
|
||||||
{
|
{
|
||||||
LOG.info("Inserting a page of [" + page.size() + "] records. Progress: " + recordsInserted + " loaded out of " + inputRecords.size() + " total");
|
LOG.info("Inserting a page of [" + page.size() + "] records. Progress: " + recordsInserted + " loaded out of " + inputRecords.size() + " total");
|
||||||
|
runBackendStepInput.getAsyncJobCallback().updateStatus("Inserting records", recordsInserted, inputRecords.size());
|
||||||
|
|
||||||
InsertInput insertInput = new InsertInput(runBackendStepInput.getInstance());
|
InsertInput insertInput = new InsertInput(runBackendStepInput.getInstance());
|
||||||
insertInput.setSession(runBackendStepInput.getSession());
|
insertInput.setSession(runBackendStepInput.getSession());
|
||||||
insertInput.setTableName(table);
|
insertInput.setTableName(table);
|
||||||
|
@ -44,6 +44,7 @@ public class ValueUtils
|
|||||||
{
|
{
|
||||||
private static final DateTimeFormatter dateTimeFormatter_yyyyMMddWithDashes = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
private static final DateTimeFormatter dateTimeFormatter_yyyyMMddWithDashes = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
||||||
private static final DateTimeFormatter dateTimeFormatter_MdyyyyWithSlashes = DateTimeFormatter.ofPattern("M/d/yyyy");
|
private static final DateTimeFormatter dateTimeFormatter_MdyyyyWithSlashes = DateTimeFormatter.ofPattern("M/d/yyyy");
|
||||||
|
private static final DateTimeFormatter dateTimeFormatter_yyyyMMdd = DateTimeFormatter.ofPattern("yyyyMMdd");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -262,7 +263,7 @@ public class ValueUtils
|
|||||||
private static LocalDate tryLocalDateParsers(String s)
|
private static LocalDate tryLocalDateParsers(String s)
|
||||||
{
|
{
|
||||||
DateTimeParseException lastException = null;
|
DateTimeParseException lastException = null;
|
||||||
for(DateTimeFormatter dateTimeFormatter : List.of(dateTimeFormatter_yyyyMMddWithDashes, dateTimeFormatter_MdyyyyWithSlashes))
|
for(DateTimeFormatter dateTimeFormatter : List.of(dateTimeFormatter_yyyyMMddWithDashes, dateTimeFormatter_MdyyyyWithSlashes, dateTimeFormatter_yyyyMMdd))
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user