Skip to content

Commit

Permalink
Fix stats type
Browse files Browse the repository at this point in the history
  • Loading branch information
kumuwu committed Dec 23, 2024
1 parent b2fcba7 commit 3cc10db
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -622,22 +622,22 @@ private void appendLoadQueryStats(Executor<SqlGen, TabularData, SqlPlan> executo
Object externalScan = queryStats.get(QueryStatsLogicalPlanUtils.EXTERNAL_BYTES_SCANNED_ALIAS);
if (externalScan != null)
{
stats.put(StatisticName.INPUT_FILES_BYTES_SCANNED, externalScan);
stats.put(StatisticName.INPUT_FILES_BYTES_SCANNED, Long.parseLong(String.valueOf(externalScan)));
}
else
{
stats.put(StatisticName.INPUT_FILES_BYTES_SCANNED, 0);
stats.put(StatisticName.INPUT_FILES_BYTES_SCANNED, 0L);
}
break;
case QueryStatsLogicalPlanUtils.INSERT_STAGE:
Object insert = queryStats.get(QueryStatsLogicalPlanUtils.INPUT_ROWS_ALIAS);
if (insert != null)
{
stats.put(StatisticName.INCOMING_RECORD_COUNT, insert);
stats.put(StatisticName.INCOMING_RECORD_COUNT, Long.parseLong(String.valueOf(insert)));
}
else
{
stats.put(StatisticName.INCOMING_RECORD_COUNT, 0);
stats.put(StatisticName.INCOMING_RECORD_COUNT, 0L);
}
break;
}
Expand Down

0 comments on commit 3cc10db

Please sign in to comment.