Github user nonstop-qfchen commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/918#discussion_r97323080
--- Diff: core/sql/executor/ExStats.cpp ---
@@ -2357,11 +2357,19 @@ Int64 ExHdfsScanStats::getNumVal(Int32 i) const
NABoolean ExHdfsScanStats::filterForSEstats(struct timespec currTimespec,
Lng32 filter)
{
- blockTime_ = timer_.filterForSEstats(currTimespec);
- if (blockTime_ >= filter)
- return TRUE;
+ Int64 sumIOTime;
+
+ if (filter > 0) {
+ blockTime_ = timer_.filterForSEstats(currTimespec);
+ if (blockTime_ >= filter)
+ return TRUE;
+ }
else
- return FALSE;
+ if (queryId_ != NULL && (sumIOTime = timer_.getTime()) > 0 &&
(sumIOTime = sumIOTime /(1000000LL)) >= -filter) {
--- End diff --
Could write as sumIOTime /= 1000000LL
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---