Github user zellerh commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/511#discussion_r65277160
--- Diff: core/sql/executor/ExHdfsScan.cpp ---
@@ -410,16 +411,81 @@ ExWorkProcRetcode ExHdfsScanTcb::work()
hdfsScanBufMaxSize_ = hdfsScanTdb().hdfsBufSize_;
+ dataModCheckDone_ = FALSE;
+
if (numRanges_ > 0)
- step_ = INIT_HDFS_CURSOR;
+ step_ = CHECK_FOR_DATA_MOD;
else
- step_ = DONE;
+ step_ = CHECK_FOR_DATA_MOD_AND_DONE;
}
break;
+ case CHECK_FOR_DATA_MOD:
+ case CHECK_FOR_DATA_MOD_AND_DONE:
+ {
+ char * dirPath = hdfsScanTdb().hdfsRootDir_;
--- End diff --
Thanks, makes sense. I also see the comment now that explains how to do
this in the future.
---
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.
---