Github user sureshsubbiah commented on a diff in the pull request:
https://github.com/apache/trafodion/pull/1417#discussion_r167401848
--- Diff: core/sql/executor/ExHdfsScan.cpp ---
@@ -380,10 +407,12 @@ ExWorkProcRetcode ExHdfsScanTcb::work()
HdfsFileInfo *hdfo = NULL;
Lng32 openType = 0;
int changedLen = 0;
- ContextCli *currContext =
getGlobals()->castToExExeStmtGlobals()->getCliGlobals()->currContext();
- hdfsFS hdfs =
currContext->getHdfsServerConnection(hdfsScanTdb().hostName_,hdfsScanTdb().port_);
- hdfsFileInfo *dirInfo = NULL;
- Int32 hdfsErrorDetail = 0;//this is errno returned form underlying
hdfsOpenFile call.
+ ContextCli *currContext =
getGlobals()->castToExExeStmtGlobals()->getCliGlobals()->currContext();
+ hdfsFS hdfs =
currContext->getHdfsServerConnection(hdfsScanTdb().hostName_,hdfsScanTdb().port_);
--- End diff --
I could not find where port_ member of the tdb is set. Can you please
explain?
---