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

hbase shell scan filter string assumes UTF-8 encoding

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0, 1.3.0, 0.98.17, 2.0.0
    • shell
    • None
    • Reviewed

    Description

      Current hbase shell scan filter string is assumed to be UTF-8 encoding, which makes the following scan not working.

      hbase(main):011:0> scan 't1'

      ROW COLUMN+CELL
      r4 column=cf1:q1, timestamp=1450812398741, value=\x82

      hbase(main):003:0> scan 't1',

      {FILTER => "SingleColumnValueFilter ('cf1', 'q1', >=, 'binary:\x80', true, true)"}

      ROW COLUMN+CELL
      0 row(s) in 0.0130 seconds

      Attachments

        1. HBASE-15032-v001.patch
          1 kB
          Hua Xiang
        2. HBASE-15032-v002.patch
          1 kB
          Hua Xiang
        3. HBASE-15032-v002.patch
          1 kB
          Hua Xiang
        4. HBASE-15032-v003.patch
          2 kB
          Hua Xiang

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            huaxiang Hua Xiang
            huaxiang Hua Xiang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment