Repository: trafodion Updated Branches: refs/heads/master bcce340bb -> 4582582e2
[TRAFODION-3148] Fix UPDATE STATS bug on Hive tables w/ column _DIVISION_1_ Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/d3945fe7 Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/d3945fe7 Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/d3945fe7 Branch: refs/heads/master Commit: d3945fe7973cd001b3b5268e53b4d1117f45d54f Parents: 40cd13b Author: Dave Birdsall <[email protected]> Authored: Mon Jul 16 20:41:21 2018 +0000 Committer: Dave Birdsall <[email protected]> Committed: Mon Jul 16 20:41:21 2018 +0000 ---------------------------------------------------------------------- core/sql/ustat/hs_la.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafodion/blob/d3945fe7/core/sql/ustat/hs_la.cpp ---------------------------------------------------------------------- diff --git a/core/sql/ustat/hs_la.cpp b/core/sql/ustat/hs_la.cpp index 3e92350..62ed05d 100644 --- a/core/sql/ustat/hs_la.cpp +++ b/core/sql/ustat/hs_la.cpp @@ -1372,7 +1372,10 @@ void HSTableDef::addTruncatedSelectList(NAString & qry) if (DFS2REC::isLOB(getColInfo(i).datatype)) // skip LOB columns continue; - if (!ComTrafReservedColName(*getColInfo(i).colname)) + // skip derived column names (e.g. "_SALT_", "_DIVISION_n_") + // but only in Trafodion tables + if ((getTblOrigin() != HBASE_TBL) || + (!ComTrafReservedColName(*getColInfo(i).colname))) { if (!first) qry += ", ";
