Skip to content

Commit

Permalink
Merge branch 'release/v2.4.1' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnathonStoneMS committed Dec 3, 2020
2 parents 2efa72e + ab01f61 commit 6e96139
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions RequireRecentData.qvs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ Sub RequireRecentData(vTableNameToInspect, vDataRecencyFieldName, vDataRecencyTh
Resident [$(vTableNameToInspect)]
;

// Check to ensure that a min timestamp was found
Let vTableRowCount = NoOfRows('Min Data Access Time');

If $(vTableRowCount) < 1 Then
Let vMessage = '[ERROR] Could not find a data access timestamp in the source table, $(vTableNameToInspect), because it has $(vTableRowCount) rows';
Trace $(vMessage);
Call ThrowException('$(vMessage)');
End If

Let vMinDataAccessTimestamp = Timestamp(Peek('Min Data Access Time', 0, 'Min Data Access Time'));
Drop Table [Min Data Access Time];
Trace Data access time: $(vMinDataAccessTimestamp) UTC;
Expand Down

0 comments on commit 6e96139

Please sign in to comment.