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

hbase shell scan filter string assumes UTF-8 encoding

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0, 1.3.0, 0.98.17, 2.0.0
    • Component/s: shell
    • Labels:
      None
    • Hadoop Flags:
      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-v003.patch
          2 kB
          huaxiang sun
        2. HBASE-15032-v002.patch
          1 kB
          huaxiang sun
        3. HBASE-15032-v002.patch
          1 kB
          huaxiang sun
        4. HBASE-15032-v001.patch
          1 kB
          huaxiang sun

          Activity

            People

            • Assignee:
              huaxiang huaxiang sun
              Reporter:
              huaxiang huaxiang sun
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: