trafodion-codereview mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sureshsubbiah <>
Subject [GitHub] incubator-trafodion pull request #651: Trafodion 2140
Date Wed, 10 Aug 2016 18:05:49 GMT
Github user sureshsubbiah commented on a diff in the pull request:
    --- Diff: core/sql/optimizer/RelSample.cpp ---
    @@ -925,7 +925,6 @@ RelExpr *RelSample::bindNode(BindWA *bindWA)
       RelExpr* myChild = child(0);
       if (myChild->getOperatorType() == REL_SCAN &&
           (static_cast<Scan*>(myChild))->isHbaseTable() &&
    -      myChild->selectionPred().entries() == 0 &&
    --- End diff --
    Thanks. That is an interesting observation. I had not thought of sampling and predicate
evaluation as being commutative. I suppose even if sampling ratio is small and/or predicate
selectivity is high, doing these two operations in either order will be statistically indistinguishable.
Thanks for explaining.

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 or file a JIRA ticket
with INFRA.

View raw message