Github user DaveBirdsall commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/194#discussion_r46315973
--- Diff: core/sql/executor/ExExeUtilGet.cpp ---
@@ -5315,4 +5358,745 @@
ExExeUtilHiveMDaccessPrivateState::~ExExeUtilHiveMDaccessPrivateState()
{
};
+///////////////////////////////////////////////////////////////////
+ex_tcb * ExExeUtilRegionStatsTdb::build(ex_globals * glob)
+{
+ ExExeUtilRegionStatsTcb * exe_util_tcb;
+
+ if (displayFormat())
+ exe_util_tcb = new(glob->getSpace())
ExExeUtilRegionStatsFormatTcb(*this, glob);
+ else
+ exe_util_tcb = new(glob->getSpace()) ExExeUtilRegionStatsTcb(*this,
glob);
+
+ exe_util_tcb->registerSubtasks();
+
+ return (exe_util_tcb);
+}
+
+////////////////////////////////////////////////////////////////
+// Constructor for class ExExeUtilRegionStatsTcb
+///////////////////////////////////////////////////////////////
+ExExeUtilRegionStatsTcb::ExExeUtilRegionStatsTcb(
+ const ComTdbExeUtilRegionStats & exe_util_tdb,
+ ex_globals * glob)
+ : ExExeUtilTcb( exe_util_tdb, NULL, glob)
+{
+ statsBuf_ = new(glob->getDefaultHeap())
char[sizeof(ComTdbRegionStatsVirtTableColumnStruct)];
+ statsBufLen_ = sizeof(ComTdbRegionStatsVirtTableColumnStruct);
+
+ stats_ = (ComTdbRegionStatsVirtTableColumnStruct*)statsBuf_;
+
+ inputNameBuf_ = NULL;
+ if (exe_util_tdb.inputExpr_)
+ {
+ inputNameBuf_ = new(glob->getDefaultHeap())
char[exe_util_tdb.inputRowlen_];
+ }
+
+ int jniDebugPort = 0;
+ int jniDebugTimeout = 0;
+ ehi_ = ExpHbaseInterface::newInstance(glob->getDefaultHeap(),
+ (char*)"", //exe_util_tdb.server(),
+ (char*)"", //exe_util_tdb.zkPort(),
+ jniDebugPort,
+ jniDebugTimeout);
+
+ regionInfoList_ = NULL;
+
+ tableName_ = new(glob->getDefaultHeap()) char[2000];
+
+ // get hbase rootdir location
+ hbaseRootdir_ = new(glob->getDefaultHeap()) char[1000];
--- End diff --
Path lengths in Linux can be 1024; will 1000 be enough?
---
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.
---