hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject hbase git commit: HBASE-16227 [Shell] Column value formatter not working in scans. Tested : manually using shell.
Date Wed, 13 Jul 2016 21:14:22 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 3b3c3dc02 -> 28802decc


HBASE-16227 [Shell] Column value formatter not working in scans.
Tested : manually using shell.

Change-Id: I9eef7efa68393a762ec872447f8e36dfc6d6f1bc


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/28802dec
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/28802dec
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/28802dec

Branch: refs/heads/master
Commit: 28802decc80eabe4711e9ce6595209d07e8514f2
Parents: 3b3c3dc
Author: Apekshit Sharma <appy@apache.org>
Authored: Wed Jul 13 14:01:38 2016 -0700
Committer: Apekshit Sharma <appy@apache.org>
Committed: Wed Jul 13 14:14:06 2016 -0700

----------------------------------------------------------------------
 hbase-shell/src/main/ruby/hbase/table.rb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/28802dec/hbase-shell/src/main/ruby/hbase/table.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/hbase/table.rb b/hbase-shell/src/main/ruby/hbase/table.rb
index a90760e..5930c0d 100644
--- a/hbase-shell/src/main/ruby/hbase/table.rb
+++ b/hbase-shell/src/main/ruby/hbase/table.rb
@@ -452,6 +452,9 @@ EOF
         # This will overwrite any startrow/stoprow settings
         scan.setRowPrefixFilter(rowprefixfilter.to_java_bytes) if rowprefixfilter
 
+        # Clear converters from last scan.
+        @converters.clear()
+
         columns.each do |c|
           family, qualifier = parse_column_name(c.to_s)
           if qualifier
@@ -503,8 +506,6 @@ EOF
       count = 0
       res = {}
 
-      @converters.clear()
-
       # Start the scanner
       scan = scan == nil ? _hash_to_scan(args) : scan
       scanner = @table.getScanner(scan)


Mime
View raw message