Skip to content

Commit

Permalink
Add walltime_accuracy to RawData class.
Browse files Browse the repository at this point in the history
See ubccr/xdmod#1515 for the information
and corresponding update to the jobs realm information.
  • Loading branch information
jpwhite4 committed Mar 25, 2021
1 parent b07e7ce commit c3af969
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/DataWarehouse/Query/SUPREMM/RawData.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

use \DataWarehouse\Query\Model\Table;
use \DataWarehouse\Query\Model\TableField;
use \DataWarehouse\Query\Model\FormulaField;
use \DataWarehouse\Query\Model\WhereCondition;
use \DataWarehouse\Query\Model\Schema;
use \DataWarehouse\Query\Model\OrderBy;
Expand Down Expand Up @@ -65,6 +66,7 @@ public function __construct(
$this->addField(new TableField($factTable, "start_time_ts"));
$this->addField(new TableField($factTable, "end_time_ts"));
$this->addField(new TableField($factTable, "cpu_user"));
$this->addField(new FormulaField('COALESCE(LEAST(sj.wall_time / sj.requested_wall_time, 1), -1)', 'walltime_accuracy'));

$this->addTable( $joblistTable );
$this->addTable( $factTable );
Expand Down

0 comments on commit c3af969

Please sign in to comment.