Repository: hbase Updated Branches: refs/heads/branch-1.2 ab239afb6 -> 54f2d9df2
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/54f2d9df Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/54f2d9df Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/54f2d9df Branch: refs/heads/branch-1.2 Commit: 54f2d9df2d65d75d129bdf3bb5debaa20bd238f1 Parents: ab239af Author: Apekshit Sharma <[email protected]> Authored: Wed Jul 13 14:01:38 2016 -0700 Committer: Apekshit Sharma <[email protected]> Committed: Wed Jul 13 14:18: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/54f2d9df/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 74868c2..d1d8079 100644 --- a/hbase-shell/src/main/ruby/hbase/table.rb +++ b/hbase-shell/src/main/ruby/hbase/table.rb @@ -443,6 +443,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 @@ -494,8 +497,6 @@ EOF count = 0 res = {} - @converters.clear() - # Start the scanner scan = scan == nil ? _hash_to_scan(args) : scan scanner = @table.getScanner(scan)
