Repository: hbase Updated Branches: refs/heads/branch-1.3 922dc33fd -> 3ff9a458d
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/3ff9a458 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/3ff9a458 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/3ff9a458 Branch: refs/heads/branch-1.3 Commit: 3ff9a458d9557dcad8452f1ed10452b5d16df9b3 Parents: 922dc33 Author: Apekshit Sharma <[email protected]> Authored: Wed Jul 13 14:01:38 2016 -0700 Committer: Apekshit Sharma <[email protected]> Committed: Wed Jul 13 14:15:52 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/3ff9a458/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 40095c8..9ebe9ad 100644 --- a/hbase-shell/src/main/ruby/hbase/table.rb +++ b/hbase-shell/src/main/ruby/hbase/table.rb @@ -448,6 +448,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 @@ -499,8 +502,6 @@ EOF count = 0 res = {} - @converters.clear() - # Start the scanner scan = scan == nil ? _hash_to_scan(args) : scan scanner = @table.getScanner(scan)
