Github user nonstop-qfchen commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/132#discussion_r42407164
--- Diff: core/sql/optimizer/PartFunc.cpp ---
@@ -5009,6 +5020,118 @@ void RangePartitioningFunction::print(FILE* ofd,
const char* indent,
partitionBoundaries_->print(ofd, indent, title);
} // RangePartitioningFunction::print()
+
+
+NABoolean
+compareEncodedKey(const char* low, const char* key, const char* high,
Int32 keyLen, NABoolean checkLast)
--- End diff --
Yes it is true for all intervals except the last one, which is an
all-closed interval.
On Mon, Oct 19, 2015 at 1:18 PM, DaveBirdsall <[email protected]>
wrote:
> In core/sql/optimizer/PartFunc.cpp
>
<https://github.com/apache/incubator-trafodion/pull/132#discussion_r42406620>
> :
>
> > @@ -5009,6 +5020,118 @@ void RangePartitioningFunction::print(FILE*
ofd, const char* indent,
> > partitionBoundaries_->print(ofd, indent, title);
> >
> > } // RangePartitioningFunction::print()
> > +
> > +
> > +NABoolean
> > +compareEncodedKey(const char* low, const char* key, const char* high,
Int32 keyLen, NABoolean checkLast)
>
> So, this routine checks to see if the key is in the half-open interval
> [low,hi), correct?
>
> â
> Reply to this email directly or view it on GitHub
> <https://github.com/apache/incubator-trafodion/pull/132/files#r42406620>.
>
--
Regards, --Qifan
---
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.
---