Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-5946

Thrift Filter Language documentation is inconsistent

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      Syntax: SingleColumnValueFilter(<compare operator>, '<comparator>', '<family>', '<qualifier>), as described here: http://hbase.apache.org/book/thrift.html is not correct.
      The correct syntax is: SingleColumnValueFilter('<family>', '<qualifier>', <compare operator>, '<comparator>')
      Also, <comparator> parameter must always contain the comparator, e.g. binary: or binaryprefix: etc. Without it (except PrefixFilter and maybe some other filters) TSocket class throws TTransportException: TSocket read 0 bytes.
      All examples in section 9.3.1.9. Individual Filter Syntax are written without comparator.

      There also a typo:
      in section 9.3.1.9.12 - Family Filter, syntax and example described for QualifierFilter

      Attachments

        1. HBASE-5946.diff
          4 kB
          Jesse Anderson

        Activity

          People

            eljefe6a Jesse Anderson
            starlng Alexander
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: